1import{d as w,av as C,a7 as b,r as g,q as x,o,a as r,j as _,t as y,b as p,a8 as v}from"./-6Lls737.js";import{_ as I,a as S}from"./uPtXMLvQ.js";import"./DTkNhqIJ.js";import"./C9IHJtY7.js";import"./B5spvOTL.js";import"./DSV61gAW.js";import"./DlAUqK2U.js";const k={class:"container-sm h-full max-md:p-0"},M={key:0,class:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-white/80 backdrop-blur-sm"},N=_("div",{class:"w-8 h-8 border-2 border-t-transparent border-x-pink-1 rounded-full animate-spin"},null,-1),$={class:"mt-4 text-sm text-x-grey-15"},B={key:1},E=w({__name:"index",setup(P){const i=C(),e=b(),s=g(!1),c=g(""),f=async()=>{if(typeof window>"u")return;const t=sessionStorage.getItem("pendingConversationUserId");if(t)try{s.value=!0,c.value="Starting new conversation...";const a=sessionStorage.getItem("pendingConversationMessage"),n=Number(t),h=a||"";await e.startConversation(n,h),sessionStorage.removeItem("pendingConversationUserId"),sessionStorage.removeItem("pendingConversationMessage"),await e.fetchConversations();const d=e.conversations.find(u=>{var l,m;return((l=u.initiator_user)==null?void 0:l.id)===n||((m=u.recipient_user)==null?void 0:m.id)===n});d?await i.push(`/users/account/messages/${d.id}`):e.currentConversationId?await i.push(`/users/account/messages/${e.currentConversationId}`):(s.value=!1,await v.error("Failed to create conversation. Please try again."))}catch{s.value=!1,await v.error("Failed to start conversation. Please try again.")}};return x(()=>{f()}),(t,a)=>(o(),r("div",k,[s.value?(o(),r("div",M,[N,_("p",$,y(c.value),1)])):(o(),r("div",B)),p(I),p(S)]))}});export{E 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.