PageSourceSearch

https://app.klero.ai/build/assets/Show-DzqBkpMF.js

js klero.ai collected 2026-10-05 12:08:45 UTC 22,701 bytes, 1 lines download raw bytes

1import{a as p,_ as oe}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BdHLpCXL.js";import{_}from"./HeadingSmall.vue_vue_type_script_setup_true_lang-RSXWgl-B.js";import{_ as c}from"./index-Do48A09e.js";import{_ as v}from"./index-B3Xgi3rP.js";import{_ as M,a as N}from"./AvatarImage.vue_vue_type_script_setup_true_lang-DHduky_-.js";import{_ as re}from"./Tabs.vue_vue_type_script_setup_true_lang-DoSx935v.js";import{_ as D}from"./TabsContent.vue_vue_type_script_setup_true_lang-CA-7bRgt.js";import{_ as ie,a as P}from"./TabsTrigger.vue_vue_type_script_setup_true_lang-B5Uao5vg.js";import{_ as g}from"./Label.vue_vue_type_script_setup_true_lang-To9dXchf.js";import{d as le,r as U,o as n,c as u,b as s,e as t,h as ae,w as i,f as e,i as d,t as a,l as f,g as E,v as de,F as m,m as b,j as x,n as ne,s as B}from"./app-iH9dy72u.js";import{_ as I,a as z,b as F,c as V,d as R}from"./DialogTitle.vue_vue_type_script_setup_true_lang-18bTBjbF.js";import{_ as q}from"./DialogFooter.vue_vue_type_script_setup_true_lang-BKQRbPA4.js";import{u as ue}from"./useInitials-C0AQeawK.js";import{S}from"./square-pen-B5yT4mti.js";import{T as C}from"./trash-2-Bq3TDlWG.js";import{U as O,M as ce}from"./EmailVerificationBanner.vue_vue_type_script_setup_true_lang-DZb11_go.js";import{S as me}from"./square-check-big-BQu6u6fJ.js";import{M as H}from"./message-circle-o8TI0S8K.js";import{U as pe}from"./user-JH5TZlVW.js";import{E as Q}from"./external-link-quLJYji8.js";import{C as X}from"./calendar-D3UsajTp.js";import{P as G}from"./plus-BJpunMz_.js";import{f as $}from"./format-BSg1YkPi.js";import{C as fe}from"./credit-card-BIQbORpJ.js";import{C as J}from"./circle-alert-DyzzhR8W.js";import{C as _e}from"./circle-x-BTYf0VJZ.js";import{C as ve}from"./circle-check-big-BoBeUk0Y.js";import{f as j}from"./formatDistanceToNow-CDssafZe.js";import"./SidebarInset.vue_vue_type_script_setup_true_lang-3biA2RWA.js";import"./AppLogo.vue_vue_type_script_setup_true_lang-CJ9zQZmO.js";import"./createLucideIcon-D3FKI-T1.js";import"./usePrimitiveElement-DVsjSab3.js";import"./useForwardExpose-CG6rQ4FY.js";import"./DialogPortal-D9HrBNOH.js";import"./RovingFocusGroup-4Qvxfm3z.js";import"./useEmbedPortalTarget-BdUIXbi0.js";import"./DialogClose-C1riqbBF.js";import"./x-C91np-sb.js";import"./DialogDescription-BUCAaJfI.js";import"./DialogTitle-EJSzuv4k.js";import"./TooltipTrigger.vue_vue_type_script_setup_true_lang-GO-iCS6W.js";import"./VisuallyHidden-IUbBVwXU.js";import"./AppLogoIcon.vue_vue_type_script_setup_true_lang-CPxf0Sqs.js";import"./DropdownMenuTrigger.vue_vue_type_script_setup_true_lang-Bnicg-pJ.js";import"./useArrowNavigation-C6Y-ieo6.js";import"./DropdownMenuSeparator.vue_vue_type_script_setup_true_lang-Dr8ZkTSi.js";import"./index-BBjlX7hJ.js";import"./index-CSEUMRIG.js";import"./settings-Dtoo1RUr.js";import"./log-out-CT0NJKRZ.js";import"./layout-grid-DjrZ6yIv.js";import"./code-Q44ojLns.js";import"./copy-B8kWVgeo.js";import"./mail-Coyd4upl.js";import"./download-BTu-O-ml.js";import"./RovingFocusItem-Cz7_pbTf.js";import"./EmailVerificationNotificationController-D8oLlhFn.js";import"./en-US-BZ0UpF_e.js";const xe={class:"flex w-full flex-1 flex-col"},ge={class:"h-full pt-4 pr-4 pb-4 pl-6 flex flex-col"},be={class:"space-y-6"},je={class:"flex items-center justify-between"},ye={class:"flex items-center gap-4"},he={class:"text-3xl font-bold tracking-tight"},we={class:"flex items-center gap-4 text-sm text-muted-foreground"},ke={class:"flex items-center gap-2"},Se={class:"grid gap-4 md:grid-cols-2 lg:grid-cols-5"},Ce={class:"rounded-2xl border bg-card/60 px-5 py-4"},De={class:"flex items-center justify-between mb-2"},Pe={class:"text-2xl font-bold"},$e={class:"rounded-2xl border bg-card/60 px-5 py-4"},Le={class:"flex items-center justify-between mb-2"},Me={class:"text-2xl font-bold"},Ne={class:"rounded-2xl border bg-card/60 px-5 py-4"},Ue={class:"flex items-center justify-between mb-2"},Be={class:"text-2xl font-bold"},Te={class:"rounded-2xl border bg-card/60 px-5 py-4"},Ae={class:"flex items-center justify-between mb-2"},Ee={class:"text-2xl font-bold"},Ie={class:"rounded-2xl border bg-card/60 px-5 py-4"},ze={class:"flex items-center justify-between mb-2"},Fe={class:"text-2xl font-bold"},Ve={class:"grid gap-4 md:grid-cols-2"},Re={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},qe={class:"space-y-3"},Oe={class:"flex items-center space-x-2"},He={class:"flex items-center space-x-2"},Qe={class:"text-sm font-medium"},Xe={class:"flex items-center space-x-2"},Ge={class:"flex items-center space-x-2"},Je={class:"text-sm"},Ke={class:"flex items-center space-x-2"},We={class:"text-sm"},Ye={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},Ze={class:"space-y-2"},et={class:"flex items-center justify-between"},tt={key:0,class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},st={class:"flex items-center justify-between"},ot={class:"flex items-center gap-2"},rt={class:"space-y-4"},it={class:"grid gap-4 md:grid-cols-2"},lt={class:"text-sm font-medium"},at={class:"text-sm font-medium"},dt={class:"text-muted-foreground"},nt={class:"text-sm font-medium"},ut={class:"text-muted-foreground"},ct={class:"text-sm font-medium"},mt={class:"text-muted-foreground"},pt={class:"text-sm"},ft={class:"text-sm"},_t={key:0},vt={class:"grid gap-2 md:grid-cols-2"},xt={class:"text-sm font-medium"},gt={class:"text-xs text-muted-foreground"},bt={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},jt={key:0,class:"space-y-4"},yt={class:"flex-1"},ht={class:"flex items-center space-x-2 mb-2"},wt={class:"text-sm font-medium"}
1,kt={class:"grid grid-cols-2 md:grid-cols-5 gap-4 text-xs text-muted-foreground"},St={key:0,class:"mt-2"},Ct={class:"text-xs text-muted-foreground mb-1"},Dt={class:"flex items-center space-x-2"},Pt={key:1,class:"text-center py-8"},$t={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},Lt={class:"flex items-center justify-between"},Mt={class:"space-y-4"},Nt={class:"flex items-center space-x-3"},Ut={class:"text-sm font-medium"},Bt={class:"text-sm text-muted-foreground"},Tt={key:0,class:"text-center py-8"},At={class:"grid gap-4 md:grid-cols-2"},Et={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},It={class:"space-y-3"},zt={class:"text-sm font-medium truncate"},Ft={class:"text-xs text-muted-foreground"},Vt={key:0,class:"text-sm text-muted-foreground"},Rt={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},qt={class:"space-y-3"},Ot={class:"flex items-center space-x-2"},Ht={class:"text-sm font-medium truncate"},Qt={class:"text-xs text-muted-foreground"},Xt={key:0,class:"text-sm text-muted-foreground"},Gt={class:"rounded-2xl border bg-card/60 px-5 py-4 flex flex-col gap-4"},Jt={class:"space-y-3"},Kt={class:"text-sm font-medium truncate"},Wt={class:"text-xs text-muted-foreground"},Yt={key:0,class:"text-sm text-muted-foreground"},ro=le({__name:"Show",props:{project:{},subscriptions:{},plans:{},features:{}},setup(K){const y=K,{getInitials:L}=ue(),h=U(!1),w=U(!1),k=U(null),T=()=>{h.value=!0},W=()=>{h.value=!1},Y=()=>{h.value=!1,B.delete(p.projects.destroy({project:y.project.id}).url,{onSuccess:()=>B.visit(p.projects.index().url)})},Z=r=>{k.value=r,w.value=!0},ee=()=>{w.value=!1,k.value=null},te=()=>{if(!k.value)return;const r=k.value.id;w.value=!1,k.value=null,B.delete(p.projects.subscriptions.destroy({project:y.project.id,subscription:r}).url,{preserveState:!1,onError:o=>{console.error("Failed to delete subscription:",o),alert("Failed to delete subscription. Please try again.")}})},A=r=>{switch(r){case"active":return"default";case"cancelled":return"destructive";case"past_due":return"destructive";case"incomplete":return"secondary";default:return"secondary"}},se=r=>{switch(r){case"active":return ve;case"cancelled":return _e;case"past_due":return J;default:return J}};return(r,o)=>(n(),u(m,null,[s(t(ae),{title:`${r.project.name} - Projects - Admin`},null,8,["title"]),s(oe,null,{default:i(()=>[e("div",xe,[e("div",ge,[e("div",be,[e("div",je,[e("div",ye,[s(t(M),{class:"h-12 w-12"},{default:i(()=>[s(t(N),null,{default:i(()=>[d(a(t(L)(r.project.name)),1)]),_:1})]),_:1}),e("div",null,[e("h1",he,a(r.project.name),1),e("div",we,[s(t(v),{variant:"outline"},{default:i(()=>[d(a(r.project.slug),1)]),_:1}),e("span",null,"Created "+a(t(j)(new Date(r.project.created_at),{addSuffix:!0})),1)])])]),e("div",ke,[s(t(c),{"as-child":""},{default:i(()=>[s(t(f),{href:t(p).projects.edit({project:r.project.id}).url},{default:i(()=>[s(t(S),{class:"mr-2 h-4 w-4"}),o[2]||(o[2]=d(" Edit Project ",-1))]),_:1,__:[2]},8,["href"])]),_:1}),s(t(c),{variant:"destructive",onClick:T},{default:i(()=>[s(t(C),{class:"mr-2 h-4 w-4"}),o[3]||(o[3]=d(" Delete ",-1))]),_:1,__:[3]})])]),e("div",Se,[e("div",Ce,[e("div",De,[o[4]||(o[4]=e("p",{class:"text-sm font-medium text-muted-foreground"},"Team Members",-1)),s(t(O),{class:"h-4 w-4 text-muted-foreground"})]),e("p",Pe,a(r.project.users_count),1)]),e("div",$e,[e("div",Le,[o[5]||(o[5]=e("p",{class:"text-sm font-medium text-muted-foreground"},"Conversations",-1)),s(t(ce),{class:"h-4 w-4 text-muted-foreground"})]),e("p",Me,a(r.project.conversations_count),1)]),e("div",Ne,[e("div",Ue,[o[6]||(o[6]=e("p",{class:"text-sm font-medium text-muted-foreground"},"Planning Tasks",-1)),s(t(me),{class:"h-4 w-4 text-muted-foreground"})]),e("p",Be,a(r.project.planning_tasks_count),1)]),e("div",Te,[e("div",Ae,[o[7]||(o[7]=e("p",{class:"text-sm font-medium text-muted-foreground"},"Feedback Boards",-1)),s(t(H),{class:"h-4 w-4 text-muted-foreground"})]),e("p",Ee,a(r.project.feedback_boards_count),1)]),e("div",Ie,[e("div",ze,[o[8]||(o[8]=e("p",{class:"text-sm font-medium text-muted-foreground"},"Feedback Items",-1)),s(t(H),{class:"h-4 w-4 text-muted-foreground"})]),e("p",Fe,a(r.project.feedback_items_count),1)])]),s(t(re),{"default-value":"overview",class:"space-y-4"},{default:i(()=>[s(t(ie),null,{default:i(()=>[s(t(P),{value:"overview"},{default:i(()=>o[9]||(o[9]=[d("Overview",-1)])),_:1,__:[9]}),s(t(P),{value:"subscriptions"},{default:i(()=>o[10]||(o[10]=[d("Subscriptions",-1)])),_:1,__:[10]}),s(t(P),{value:"team"},{default:i(()=>o[11]||(o[11]=[d("Team Members",-1)])),_:1,__:[11]}),s(t(P),{value:"activity"},{default:i(()=>o[12]||(o[12]=[d("Recent Activity",-1)])),_:1,__:[12]})]),_:1}),s(t(D),{value:"overview",class:"space-y-4"},{default:i(()=>[e("div",Ve,[e("div",Re,[s(_,{title:"Project Information"}),e("div",qe,[e("div",Oe,[s(t(pe),{class:"h-4 w-4 text-muted-foreground"}),o[13]||(o[13]=e("span",{class:"text-sm text-muted-foreground"},"Owner:",-1)),e("div",He,[s(t(M),{class:"h-6 w-6"},{default:i(()=>[s(t(N),{class:"text-xs"},{default:i(()=>[d(a(t(L)(r.project.owner.name)),1)]),_:1})]),_:1}),e("span",Qe,a(r.project.owner.name),1)])]),e("div",Xe,[s(t(Q),{class:"h-4 w-4 text-muted-foreground"}),o[14]||(o[14]=e("span",{class:"text-sm text-muted-foreground"},"Slug:",-1)),s(t(v),{variant:"outline",class:"text-xs"},{default:i(()=>[d(a(r.project.slug),1)]),_:1})]),e("div",Ge,[s(t(X),{class:"h-4 w-4 text-muted-foreground"}),o[15]||(o[15]=e("span",{class:"text-sm text-muted-foreground"},"Created:",-1)),e("span",Je,a(t(j)(new Date(r.project.created_at),{addSuffix:!0})),1)]),e("div",Ke,[s(t(X),{class:"h-4 w-4 text-muted-foreground"}),o[16]||(o[16]=e("span",{class:"text-sm text-muted-foreground"},"Updated:",-1)),e("span",We,a(t(j)(new Date(r.project.updated_at),{addSuffix:!0})),1)])])]),e("div",Ye,[s(_,{title:"Quick Actions"}
1),e("div",Ze,[s(t(c),{"as-child":"",class:"w-full justify-start"},{default:i(()=>[s(t(f),{href:t(p).projects.edit({project:r.project.id}).url},{default:i(()=>[s(t(S),{class:"mr-2 h-4 w-4"}),o[17]||(o[17]=d(" Edit Project Details ",-1))]),_:1,__:[17]},8,["href"])]),_:1}),s(t(c),{variant:"outline","as-child":"",class:"w-full justify-start"},{default:i(()=>[s(t(f),{href:t(p).projects.index().url},{default:i(()=>[s(t(Q),{class:"mr-2 h-4 w-4"}),o[18]||(o[18]=d(" Back to Projects List ",-1))]),_:1,__:[18]},8,["href"])]),_:1}),s(t(c),{variant:"destructive",onClick:T,class:"w-full justify-start"},{default:i(()=>[s(t(C),{class:"mr-2 h-4 w-4"}),o[19]||(o[19]=d(" Delete Project ",-1))]),_:1,__:[19]})])])])]),_:1}),s(t(D),{value:"subscriptions",class:"space-y-4"},{default:i(()=>[e("div",et,[o[21]||(o[21]=e("div",null,[e("h2",{class:"text-2xl font-bold"},"Subscriptions"),e("p",{class:"text-muted-foreground"},"Manage project subscriptions and features")],-1)),s(t(c),{"as-child":""},{default:i(()=>[s(t(f),{href:t(p).projects.subscriptions.create({project:r.project.id}).url},{default:i(()=>[s(t(G),{class:"mr-2 h-4 w-4"}),o[20]||(o[20]=d(" Add Subscription ",-1))]),_:1,__:[20]},8,["href"])]),_:1})]),r.project.subscription?(n(),u("div",tt,[e("div",st,[s(_,{title:"Current Subscription"}),e("div",ot,[s(t(v),{variant:A(r.project.subscription.status)},{default:i(()=>[(n(),E(de(se(r.project.subscription.status)),{class:"mr-1 h-3 w-3"})),d(" "+a(r.project.subscription.status),1)]),_:1},8,["variant"]),s(t(c),{variant:"outline",size:"sm","as-child":""},{default:i(()=>[s(t(f),{href:t(p).projects.subscriptions.edit({project:r.project.id,subscription:r.project.subscription.id}).url},{default:i(()=>[s(t(S),{class:"mr-2 h-4 w-4"}),o[22]||(o[22]=d(" Edit ",-1))]),_:1,__:[22]},8,["href"])]),_:1})])]),e("div",rt,[e("div",it,[e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[23]||(o[23]=[d("Plan",-1)])),_:1,__:[23]}),e("p",lt,a(r.project.subscription.plan?.name||"N/A"),1)]),e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[24]||(o[24]=[d("Credits",-1)])),_:1,__:[24]}),e("p",at,[d(a(r.project.subscription.usage.toLocaleString())+" / "+a(r.project.subscription.credits.toLocaleString())+" ",1),e("span",dt," ("+a(Math.round(r.project.subscription.usage/r.project.subscription.credits*100))+"% used) ",1)])]),e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[25]||(o[25]=[d("Email Limit",-1)])),_:1,__:[25]}),e("p",nt,[r.project.subscription.email_limit===null?(n(),u(m,{key:0},[d(" Unlimited ")],64)):(n(),u(m,{key:1},[d(a(r.project.subscription.email_limit_used.toLocaleString())+" / "+a(r.project.subscription.email_limit.toLocaleString())+" ",1),e("span",ut," ("+a(Math.round(r.project.subscription.email_limit_used/r.project.subscription.email_limit*100))+"% used) ",1)],64))])]),e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[26]||(o[26]=[d("Storage Limit",-1)])),_:1,__:[26]}),e("p",ct,[r.project.subscription.storage_limit===null?(n(),u(m,{key:0},[d(" Unlimited ")],64)):(n(),u(m,{key:1},[d(a(r.project.subscription.storage_limit_used.toLocaleString())+" MB / "+a(r.project.subscription.storage_limit.toLocaleString())+" MB ",1),e("span",mt," ("+a(Math.round(r.project.subscription.storage_limit_used/r.project.subscription.storage_limit*100))+"% used) ",1)],64))])]),e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[27]||(o[27]=[d("Started",-1)])),_:1,__:[27]}),e("p",pt,a(r.project.subscription.starts_at?t($)(new Date(r.project.subscription.starts_at),"PPp"):"N/A"),1)]),e("div",null,[s(t(g),{class:"text-xs text-muted-foreground"},{default:i(()=>o[28]||(o[28]=[d("Ends",-1)])),_:1,__:[28]}),e("p",ft,a(r.project.subscription.ends_at?t($)(new Date(r.project.subscription.ends_at),"PPp"):"No end date"),1)])]),r.project.subscription.features&&r.project.subscription.features.length>0?(n(),u("div",_t,[s(t(g),{class:"text-xs text-muted-foreground mb-2 block"},{default:i(()=>o[29]||(o[29]=[d("Features",-1)])),_:1,__:[29]}),e("div",vt,[(n(!0),u(m,null,b(r.project.subscription.features,l=>(n(),u("div",{key:l.id,class:"flex items-center justify-between rounded-lg border p-2"},[e("div",null,[e("p",xt,a(l.feature?.name||"Unknown"),1),e("p",gt,a(l.feature?.code),1)]),s(t(v),{variant:"outline"},{default:i(()=>[d(a(l.is_unlimited?"Unlimited":l.value||"N/A"),1)]),_:2},1024)]))),128))])])):x("",!0)])])):x("",!0),e("div",bt,[s(_,{title:"Subscription History",description:"All subscriptions for this project"}),e("div",null,[y.subscriptions&&y.subscriptions.length>0?(n(),u("div",jt,[(n(!0),u(m,null,b(y.subscriptions,l=>(n(),u("div",{key:l.id,class:ne(["flex items-center justify-between rounded-lg border p-4",{"bg-primary/5 border-primary":l.id===r.project.subscription?.id}])},[e("div",yt,[e("div",ht,[e("p",wt,a(l.plan?.name||"Unknown Plan"),1),s(t(v),{variant:A(l.status),class:"text-xs"},{default:i(()=>[d(a(l.status),1)]),_:2},1032,["variant"]),l.id===r.project.subscription?.id?(n(),E(t(v),{key:0,variant:"default",class:"text-xs"},{default:i(()=>o[30]||(o[30]=[d(" Current ",-1)])),_:1,__:[30]})):x("",!0)]),e("div",kt,[e("div",null,[o[31]||(o[31]=e("span",{class:"font-medium"},"Started:",-1)),d(" "+a(l.starts_at?t($)(new Date(l.starts_at),"PP"):"N/A"),1)]),e("div",null,[o[32]||(o[32]=e("span",{class:"font-medium"},"Ends:",-1)),d(" "+a(l.ends_at?t($)(new Date(l.ends_at),"PP"):"No end date"),1)]),e("div",null,[o[33]||(o[33]=e("span",{class:"font-medium"}
1,"Credits:",-1)),d(" "+a(l.credits.toLocaleString()),1)]),e("div",null,[o[34]||(o[34]=e("span",{class:"font-medium"},"Usage:",-1)),d(" "+a(l.usage.toLocaleString()),1)]),e("div",null,[o[35]||(o[35]=e("span",{class:"font-medium"},"Emails:",-1)),l.email_limit===null?(n(),u(m,{key:0},[d(" Unlimited ")],64)):(n(),u(m,{key:1},[d(a(l.email_limit_used.toLocaleString())+" / "+a(l.email_limit.toLocaleString()),1)],64))]),e("div",null,[o[36]||(o[36]=e("span",{class:"font-medium"},"Storage:",-1)),l.storage_limit===null?(n(),u(m,{key:0},[d(" Unlimited ")],64)):(n(),u(m,{key:1},[d(a(l.storage_limit_used.toLocaleString())+" MB / "+a(l.storage_limit.toLocaleString())+" MB ",1)],64))])]),l.features&&l.features.length>0?(n(),u("div",St,[e("p",Ct,a(l.features.length)+" feature"+a(l.features.length!==1?"s":""),1)])):x("",!0)]),e("div",Dt,[s(t(c),{variant:"outline",size:"sm","as-child":""},{default:i(()=>[s(t(f),{href:t(p).projects.subscriptions.edit({project:r.project.id,subscription:l.id}).url},{default:i(()=>[s(t(S),{class:"h-4 w-4"})]),_:2},1032,["href"])]),_:2},1024),s(t(c),{variant:"outline",size:"sm",onClick:Zt=>Z(l),class:"text-destructive hover:text-destructive"},{default:i(()=>[s(t(C),{class:"h-4 w-4"})]),_:2},1032,["onClick"])])],2))),128))])):(n(),u("div",Pt,[s(t(fe),{class:"mx-auto h-12 w-12 text-muted-foreground"}),o[38]||(o[38]=e("p",{class:"text-muted-foreground mt-2"},"No subscriptions found.",-1)),s(t(c),{"as-child":"",class:"mt-4"},{default:i(()=>[s(t(f),{href:t(p).projects.subscriptions.create({project:r.project.id}).url},{default:i(()=>[s(t(G),{class:"mr-2 h-4 w-4"}),o[37]||(o[37]=d(" Create First Subscription ",-1))]),_:1,__:[37]},8,["href"])]),_:1})]))])])]),_:1}),s(t(D),{value:"team",class:"space-y-4"},{default:i(()=>[e("div",$t,[e("div",Lt,[s(_,{title:`Team Members (${r.project.users.length})`},null,8,["title"]),s(t(c),{size:"sm","as-child":""},{default:i(()=>[s(t(f),{href:t(p).projects.edit({project:r.project.id}).url},{default:i(()=>[s(t(S),{class:"mr-2 h-4 w-4"}),o[39]||(o[39]=d(" Manage Team ",-1))]),_:1,__:[39]},8,["href"])]),_:1})]),e("div",null,[e("div",Mt,[(n(!0),u(m,null,b(r.project.users,l=>(n(),u("div",{key:l.id,class:"flex items-center justify-between rounded-lg border p-3"},[e("div",Nt,[s(t(M),{class:"h-10 w-10"},{default:i(()=>[s(t(N),null,{default:i(()=>[d(a(t(L)(l.name)),1)]),_:2},1024)]),_:2},1024),e("div",null,[e("p",Ut,a(l.name),1),e("p",Bt,a(l.email),1)])]),s(t(v),{variant:l.pivot?.role==="admin"?"destructive":l.pivot?.role==="manager"?"default":"secondary"},{default:i(()=>[d(a(l.pivot?.role||"member"),1)]),_:2},1032,["variant"])]))),128)),r.project.users.length===0?(n(),u("div",Tt,[o[41]||(o[41]=e("p",{class:"text-muted-foreground"},"No team members assigned yet.",-1)),s(t(c),{"as-child":"",class:"mt-4"},{default:i(()=>[s(t(f),{href:t(p).projects.edit({project:r.project.id}).url},{default:i(()=>[s(t(O),{class:"mr-2 h-4 w-4"}),o[40]||(o[40]=d(" Add Team Members ",-1))]),_:1,__:[40]},8,["href"])]),_:1})])):x("",!0)])])])]),_:1}),s(t(D),{value:"activity",class:"space-y-4"},{default:i(()=>[e("div",At,[e("div",Et,[s(_,{title:"Recent Conversations"}),e("div",null,[e("div",It,[(n(!0),u(m,null,b(r.project.conversations,l=>(n(),u("div",{key:l.id,class:"flex items-center justify-between"},[e("p",zt,a(l.title),1),e("p",Ft,a(t(j)(new Date(l.created_at),{addSuffix:!0})),1)]))),128)),r.project.conversations.length===0?(n(),u("p",Vt," No recent conversations. ")):x("",!0)])])]),e("div",Rt,[s(_,{title:"Recent Planning Tasks"}),e("div",null,[e("div",qt,[(n(!0),u(m,null,b(r.project.planning_tasks,l=>(n(),u("div",{key:l.id,class:"flex items-center justify-between"},[e("div",Ot,[e("p",Ht,a(l.title),1),s(t(v),{variant:"outline",class:"text-xs"},{default:i(()=>[d(a(l.status),1)]),_:2},1024)]),e("p",Qt,a(t(j)(new Date(l.created_at),{addSuffix:!0})),1)]))),128)),r.project.planning_tasks.length===0?(n(),u("p",Xt," No recent tasks. ")):x("",!0)])])]),e("div",Gt,[s(_,{title:"Recent Feedback Boards"}),e("div",null,[e("div",Jt,[(n(!0),u(m,null,b(r.project.feedback_boards,l=>(n(),u("div",{key:l.id,class:"flex items-center justify-between"},[e("p",Kt,a(l.name),1),e("p",Wt,a(t(j)(new Date(l.created_at),{addSuffix:!0})),1)]))),128)),r.project.feedback_boards.length===0?(n(),u("p",Yt," No recent feedback boards. ")):x("",!0)])])])])]),_:1})]),_:1}),s(t(I),{open:h.value,"onUpdate:open":o[0]||(o[0]=l=>h.value=l)},{default:i(()=>[s(t(z),{class:"max-w-md"},{default:i(()=>[s(t(F),null,{default:i(()=>[s(t(V),null,{default:i(()=>o[42]||(o[42]=[d("Delete Project",-1)])),_:1,__:[42]}),s(t(R),null,{default:i(()=>[d(' Are you sure you want to delete the project "'+a(r.project.name)+'"? This action cannot be undone. ',1)]),_:1})]),_:1}),s(t(q),{class:"gap-2"},{default:i(()=>[s(t(c),{variant:"outline",onClick:W},{default:i(()=>o[43]||(o[43]=[d("Cancel",-1)])),_:1,__:[43]}),s(t(c),{variant:"destructive",onClick:Y},{default:i(()=>[s(t(C),{class:"w-4 h-4 mr-2"}),o[44]||(o[44]=d(" Delete ",-1))]),_:1,__:[44]})]),_:1})]),_:1})]),_:1},8,["open"]),s(t(I),{open:w.value,"onUpdate:open":o[1]||(o[1]=l=>w.value=l)},{default:i(()=>[s(t(z),{class:"max-w-md"},{default:i(()=>[s(t(F),null,{default:i(()=>[s(t(V),null,{default:i(()=>o[45]||(o[45]=[d("Delete Subscription",-1)])),_:1,__:[45]}),s(t(R),null,{default:i(()=>o[46]||(o[46]=[d(" Are you sure you want to delete this subscription? This action cannot be undone. ",-1)])),_:1,__:[46]})]),_:1}),s(t(q),{class:"gap-2"},{default:i(()=>[s(t(c),{variant:"outline",onClick:ee},{default:i(()=>
1o[47]||(o[47]=[d("Cancel",-1)])),_:1,__:[47]}),s(t(c),{variant:"destructive",onClick:te},{default:i(()=>[s(t(C),{class:"w-4 h-4 mr-2"}),o[48]||(o[48]=d(" Delete ",-1))]),_:1,__:[48]})]),_:1})]),_:1})]),_:1},8,["open"])])])])]),_:1})],64))}});export{ro 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.