1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D2yE0WFs.js","assets/index-Bx8oAJqR.css"])))=>i.map(i=>d[i]); 2import{e9 as e,K as T,E as se,dj as z,es as h,fk as re,eN as A,gh as de,db as me,f_ as M,cs as xe,c2 as ie,bc as q,fM as ue,gc as he,G as fe,bw as P,dN as I,dX as W,a7 as pe,dA as ve,dt as L,aA as _e,dG as V,q as ye,eS as U,cq as we,bU as ge,cG as ke,cF as je,d8 as be,dZ as Ne,bX as Ae,bW as Q,bV as Se,bl as Ce,eA as Ee,bR as Fe,fI as De,fG as Te,gb as qe,eM as Re,cW as ne,bq as ce,d4 as ze,aQ as Pe,fO as Ie,fZ as We,g4 as Le}from"./index-D2yE0WFs.js";import{u as Ue,A as Me,a as He,g as O,F as ee}from"./activityNavigation-D64Wv_h_.js";import"./zap-DpMi3MII.js";const $e=[{id:"all",label:"All",shortLabel:"All",count:0},{id:"approvals",label:"Approvals",shortLabel:"Approvals",count:0},{id:"mentions",label:"Mentions",shortLabel:"@",count:0},{id:"threads",label:"Threads",shortLabel:"Threads",count:0},{id:"reactions",label:"Reactions",shortLabel:"React",count:0},{id:"invitations",label:"Invitations",shortLabel:"Invites",count:0},{id:"hires",label:"Hires",shortLabel:"Hires",count:0}],Ge=({activeTab:r,onTabChange:x})=>e.jsx("div",{className:"border-b border-border/40 bg-background/50",children:e.jsx("div",{className:"flex p-2 gap-1 overflow-x-auto",children:$e.map(t=>e.jsxs(T,{variant:"ghost",size:"sm",className:z("h-8 px-2 sm:px-3 py-1 text-xs font-medium rounded-md flex items-center gap-1 flex-shrink-0",r===t.id?"bg-[hsl(var(--workait-primary))] text-white border border-[hsl(var(--workait-primary))]":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),onClick:()=>x(t.id),children:[e.jsx("span",{className:"truncate",children:t.label}),t.count>0&&e.jsx(se,{variant:"secondary",className:z("h-4 px-1.5 text-[10px] font-medium flex-shrink-0",r===t.id?"bg-white/20 text-white":"bg-muted text-muted-foreground"),children:t.count})]},t.id))})}),Be=r=>{const[x,t]=h.useState([]),[c,l]=h.useState(!0),[f,b]=h.useState(!0),[p,y]=h.useState(0),{user:o,profile:m}=re(),N=async(w=!1)=>{if(!(!o||!(m!=null&&m.current_workplace_id)))try{l(!0);const d=w?0:p,g=20,{data:R,error:E}=await A.from("channels").select("id").eq("workplace_id",m.current_workplace_id);E&&console.error("Error fetching channels for workplace scope:",E);const F=(R||[]).map(a=>a.id),{data:i,error:S}=await A.from("user_worker_relationships").select("worker_id").eq("user_id",o.id).eq("workplace_id",m.current_workplace_id);S&&console.error("Error fetching worker relationships for workplace scope:",S);const D=(i||[]).map(a=>a.worker_id);let k=A.from("messages").select(` 3 id, 4 content, 5 created_at, 6 sender_type, 7 sender_id, 8 receiver_type, 9 receiver_id, 10 is_direct_message, 11 feedback, 12 channel_id 13 `).order("created_at",{ascending:!1}).range(d,d+g-1);switch(r){case"mentions":k=k.ilike("content","%@%");break;case"threads":k=k.not("channel_id","is",null);break;case"reactions":k=k.not("feedback","is",null);break;case"hires":break;case"invitations":break;case"approvals":break;default:break}k=F.length>0?k.or(`receiver_id.eq.${o.id},channel_id.in.(${F.join(",")})`):k.or(`receiver_id.eq.${o.id}`);const{data:Y,error:J}=await k;if(J){console.error("Error fetching messages:",J);return}const le=(Y||[]).filter(a=>a.sender_id===o.id?!1:a.channel_id?F.includes(a.channel_id):a.is_direct_message?a.sender_type==="ai_worker"?D.includes(a.sender_id):a.receiver_type==="ai_worker"?D.includes(a.receiver_id):!1:!1),oe=await Promise.all(le.map(async a=>{let _="Unknown",s="",u="user";if(a.sender_type==="ai_worker"){const{data:j}=await A.from("ai_workers").select("name, avatar_url").eq("id",a.sender_id).single();j&&(_=de(j.name),s=j.avatar_url||"",u="ai_worker")}else{const{data:j,error:G}=await A.from("profiles").select("display_name, avatar_url").eq("id",a.sender_id).single();_=me(j,G),j&&(s=j.avatar_url||"",u="user")}let v="message";a.feedback!==null?v="reaction":a.channel_id?v="thread":a.content.includes("@")&&(v="mention");let C="";if(a.is_direct_message)C="Direct Message";else if(a.channel_id){const{data:j}=await A.from("channels").select("name").eq("id",a.channel_id).single();j&&(C=`#${j.name}`)}
13return{id:a.id,type:v,content:a.content,timestamp:a.created_at,sender:{name:_,avatar:s,type:u},unread:!1,context:C,rating:a.feedback}}));let K=[];if(r==="hires"||r==="all"){const{data:a,error:_}=await A.from("user_worker_relationships").select(` 14 id, 15 created_at, 16 relationship_type, 17 ai_workers(name, avatar_url) 18 `).eq("user_id",o.id).eq("workplace_id",m.current_workplace_id).order("created_at",{ascending:!1}).range(d,d+g-1);!_&&a&&(K=a.map(s=>{var u,v;return{id:s.id,type:"hire",content:`${s.relationship_type==="user"?"Hired":"Created"} AI worker`,timestamp:s.created_at,sender:{name:((u=s.ai_workers)==null?void 0:u.name)||"AI Worker",avatar:((v=s.ai_workers)==null?void 0:v.avatar_url)||"",type:"ai_worker"},unread:!1,context:s.relationship_type==="user"?"Hired":"Created"}}))}let X=[];if(r==="invitations"){const{data:a,error:_}=await A.from("workplace_invitations").select("id, created_at, accepted_at, expires_at, email, invited_by, workplace_id").eq("workplace_id",m.current_workplace_id).order("created_at",{ascending:!1}).range(d,d+g-1);_?console.error("Error fetching invitations:",_):a&&(X=await Promise.all(a.map(async s=>{const{data:u}=await A.from("profiles").select("display_name, avatar_url").eq("id",s.invited_by).maybeSingle(),{data:v}=await A.from("workplaces").select("name").eq("id",s.workplace_id).maybeSingle(),C=(u==null?void 0:u.display_name)||"You",j=(u==null?void 0:u.avatar_url)||"",G=(v==null?void 0:v.name)||"your workplace";let B="Pending";return s.accepted_at?B="Accepted":s.expires_at&&new Date(s.expires_at)<new Date&&(B="Expired"),{id:s.id,type:"invitation",content:`Invited ${s.email} to join ${G}`,timestamp:s.created_at,sender:{name:C,avatar:j,type:"user"},unread:!1,context:B}})))}let H=[];if(r==="approvals"||r==="all"){const{data:a,error:_}=await A.from("worker_action_approvals").select(` 19 id, 20 tool_name, 21 toolkit, 22 context_summary, 23 arguments, 24 status, 25 decision, 26 decided_at, 27 created_at, 28 identity_label, 29 sent_as, 30 worker_identity_label, 31 connection_source, 32 message_id, 33 worker_id, 34 ai_workers(name, avatar_url) 35 `).eq("workplace_id",m.current_workplace_id).eq("user_id",o.id).order("created_at",{ascending:!1}).range(d,d+g-1);_?console.error("Error fetching approvals:",_):a&&(H=a.map(s=>{var v,C;const u=s.status==="pending"?"Pending":s.status==="approved"?"Approved":s.status==="rejected"?"Declined":s.status;return{id:s.id,type:"approval",content:s.context_summary||`${s.toolkit}: ${s.tool_name}`,timestamp:s.created_at,sender:{name:((v=s.ai_workers)==null?void 0:v.name)||"AI Worker",avatar:((C=s.ai_workers)==null?void 0:C.avatar_url)||"",type:"ai_worker"},unread:s.status==="pending",context:u,approvalPayload:{type:"approval_request",approval_id:s.id,tool_name:s.tool_name,toolkit:s.toolkit,context_summary:s.context_summary,arguments:s.arguments||{},identity_label:s.identity_label,sent_as:s.sent_as,worker_identity_label:s.worker_identity_label,connection_source:s.connection_source,status:s.status,decision:s.decision,decided_at:s.decided_at},approvalMessageId:s.message_id}}))}const Z=r==="invitations"?X:r==="approvals"?H:[...oe,...K,...H].sort((a,_)=>new Date(_.timestamp).getTime()-new Date(a.timestamp).getTime());let $=Z;r!=="all"&&($=Z.filter(a=>{switch(r){case"hires":return a.type==="hire";case"reactions":return a.type==="reaction";case"threads":return a.type==="thread";case"mentions":return a.type==="mention";case"invitations":return a.type==="invitation";case"approvals":return a.type==="approval";default:return!0}})),w?(t($),y(g)):(t(a=>[...a,...$]),y(a=>a+g)),b((Y||[]).length===g)}catch(d){console.error("Error fetching activities:",d)}finally{l(!1)}},n=()=>{!c&&f&&N(!1)};return h.useEffect(()=>{t([]),y(0),b(!0),N(!0)},[r,o,m==null?void 0:m.current_workplace_id]),{activities:x,loading:c,hasMore:f,loadMoreActivities:n}},te=({onActivitySelect:r,selectedActivityId:x,onActivityRead:t})=>{const[c,l]=h.useState("all"),[f,b]=h.useState(()=>{const i=localStorage.getItem("workait-activity-show-unread-only");return i?JSON.parse(i):!1}),{activities:p,loading:y,hasMore:o,loadMoreActivities:m}=Be(c),{fetchReadStatus:N,markAsRead:n,isRead:w}=Ue(),{t:d}=M();h.useEffect(()=>{localStorage.setItem("workait-activity-show-unread-only",JSON.stringify(f))},[f]),h.useEffect(()=>{p.length>0&&N(p.map(i=>({id:i.id,type:i.type})))},[p,N]);const g=async(i,S)=>{try{await n(i,S),window.dispatchEvent(new CustomEvent("activity-marked-read",{detail:{activityId:i,activityType:S}}))}catch(D){console.error("Failed to mark activity as read:",D)}r(i,S)},R=i=>{const{scrollTop:S,scrollHeight:D,clientHeight:k}=i.currentTarget;D-S===k&&o&&!y&&m()},E=()=>
35{l("all"),b(!1)},F=f?p.filter(i=>!w(i.id,i.type)||i.id===x):p;return e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsx("div",{className:"pt-5 px-4 pb-4 border-b border-border/40",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:"Activity"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("label",{htmlFor:"unread-activities",className:"text-sm text-muted-foreground cursor-pointer",onClick:()=>b(!f),children:d("workplace.activity.ActivityFeed.div_div_label.unread_activities","Unread")}),e.jsx(xe,{id:"unread-activities",checked:f,onCheckedChange:b,className:"data-[state=checked]:bg-[hsl(var(--workait-primary))]"})]})]})}),e.jsx(Ge,{activeTab:c,onTabChange:l}),e.jsx(ie,{className:"flex-1",onScrollCapture:R,children:e.jsx("div",{className:"py-2",children:y&&p.length===0?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(q,{className:"h-6 w-6 animate-spin text-gray-400"})}):F.length===0?e.jsx("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-2xl mb-2",children:"ð"}),e.jsx("div",{className:"text-muted-foreground text-sm mb-3",children:d("workplace.activity.ActivityFeed.div_div_div.ta_da_you_re_up_to_date","Ta-da! You're up to date.")}),e.jsx("button",{onClick:E,className:"text-sm text-primary hover:text-primary/80 underline underline-offset-4 transition-colors",children:d("workplace.activity.ActivityFeed.div_div_button.show_all_activity","Show all activity")})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-muted-foreground text-sm",children:["No ",c==="all"?"activity":c," found"]}),e.jsx("div",{className:"text-muted-foreground text-xs mt-1",children:d("workplace.activity.ActivityFeed.div_div_div.activities_will_appear_here_as_you_inter","Activities will appear here as you interact with AI workers")})]})}):e.jsxs("div",{className:"space-y-1",children:[F.map(i=>e.jsx(Me,{activity:{...i,unread:!w(i.id,i.type)},isSelected:x===i.id,onClick:()=>g(i.id,i.type)},i.id)),y&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(q,{className:"h-5 w-5 animate-spin text-gray-400"})})]})})})]})},Ve=({activityId:r,activityType:x})=>{const{thread:t,loading:c}=He(r,x),[l,f]=h.useState(null),b=ue(),{workers:p}=he(),y=h.useMemo(()=>p?p.map(n=>({id:n.id,name:n.name,type:"worker"})):[],[p]),{t:o}=M(),m=()=>{if(!t)return;const n=t.sender.type==="ai_worker"?t.senderId:t.receiverId;if(!n){U({title:"Error",description:"Unable to identify worker for reply",variant:"destructive"});return}const w=O({workerId:n,messageId:t.id,originalContent:t.content});b(w)},N=async(n,w)=>{if(n){f(n);try{const{supabase:d}=await be(async()=>{const{supabase:R}=await import("./index-D2yE0WFs.js").then(E=>E.dh);return{supabase:R}},__vite__mapDeps([0,1])),{error:g}=await d.from("messages").update({feedback:w}).eq("id",n);if(g)throw g;U({title:"Feedback recorded",description:w>0?"Thanks for the positive feedback!":"Thanks for the feedback, we'll improve!"})}catch(d){console.error("Error rating message:",d),U({title:"Error",description:"Failed to record feedback",variant:"destructive"})}finally{f(null)}}};return r?c?e.jsx("div",{className:"h-full flex items-center justify-center",children:e.jsx(q,{className:"h-6 w-6 animate-spin text-gray-400"})}):t?e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsx("div",{className:"p-4 border-b border-border/40 bg-background/50",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(P,{src:W(t.sender.avatar,"micro"),alt:t.sender.name,fallbackText:I(t.sender.name),className:"h-10 w-10",priority:!0}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("h2",{className:"font-semibold text-foreground",children:t.sender.name}),e.jsx(se,{variant:"outline",className:"text-xs",children:t.type})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(pe,{className:"h-3 w-3"}),ve(new Date(t.timestamp),"PPp",{locale:L()}),t.context&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"â¢"}),e.jsx("span",{children:t.context})]})]})]}),e.jsx(T,{variant:"ghost",size:"icon",className:"h-8 w-8","aria-label":o("a11y.activity.more-options","More options"),children:e.jsx(_e,{className:"h-4 w-4"})})]})}),e.jsx(ie,{className:"flex-1",children:e.jsxs("div",{className:"p-4 space-y-4",children:[t.type==="approval"&&t.approvalPayload?e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[e.jsx(P,{src:W(t.sender.avatar,"micro"),alt:t.sender.name,fallbackText:I(t.sender.name),className:"h-8 w-8",fallbackClassName:"text-xs",priority:!0}),e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"font-medium text-sm",children:t.sender.name}),e.jsx("span",{className:"text-xs text-muted-foreground",children:V(new Date(t.timestamp),{addSuffix:!0,locale:L()})})]})})]}),e.jsx(ye,{payload:t.approvalPayload,messageId:t.approvalMessageId||t.id,onConnectInChat:()=>{const n=t.sender.type==="ai_worker"?t.senderId:t.receiverId;if(!n){U({title:o("activity.connect.noWorker.title","Could not open the chat"),description:o("activity.connect.noWorker.body","We couldn't identify which w
35orker this approval belongs to."),variant:"destructive"});return}b(O({workerId:n,messageId:t.approvalMessageId||t.id}))}})]}):e.jsx("div",{className:"rounded-lg border bg-card p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(P,{src:W(t.sender.avatar,"micro"),alt:t.sender.name,fallbackText:I(t.sender.name),className:"h-8 w-8",fallbackClassName:"text-xs",priority:!0}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"font-medium text-sm",children:t.sender.name}),e.jsx("span",{className:"text-xs text-muted-foreground",children:V(new Date(t.timestamp),{addSuffix:!0,locale:L()})})]}),e.jsx(ee,{content:t.content,className:"text-sm text-foreground",mentionEntities:y}),e.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[t.rating&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(we,{className:z("h-4 w-4",t.rating===1?"fill-yellow-400 text-yellow-400":"fill-red-400 text-red-400")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.rating===1?"Liked":"Disliked"})]}),e.jsxs(T,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:m,children:[e.jsx(ge,{className:"h-3 w-3 mr-1"}),"Reply"]}),e.jsxs(T,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>(t==null?void 0:t.id)&&N(t.id,1),disabled:l===(t==null?void 0:t.id),children:[e.jsx(ke,{className:"h-3 w-3 mr-1"}),l===(t==null?void 0:t.id)?e.jsx(q,{className:"h-3 w-3 animate-spin"}):"Like"]}),e.jsxs(T,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>(t==null?void 0:t.id)&&N(t.id,-1),disabled:l===(t==null?void 0:t.id),children:[e.jsx(je,{className:"h-3 w-3 mr-1"}),l===(t==null?void 0:t.id)?e.jsx(q,{className:"h-3 w-3 animate-spin"}):"Dislike"]})]})]})]})}),t.relatedMessages&&t.relatedMessages.length>0&&e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground border-b pb-2",children:o("workplace.activity.ActivityThread.div_div_div.thread_history","Thread History")}),t.relatedMessages.map((n,w)=>e.jsxs("div",{className:"flex items-start gap-3 pl-4 border-l-2 border-muted",children:[e.jsx(P,{src:W(n.sender.avatar,"micro"),alt:n.sender.name,fallbackText:I(n.sender.name),className:"h-6 w-6",fallbackClassName:"text-xs",priority:!0}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"text-sm font-medium",children:n.sender.name}),e.jsx("span",{className:"text-xs text-muted-foreground",children:V(new Date(n.timestamp),{addSuffix:!0,locale:L()})})]}),e.jsx(ee,{content:n.content,className:"text-sm text-muted-foreground",mentionEntities:y})]})]},w))]})]})})]}):e.jsx("div",{className:"h-full flex items-center justify-center",children:e.jsx("div",{className:"text-center",children:e.jsx("div",{className:"text-sm text-muted-foreground",children:o("workplace.activity.ActivityThread.div_div_div.unable_to_load_activity_thread","Unable to load activity thread")})})}):e.jsx("div",{className:"h-full flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(fe,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:o("workplace.activity.ActivityThread.div_div_h3.select_an_activity","Select an activity")}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:o("workplace.activity.ActivityThread.div_div_p.choose_one_from_the_left_to_see_more","Choose one from the left to see more")})]})})},ae="workplace_activity",Ye=({onActivityRead:r,isMobileSidebarOpen:x=!1,setIsMobileSidebarOpen:t})=>{const c=Ne(ae),[l,f]=h.useState((c==null?void 0:c.activityId)??null),[b,p]=h.useState((c==null?void 0:c.activityType)??"message"),{t:y}=M(),o=(m,N)=>{f(m),p(N),Ee(ae,{activityId:m,activityType:N}),t==null||t(!1)};return e.jsxs("div",{className:"h-full flex flex-col bg-[#F9F9F9]",children:[e.jsxs(Ae,{direction:"horizontal",children:[e.jsx(Q,{defaultSize:35,minSize:15,maxSize:50,className:"hidden md:block bg-white border-r border-border/40",children:e.jsx(te,{onActivitySelect:o,selectedActivityId:l,onActivityRead:r})}),e.jsx(Se,{className:"hidden md:flex bg-border/40 hover:bg-border"}),e.jsxs(Q,{defaultSize:65,minSize:50,className:"bg-[#F9F9F9]",children:[e.jsxs("div",{className:"md:hidden flex items-center px-3 py-2 border-b border-border/40 bg-white",children:[e.jsx(T,{variant:"ghost",size:"icon",className:"text-foreground mr-2",onClick:()=>t==null?void 0:t(!0),"aria-label":y("a11y.activity.open-activity-list","Open activity list"),children:e.jsx(Ce,{size:20})}),e.jsx("span",{className:"text-sm font-medium text-foreground",children:"Activity"})]}),e.jsx(Ve,{activityId:l,activityType:b})]})]}),e.jsx("div",{className:z("fixed inset-0 z-50 bg-black/80 md:hidden transition-opacity",x?"opacity-100":"opacity-0 pointer-events-none"),onClick:()=>t==null?void 0:t(!1)}),e.jsx("div",{className:z("fixed inset-y-0 left-0 z-50 w-72 bg-white shadow-xl md:hidden transition-transform",x?"translate-x-0":"-translate-x-full"),children:e.jsx(te,{onActivitySelect:o,selectedActivityId:l,onActivityRead:r})})]})},Je=()=>{var l;const{profile:r}=re();Ie("Activity",(l=r==null?void 0:r.current_workplace)==null?void 0:l.name),We("activity");const{refreshUnreadCount:x}=Le(),[t,c]=h.useState(!1);return e.jsxs("div",{className:"h-screen flex pb-14 md:pb-0",children:[e.jsx(ne,{}),e.jsx("div",{className:"flex-1 overflow-hidden",children:e.jsx(Ye,{onActivityRead:x,isMobileSidebarOpen:t,setIsMobileSidebarOpen:c})}),e.jsx(ce,{})]})},Ke=()=>{const{t:r}=M(),x=De(),{isMobile:t}=Te(),c=new URLSearchParams(x.search).get("workplaceId"),{gateState:l}=qe(c);return h.useEffect(()=>{l==="ready"&&c&&Re(["workplaceId"])},[l,c]),l!=="ready"?e.jsxs("div",{className:"flex h-screen",children:[e.jsx(ne,{}),e.jsx("div",{className:"flex-1 flex flex-col items-center justify-center bg-[#292929] text-white",style:{paddingBottom:t?"var(--mobile-nav-height, 3.5rem)":void 0},children:e.jsxs("div",{className:"flex flex-col items-center gap-6",children:[e.jsx("div",{className:"h-20 w-20 rounded-xl bg-[#5A60F1] flex items-center justify-center shadow-lg overflow-hidden",children:e.jsx("span",{className:"text-white text-4xl font-bold",children:"W"})}),e.jsx(q,{className:"h-10 w-10 text-white animate-spin"}),e.jsx("h2",{className:"text-xl font-medium text-white",children:"Workait"})]})}),t&&e.jsx(ce,{})]}):e.jsxs(ze,{children:[e.jsx(Pe,{id:"activity",anchorPath:"/workplace/activity",title:r("guidance.moment.title.activity","Activity"),line:r("guidance.moment.activity","Everything your team did, in one stream.")}),e.jsx(Je,{})]})},Oe=()=>e.jsx(Fe,{requiredRole:"beta",children:e.jsx(Ke,{})});
35export{Oe 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.