PageSourceSearch

https://erobella.com/_nuxt/BHWZcpvO.js

js erobella.com collected 2026-09-24 10:05:22 UTC 29,381 bytes, 1 lines download raw bytes

1import{f as Tt,a7 as St,r as x,a8 as ge,d as qt,a4 as Kt,aQ as Wt,b8 as Qt,b9 as Zt,aq as pe,Z as Jt,ax as gt,F as ve,q as es,aG as C,ba as me,ap as _t,v as ts,c as j,o as i,a,j as n,aV as J,e,b as P,k as E,l as c,t as k,n as D,Q as ee,R as xt,B as L,m as wt,K as ss,b5 as ns,D as os,aO as is,w as rs,a2 as as,a0 as De,bb as ls,bc as ds,M as cs,bd as us}from"./-6Lls737.js";import{_ as hs}from"./C2j6UuSi.js";import{u as yt,_ as fs,M as Be,a as ps,b as vs,c as ms,d as gs,e as _s,f as xs,g as ws,h as ys,i as bs,j as ks,k as bt}from"./TToVuD9r.js";import{_ as Ms,a as Ts,M as Ss}from"./jKrhmY4U.js";import{_ as Cs}from"./C3mnBS__.js";import{_ as Es,a as Ds}from"./uPtXMLvQ.js";import{i as Bs}from"./Dn9AdfR4.js";import{u as Is}from"./DG8JnK8j.js";import{u as kt}from"./CXnfTPfL.js";import{_ as $s}from"./DlAUqK2U.js";import"./DTkNhqIJ.js";import"./C9IHJtY7.js";import"./B5spvOTL.js";import"./DSV61gAW.js";import"./Bf3VUeaX.js";import"./DPW9WYez.js";import"./DOHqYavS.js";import"./DkMiOBSJ.js";import"./DekfMc5K.js";import"./BTKKQg60.js";import"./B-WMGmDU.js";import"./BjgMM6IP.js";import"./DmcX-yy6.js";function Ps(U,M={}){const{t:te}=Tt(),B=St(),G=x(!1),_=x(!1),u=x(!1);function p(){U.value&&(_.value=!0)}function I(){U.value&&(u.value=!0)}function _e(){U.value&&(G.value=!0)}async function $(){var N;if(U.value)try{await B.unblockUser(U.value),ge.success(te("account.conversations.unblockSuccess")),(N=M.onUnblocked)==null||N.call(M)}catch(z){console.error("Failed to unblock user:",z),ge.error(te("account.conversations.unblockError"))}}function se(){var N;G.value=!1,(N=M.onDeleted)==null||N.call(M)}function xe(N){var z;_.value=!1,(z=M.onReported)==null||z.call(M,N)}return{showDeleteConversationModal:G,showReportUserModal:_,showBlockUserModal:u,openReportModal:p,openBlockModal:I,openDeleteModal:_e,handleUnblock:$,handleConversationDeleted:se,handleUserReported:xe}}const b=U=>(ls("data-v-9a593936"),U=U(),ds(),U),Us={class:"container-sm max-md:p-0 h-full flex flex-col"},Ns={class:"flex flex-col h-full md:border md:border-x-grey-1 md:rounded-2xl md:overflow-hidden md:shadow"},js={class:"flex items-center justify-between"},Rs={key:0,class:"px-2"},As={key:1,class:"flex flex-col h-screen"},Gs={key:0,class:"fixed left-0 right-0 z-20 bg-[#8BC34A] text-white text-xs px-4 py-2.5 flex items-center justify-center top-[49px]"},Ls={class:"text-center mt-1"},Vs=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),Hs=[Vs],Os={key:0,class:"flex justify-center py-4"},Fs={class:"flex items-center gap-2 bg-white px-4 py-2 rounded-full shadow-md border border-x-grey-1"},zs=b(()=>n("div",{class:"w-4 h-4 border-2 border-x-pink-1 border-t-transparent rounded-full animate-spin"},null,-1)),Xs={class:"text-xs text-x-grey-15"},Ys={key:1,class:"flex items-center justify-center h-full"},qs={class:"flex flex-col items-center gap-3"},Ks=b(()=>n("div",{class:"w-8 h-8 border-2 border-x-pink-1 border-t-transparent rounded-full animate-spin"},null,-1)),Ws={class:"text-xs text-x-grey-15"},Qs={key:2,class:"flex flex-col items-center justify-end h-full py-8"},Zs=b(()=>n("div",{class:"bg-gradient-vertical-light-pink p-4 rounded-xl mb-4"},[n("div",{class:"w-12 h-12 flex items-center justify-center text-white"},[n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})])])],-1)),Js={class:"text-sm text-black font-semibold"},en={class:"text-xs text-x-grey-15 text-center max-w-60 mt-2"},tn={key:3,class:"flex flex-col min-h-full justify-end"},sn={class:"grid grid-cols-1 gap-4"},nn={class:"flex items-center justify-center my-4 relative"},on={class:"bg-x-grey-2 text-xs text-x-grey-15 px-4 py-1 rounded-full z-10"},rn=b(()=>n("div",{class:"absolute h-px w-full bg-x-grey-1"},null,-1)),an=["onTouchstart","onTouchmove","onTouchend"],ln=["src"],dn={key:0,class:"flex items-center gap-1 justify-end"},cn=b(()=>n("div",{class:"w-3 h-3 border border-current border-t-transparent roun
1ded-full animate-spin"},null,-1)),un=["onClick"],hn=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n("path",{d:"M3 6h18"}),n("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),n("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)),fn=[hn],pn={key:1,class:"flex flex-row flex-nowrap items-center justify-center gap-0"},vn={class:"w-full relative"},mn={key:2,class:"flex flex-row flex-nowrap items-center justify-center gap-0"},gn={class:"w-full relative"},_n=["onTouchstart","onTouchmove","onTouchend"],xn={key:0,class:"flex flex-col"},wn={class:"self-end mt-1"},yn={key:1,class:"flex items-end justify-between"},bn=["innerHTML"],kn={key:1,class:"pr-1.5 break-words"},Mn=["onClick"],Tn=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n("path",{d:"M3 6h18"}),n("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),n("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)),Sn=[Tn],Cn=["onTouchstart","onTouchmove","onTouchend"],En=["onClick"],Dn=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n("path",{d:"M3 6h18"}),n("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),n("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)),Bn=[Dn],In=["onTouchstart","onTouchmove","onTouchend"],$n=["onClick"],Pn=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n("path",{d:"M3 6h18"}),n("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),n("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)),Un=[Pn],Nn={key:1,class:"message-input-container relative flex-shrink-0 bg-white z-20 p-4 border-t border-x-grey-1 max-md:fixed max-md:bottom-0 max-md:left-0 max-md:right-0 max-md:shadow-[0_-2px_10px_rgba(0,0,0,0.05)]"},jn={key:0,class:"absolute -top-6 left-4 bg-white rounded-t-lg px-3 py-1 text-xs flex items-center gap-2 border border-b-0 border-x-grey-1"},Rn={class:"text-gray-500"},An={key:1,class:"absolute -top-6 left-4 bg-white rounded-t-lg px-3 py-1 text-xs flex items-center gap-2 border border-b-0 border-x-grey-1"},Gn={class:"text-gray-500"},Ln={class:"flex items-center gap-1.5"},Vn={class:"flex-none flex items-center gap-1.5"},Hn=["disabled"],On=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),n("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),n("polyline",{points:"21 15 16 10 5 21"})],-1)),Fn=[On],zn={key:0,class:"relative shrink-0"},Xn=["aria-label","title","disabled"],Yn=cs('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-9a593936><polyline points="20 12 20 22 4 22 4 12" data-v-9a593936></polyline><rect x="2" y="7" width="20" height="5" data-v-9a593936></rect><line x1="12" y1="22" x2="12" y2="7" data-v-9a593936></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z" data-v-9a593936></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z" data-v-9a593936></path></svg>',1),qn=[Yn],Kn={key:0,"aria-hidden":"true",class:"eb-new-tag pointer-events-none absolute -right-[9px] -top-[7px] rounded-full bg-gradient-to-r from-x-pink to-x-orange px-[5px] py-[2px] text-[8px] font-extrabold leading-none tracking-[0.06em] text-white shadow-[0_2px_6px_rgba(231,64,124,0.4)]"},Wn={key:1,class:"relative shrink-0"},Qn=["aria-label","title","disabled"],Zn=b(()=>n("svg",{width:"17",height:"17",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"},[n("path",{d:"M10 3.2v13.6"}),n("path",{d:"M13.2 6.6c0-1.5-1.4-2.4-3.2-2.4S6.8 5.2 6.8 6.7c0 3.6 6.4 1.9 6.4 5.6 0 1.5-1.4 2.5-3.2 2.5s-3.2-1-3.2-2.5"})],-1)),Jn=[Zn],eo={key:0,"aria-hidden":"true",class:"eb-new-tag pointer-events-none absolute -right-[9px] -top-[7px] rounded-full bg-gradient-to-r from-x-pink to-x-orange px-[5px] py-[2px] text-[8px] font-extrabold leading-none tracking-[0.06em] text-white shadow-[0_2px_6px_rgba(231,64,124,0.4)]"},to=["disabled"],so=b(()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("polygon",{points:"23 7 16 12 23 17 23 7"}),n("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),no=[so],oo=["placeholder","disabled"],io=["value"],ro={key:0,class:"w-4 h-4 border-2 border-white border-t-transparent roun
1ded-full animate-spin"},ao={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},lo=b(()=>n("line",{x1:"22",y1:"2",x2:"11",y2:"13"},null,-1)),co=b(()=>n("polygon",{points:"22 2 15 22 11 13 2 9 22 2"},null,-1)),uo=[lo,co],Ie=13,ho=864e5,fo=500,Mt=10,po=qt({__name:"[id]",setup(U){const M=Is(),te=s=>{if(!s||typeof s!="string")return!1;const t=s.trim();if(!t)return!1;const r=/^https?:\/\/.*\.gif(\?.*)?$/i,l=/^https?:\/\/(media\.)?tenor\.com/i,h=/^https?:\/\/(media\d*\.)?giphy\.com/i;return r.test(t)||l.test(t)||h.test(t)},B=Kt(),G=Wt(),_=B.params.id,{t:u}=Tt(),p=St(),I=Qt(),_e=async()=>{const s=I.selectedGift;if(!(!s||!_)){I.isSending=!0;try{await p.sendGiftMessage(Number(_),s.id),I.closeGiftPicker()}catch(t){if(bt(t)===402){I.openShortfallModal(s);return}ge.error(u("account.conversations.gift.sendFailed"))}finally{I.isSending=!1}}},$=Zt(),{isVisible:se,dismiss:xe}=yt(pe.CHAT_GIFT_NEW_BADGE_DISMISSED),{isVisible:N,dismiss:z}=yt(pe.CHAT_TIP_NEW_BADGE_DISMISSED),Ct=()=>{xe(),I.openGiftPicker()},Et=()=>{z(),$.openTipSheet()},Dt=async()=>{const s=$.amount;if(!(!s||!_)){$.isSending=!0;try{await p.sendTipMessage(Number(_),s),$.closeTipSheet()}catch(t){if(bt(t)===402){$.openShortfallModal(s);return}ge.error(u("account.conversations.tip.sendFailed"))}finally{$.isSending=!1}}},ne=Jt(),{currentConversation:d,loading:T,isConversationBlocked:V,currentMessages:Y}=gt(p),{currentUser:H}=gt(ne),O=x(""),oe=x(!1),we=x("image"),R=x(null),Bt=x(null),ie=x(!1),X=x(!1),ye=x(!1),re=x(!0),It=()=>{re.value=!1,_t.setItem(pe.CHAT_PROMO_BANNER_DISMISSED,"true")};x(null);const $e=kt(()=>{p.sendTypingIndicator()},100),$t=async()=>{if(!_||T.value.loadingEarlier||X.value)return;X.value=!0;const s=Number(_),t=p.pagination[s];if(!t||!t.hasMore){X.value=!1;return}const r=R.value;let l=0,h=0;r&&(l=r.scrollHeight,h=r.scrollTop);try{if(await p.loadEarlierMessages(s),await C(),r){const S=r.scrollHeight-l;S>0&&(r.scrollTop=h+S)}}catch(w){console.error("Error loading earlier messages:",w)}finally{X.value=!1}},A=async()=>{if(ie.value)return;ie.value=!0,await C();const s=()=>{R.value&&(R.value.scrollTop=R.value.scrollHeight)};await new Promise(t=>setTimeout(t,0)),s(),await new Promise(t=>setTimeout(t,50)),s(),await new Promise(t=>setTimeout(t,100)),s(),await new Promise(t=>setTimeout(t,150)),s(),await new Promise(t=>setTimeout(t,300)),s(),await new Promise(t=>setTimeout(t,500)),requestAnimationFrame(()=>{s(),setTimeout(()=>{ie.value=!1,ye.value=!0},50)})},Pt=kt(A,200);ve(()=>B.params.id,async s=>{if(s){ye.value=!1,p.unsubscribeFromCurrentChannel();const t=Number(s);p.currentConversationId=t,p.loading.messages=!0,p.isConversationBlocked=!1,await p.fetchConversations(t),await p.fetchMessagesWithPagination(t,20,!0),C(()=>A())}},{immediate:!0}),ve(()=>Y.value,(s,t)=>{if(X.value||!s||s.length===0)return;const r=s.length,l=(t==null?void 0:t.length)||0;if(r>l){const h=s[r-1],w=t&&l>0?t[l-1]:null;if(!w||h.id!==w.id){C(A);return}}if(r===l&&r>0){const h=s[r-1],w=t[l-1];if(h.id!==w.id){C(A);return}}},{deep:!0}),ve(()=>R.value,s=>{var t;s&&((t=Y.value)==null?void 0:t.length)>0&&A()}),ve(()=>B.name,(s,t)=>{typeof s=="string"&&(s==="users-account-messages-id"||s==="users-account-messages-id-index"||typeof t=="string"&&t.includes("media")&&!s.includes("media"))&&C(A)});const ae=s=>{const t=s.detail;t&&t.conversationId===Number(_)&&C(A)};es(()=>{if(C(A),window.addEventListener(me.TEMP_MESSAGE_ADDED,ae),window.addEventListener(me.CONTENT_MESSAGE_ADDED,ae),_t.getItem(pe.CHAT_PROMO_BANNER_DISMISSED)==="true"&&(re.value=!1),R.value){const t=new MutationObserver(()=>{if(X.value||F.value||y.value)return;const r=R.value;if(!r)return;r.scrollHeight-r.scrollTop-r.clientHeight<200&&Pt()});t.observe(R.value,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"],characterData:!1}),window._messageObserver=t}}),ts(()=>{Me(),p.currentConversationId=null,p.unsubscribeFromCurrentChannel(),window.removeEventListener(me.TEMP_MESSAGE_ADDED,ae),window.removeEventListener(me.CONTENT_MESSAGE_ADDED,ae),window._messageOb
1server&&(window._messageObserver.disconnect(),window._messageObserver=null)});const v=j(()=>{var t,r,l;return!((t=d.value)!=null&&t.initiator_user)||!((r=d.value)!=null&&r.recipient_user)?null:((l=H.value)==null?void 0:l.id)===d.value.initiator_user.id?d.value.recipient_user:d.value.initiator_user}),be=j(()=>{var s;return Bs((s=v.value)==null?void 0:s.username)}),Pe=async()=>{if(!O.value.trim()||!_)return;B.name==="users-account-messages-id-media"&&(await G.push(`/users/account/messages/${_}`),await C());const s=O.value;O.value="",await p.sendMessage(s),C(()=>requestAnimationFrame(A))},Ue=j(()=>{if(!H.value||!Y.value)return[];const s=[...Y.value];return s.sort((t,r)=>{const l=String(t.id).length>=Ie,h=String(r.id).length>=Ie;return l&&!h?1:!l&&h?-1:new Date(t.created_at).getTime()-new Date(r.created_at).getTime()}),s.map(t=>{var Q,Z;const r=((Q=t.user)==null?void 0:Q.id)===((Z=H.value)==null?void 0:Z.id),l=String(t.id).length>=Ie,h=t.content.match(/Sent (\d+) image[s]* \((\d+) credits\)/),w=!!h||t.message_type==="image",S=h?{images:parseInt(h[1]),price:parseInt(h[2])}:null,W=t.read_sent_time?new Date(t.read_sent_time):new Date(t.created_at),fe=W.toLocaleDateString();return{type:r?"self":"user",date:fe,timestamp:W.getTime(),message:t.content,id:t.id,user:t.user,isTemporary:l,isContentMessage:w,contentInfo:S,originalMessage:t}})}),Ut=j(()=>{if(Ue.value.length===0)return[];const s=[];let t=null,r=null;const l=new Date().toLocaleDateString(),h=new Date(Date.now()-ho).toLocaleDateString();return Ue.value.forEach(w=>{if(w.date!==t){t=w.date;let S;t===l?S=u("account.conversations.today"):t===h?S=u("account.conversations.yesterday"):S=t,r={date:t,dateLabel:S,messages:[]},s.push(r)}r&&r.messages.push(w)}),s}),Nt=j(()=>{var s;return!((s=Y.value)!=null&&s.length)}),jt=async()=>{B.name==="users-account-messages-id-media"&&(await G.push(`/users/account/messages/${_}`),await C()),we.value="image",oe.value=!0},Rt=async()=>{typeof window>"u"||(B.name==="users-account-messages-id-media"&&(await G.push(`/users/account/messages/${_}`),await C()),we.value="video",oe.value=!0)},ke=j(()=>!!ne.hasRole(De.PUNTER)),At=j(()=>!!ne.hasRole(De.ESCORT)||!!ne.hasRole(De.VENUE)),Gt=j(()=>At.value?u("account.chatPromoBanner.escortVenue"):u("account.chatPromoBanner.punter")),Lt=j(()=>({position:"fixed",top:"0",left:"0",right:"0",zIndex:"30",backgroundColor:"white"})),y=x(null),q=x(!1),le=x(null),F=x(null),K=x(null),g=s=>{var r;if(s.type!=="self"||s.isTemporary||!((r=s.originalMessage)!=null&&r.id))return!1;const t=s.originalMessage;return!(t.message_type==="gift"||t.message_type==="tip"||(t.message_type==="image"||t.message_type==="video")&&t.price>0&&t.is_unlocked===!0)},Me=()=>{F.value&&(clearTimeout(F.value),F.value=null),K.value=null},de=(s,t)=>{y.value&&y.value!==t&&(y.value=null),K.value={x:s.touches[0].clientX,y:s.touches[0].clientY},F.value=setTimeout(()=>{y.value=t,F.value=null},fo)},ce=s=>{if(!K.value||!F.value)return;const t=s.touches[0].clientX,r=s.touches[0].clientY,l=Math.abs(t-K.value.x),h=Math.abs(r-K.value.y);(l>Mt||h>Mt)&&Me()},ue=()=>{Me()},he=s=>{le.value=s,q.value=!0,y.value=null},Vt=()=>{q.value=!1,le.value=null},{showDeleteConversationModal:Te,showReportUserModal:Se,showBlockUserModal:Ce,openReportModal:Ht,o
1penBlockModal:Ot,openDeleteModal:Ft,handleUnblock:zt,handleConversationDeleted:Xt,handleUserReported:Ne}=Ps(j(()=>{var s;return(s=d.value)==null?void 0:s.id}),{onDeleted:()=>G.push("/users/account/messages"),onReported:async s=>{s&&(await p.fetchConversations(Number(_)),await p.fetchMessages(Number(_)))}}),Yt=s=>{var r;const t=s.target;if(ye.value&&!ie.value&&!T.value.messages&&!T.value.loadingEarlier&&t.scrollTop===0){const l=Number(_);(r=p.pagination[l])!=null&&r.hasMore&&$t()}};return(s,t)=>{var l,h,w,S,Ee,W,fe,Q,Z,je,Re,Ae,Ge,Le,Ve,He,Oe,Fe,ze,Xe,Ye,qe,Ke,We,Qe;const r=us;return i(),a("div",Us,[n("div",Ns,[n("div",{style:J(e(Lt)),class:"md:hidden"},[n("div",js,[P(Cs,{user:e(v)||{display_name:"Unknown User"},isInternal:e(be),showBackButton:!0,showTabs:!0,isBlocked:e(V)||((l=e(d))==null?void 0:l.blocked)||((h=e(d))==null?void 0:h.has_blocked),class:"flex-1"},null,8,["user","isInternal","isBlocked"]),e(be)?c("",!0):(i(),a("div",Rs,[(i(),E(fs,{key:`action-menu-${(w=e(d))==null?void 0:w.id}-${(S=e(d))==null?void 0:S.has_blocked}`,"is-blocked":((Ee=e(d))==null?void 0:Ee.has_blocked)||!1,onReport:e(Ht),onBlock:e(Ot),onDelete:e(Ft),onUnblock:e(zt)},null,8,["is-blocked","onReport","onBlock","onDelete","onUnblock"]))]))])],4),e(B).name&&typeof e(B).name=="string"&&e(B).name.includes("media")?(i(),E(r,{key:0,class:"flex-grow"})):(i(),a("div",As,[e(re)?(i(),a("div",Gs,[n("span",Ls,k(e(Gt)),1),n("button",{onClick:It,class:"shrink-0 p-1 hover:bg-white/20 rounded absolute right-2"},Hs)])):c("",!0),n("div",{ref_key:"messagesContainer",ref:R,onScroll:Yt,onClick:t[4]||(t[4]=m=>y.value=null),class:D(["messages-container flex-1 overflow-y-auto overflow-x-hidden overscroll-behavior-contain p-4 md:p-6 md:pb-4 pb-[70px] [scroll-padding-bottom:250px] max-md:bg-x-grey-2",[e(re)?"pt-[100px]":"pt-[60px]"]])},[e(T).loadingEarlier?(i(),a("div",Os,[n("div",Fs,[zs,n("span",Xs,k(e(u)("account.conversations.loadingEarlierMessages")),1)])])):c("",!0),e(T).messages?(i(),a("div",Ys,[n("div",qs,[Ks,n("p",Ws,k(e(u)("account.conversations.loadingMessages")),1)])])):e(Nt)?(i(),a("div",Qs,[Zs,n("span",Js,k(e(u)("account.conversations.noMessagesYet")),1),n("span",en,k(e(u)("account.conversations.startConversationPrompt")),1)])):(i(),a("div",tn,[n("div",sn,[(i(!0),a(ee,null,xt(e(Ut),m=>(i(),a(ee,{key:`group-${m.date}`},[n("div",nn,[n("div",on,k(m.dateLabel),1),rn]),(i(!0),a(ee,null,xt(m.messages,o=>{var Ze,Je,et,tt,st,nt,ot,it,rt,at,lt,dt,ct,ut,ht,ft,pt,vt,mt;return i(),a(ee,{key:`msg-${o.id}`},[te(o.message)?(i(),a("div",{key:0,class:D(["flex flex-row flex-nowrap items-center gap-0",o.type==="self"?"justify-end":"justify-start"])},[n("div",{class:D(["flex flex-col gap-2 max-w-[280px] relative transition-transform duration-150",o.isTemporary?"opacity-70":""]),style:J(g(o)&&e(y)===o.originalMessage.id?{transform:"translateX(-36px)"}:{}),onTouchstart:f=>g(o)&&de(f,o.originalMessage.id),onTouchmove:f=>g(o)&&ce(f),onTouchend:f=>g(o)&&ue(),onContextmenu:t[0]||(t[0]=L(()=>{},["prevent"]))},[n("div",{class:D(["rounded-2xl overflow-hidden",o.type==="self"?"rounded-tr-none":"rounded-tl-none"])},[n("img",{src:o.message.trim(),alt:"GIF",class:"w-full max-h-64 object-contain bg-gray-100",loading:"lazy"},null,8,ln)],2),n("div",{class:D(["text-[9px] opacity-70 whitespace-nowrap px-1",o.type==="self"?"text-right text-x-grey-15":"text-left text-x-grey-15"])},[o.isTemporary?(i(),a("div",dn,[cn,wt(" sending... ")])):(i(),a(ee,{key:1},[wt(k(e(M)(o.timestamp)),1)],64))],2)],46,an),g(o)&&e(y)===o.originalMessage.id?(i(),a("button",{key:0,onClick:L(f=>he(o.originalMessage.id),["stop"]),class:"flex-shrink-0 w-7 h-7 flex items-center justify-center text-red-500"},fn,8,un)):c("",!0)],2)):((Ze=o.originalMessage)==null?void 0:Ze.message_type)==="gift"?(i(),a("div",pn,[n("div",vn,[P(Ms,{message:o.originalMessage,currentUserId:((Je=e(H))==null?void 0:Je.id)||0,showTimestamp:!0,recipientName:((et=e(v))==null?void 0:et.display_name)||((tt=e(v))==null?void 0:tt.username)||""},null,8,["message","currentUserId","recipientName"])])])):((st=o.originalMessage)==null?void 0:st.message_type)==="tip"?(i(),a("div",mn,[n("div",gn,[P(Ts,{message:o.originalMessage,currentUserId:((nt=e(H))==null?void 0:nt.id)||0,showTimestamp:!0,recipientName:((ot=e(v))==null?void 0:ot.display_name)||((it=e(v))==null?void 0:it.username)||""}
1,null,8,["message","currentUserId","recipientName"])])])):((rt=o.originalMessage)==null?void 0:rt.message_type)!=="image"&&((at=o.originalMessage)==null?void 0:at.message_type)!=="video"&&((lt=o.originalMessage)==null?void 0:lt.message_type)!=="gift"&&((dt=o.originalMessage)==null?void 0:dt.message_type)!=="tip"?(i(),a("div",{key:3,class:D(["flex flex-row flex-nowrap items-center gap-0",o.type==="self"?"justify-end":"justify-start"])},[n("div",{class:D(["flex flex-col gap-2.5 max-w-[80%] rounded-2xl p-4 bg-white text-xs break-all relative transition-transform duration-150",o.type==="self"?"bg-x-pink-1 text-white rounded-tr-none":"rounded-tl-none"]),style:J([{"user-select":"none","-webkit-touch-callout":"none"},g(o)&&e(y)===o.originalMessage.id?{transform:"translateX(-36px)"}:{}]),onContextmenu:t[1]||(t[1]=L(()=>{},["prevent"])),onTouchstart:f=>g(o)&&de(f,o.originalMessage.id),onTouchmove:f=>g(o)&&ce(f),onTouchend:f=>g(o)&&ue()},[o.type==="self"&&o.isTemporary?(i(),a("div",xn,[n("div",null,k(o.message),1),n("div",wn,[P(Be,{color:"white"})])])):(i(),a("div",yn,[(ut=(ct=o.originalMessage)==null?void 0:ct.user)!=null&&ut.is_admin&&((ht=o.originalMessage)!=null&&ht.is_html)?(i(),a("div",{key:0,class:"pr-1.5 break-words",innerHTML:o.message},null,8,bn)):(i(),a("div",kn,k(o.message),1)),n("div",{class:D(["text-[9px] opacity-70 whitespace-nowrap self-end flex-shrink-0",o.type==="self"?"text-white/80":"text-black/60"])},k(e(M)(o.timestamp)),3)]))],46,_n),g(o)&&e(y)===o.originalMessage.id?(i(),a("button",{key:0,onClick:L(f=>he(o.originalMessage.id),["stop"]),class:"flex-shrink-0 w-7 h-7 flex items-center justify-center text-red-500"},Sn,8,Mn)):c("",!0)],2)):((ft=o.originalMessage)==null?void 0:ft.message_type)==="image"?(i(),a("div",{key:4,class:D(["flex flex-row flex-nowrap items-center gap-0",o.type==="self"?"justify-end":"justify-start"])},[n("div",{class:"max-w-[80%] relative transition-transform duration-150",style:J([{"user-select":"none","-webkit-touch-callout":"none"},g(o)&&e(y)===o.originalMessage.id?{transform:"translateX(-36px)"}:{}]),onTouchstart:f=>g(o)&&de(f,o.originalMessage.id),onTouchmove:f=>g(o)&&ce(f),onTouchend:f=>g(o)&&ue(),onContextmenu:t[2]||(t[2]=L(()=>{},["prevent"]))},[P(ps,{message:o.originalMessage,currentUserId:((pt=e(H))==null?void 0:pt.id)||0,showTimestamp:!0},null,8,["message","currentUserId"])],44,Cn),g(o)&&e(y)===o.originalMessage.id?(i(),a("button",{key:0,onClick:L(f=>he(o.originalMessage.id),["stop"]),class:"flex-shrink-0 w-7 h-7 flex items-center justify-center text-red-500"},Bn,8,En)):c("",!0)],2)):((vt=o.originalMessage)==null?void 0:vt.message_type)==="video"?(i(),a("div",{key:5,class:D(["flex flex-row flex-nowrap items-center gap-0",o.type==="self"?"justify-end":"justify-start"])},[n("div",{class:"max-w-[80%] relative transition-transform duration-150",style:J([{"user-select":"none","-webkit-touch-callout":"none"},g(o)&&e(y)===o.originalMessage.id?{transform:"translateX(-36px)"}:{}]),onTouchstart:f=>g(o)&&de(f,o.originalMessage.id),onTouchmove:f=>g(o)&&ce(f),onTouchend:f=>g(o)&&ue(),onContextmenu:t[3]||(t[3]=L(()=>{},["prevent"]))},[P(Ss,{message:o.originalMessage,currentUserId:((mt=e(H))==null?void 0:mt.id)||0,showTimestamp:!0},null,8,["message","currentUserId"])],44,In),g(o)&&e(y)===o.originalMessage.id?(i(),a("button",{key:0,onClick:L(f=>he(o.originalMessage.id),["stop"]),class:"flex-shrink-0 w-7 h-7 flex items-center justify-center text-red-500"},Un,8,$n)):c("",!0)],2)):c("",!0)],64)}),128))],64))),128)),n("div",{class:"messages-end h-1 w-full mb-2 scroll-mb-[250px]",ref_key:"messageEndRef",ref:Bt},"​",512)])]))],34),e(be)?c("",!0):(i(),a("div",Nn,[e(p).isOtherUserTyping?(i(),a("div",jn,[n("span",Rn,k(e(u)("account.conversations.isTyping",{name:((W=e(v))==null?void 0:W.display_name)||((fe=e(v))==null?void 0:fe.username)})),1),P(Be,{color:"#ff5281"})])):c("",!0),e(p).isOtherUserPreparingContent?(i(),a("div",An,[n("span",Gn,k(e(u)("account.conversations.isPreparingContent",{name:((Q=e(v))==null?void 0:Q.display_name)||((Z=e(v))==null?void 0:Z.username)})),1),P(Be,{color:"#ff5281"})])):c("",!0),n("div",Ln,[n("div",Vn,[n("button",{onClick:jt,class:"flex items-center justify-center h-10 w-10 rounded-full hover:bg-gray-100",disabled:e(T).sending||e(V)||((je=e(d))==null?void 0:je.blocked)||((Re=e(d))==null?void 0:Re.has_blocked)},Fn,8,Hn),e(ke)?(i(),a("div",zn,[n("button",{onClick:t[5]||(t[5]=m=>Ct()),class:D(["flex h-9 w-9 items-center justify-center rounded-full border-0 bg-[rgba(231,64,124,0.08)] text-x-pink-1 disabled:opacity-50",{"eb
1-new-button eb-new-button--gift":e(se)}]),"aria-label":e(u)("account.conversations.gift.send"),title:e(u)("account.conversations.gift.send"),disabled:e(T).sending||e(V)||((Ae=e(d))==null?void 0:Ae.blocked)||((Ge=e(d))==null?void 0:Ge.has_blocked)},qn,10,Xn),e(se)?(i(),a("span",Kn,k(e(u)("account.conversations.newBadge")),1)):c("",!0)])):c("",!0),e(ke)?(i(),a("div",Wn,[n("button",{onClick:t[6]||(t[6]=m=>Et()),class:D(["flex h-9 w-9 items-center justify-center rounded-full border-0 bg-[rgba(247,200,56,0.16)] text-[#8A6410] disabled:opacity-50",{"eb-new-button eb-new-button--tip":e(N)}]),"aria-label":e(u)("account.conversations.tip.title"),title:e(u)("account.conversations.tip.title"),disabled:e(T).sending||e(V)||((Le=e(d))==null?void 0:Le.blocked)||((Ve=e(d))==null?void 0:Ve.has_blocked)},Jn,10,Qn),e(N)?(i(),a("span",eo,k(e(u)("account.conversations.newBadge")),1)):c("",!0)])):c("",!0),e(ke)?c("",!0):(i(),a("button",{key:2,onClick:Rt,class:"flex items-center justify-center h-10 w-10 rounded-full hover:bg-gray-100",disabled:e(T).sending||e(V)||((He=e(d))==null?void 0:He.blocked)||((Oe=e(d))==null?void 0:Oe.has_blocked)},no,8,to))]),!e(V)&&!((Fe=e(d))!=null&&Fe.blocked)&&!((ze=e(d))!=null&&ze.has_blocked)?ss((i(),a("input",{key:0,"onUpdate:modelValue":t[7]||(t[7]=m=>os(O)?O.value=m:null),class:"flex-auto h-10 text-black placeholder:text-black px-4 text-xs rounded-2xl border border-x-grey-1 shadow focus-visible:outline-none focus-visible:shadow-light-grey",placeholder:e(u)("account.enterYourMessage"),disabled:e(T).sending,onInput:t[8]||(t[8]=(...m)=>e($e)&&e($e)(...m)),onKeyup:is(Pe,["enter"])},null,40,oo)),[[ns,e(O)]]):(i(),a("input",{key:1,class:"flex-auto h-10 text-red-500 px-4 text-xs rounded-2xl border border-red-200 bg-red-50 cursor-not-allowed",value:e(u)("account.conversations.blocked"),disabled:""},null,8,io)),P(hs,{onClick:t[9]||(t[9]=m=>Pe()),class:"flex-none p-0 !min-h-0 h-10 w-10 flex items-center justify-center",disabled:e(T).sending||!e(O).trim()||e(V)||((Xe=e(d))==null?void 0:Xe.blocked)||((Ye=e(d))==null?void 0:Ye.has_blocked)},{default:rs(()=>[e(T).sending?(i(),a("div",ro)):(i(),a("svg",ao,uo))]),_:1},8,["disabled"])])]))]))]),(i(),E(as,{to:"body"},[e(oe)?(i(),E(vs,{key:0,"conversation-id":Number(e(_)),"initial-media-type":e(we),onClose:t[10]||(t[10]=m=>oe.value=!1)},null,8,["conversation-id","initial-media-type"])):c("",!0),e(I).isGiftPickerActive?(i(),E(ms,{key:1,"recipient-name":((qe=e(v))==null?void 0:qe.display_name)||((Ke=e(v))==null?void 0:Ke.username)||"",onClose:t[11]||(t[11]=m=>e(I).closeGiftPicker()),onSend:t[12]||(t[12]=m=>_e())},null,8,["recipient-name"])):c("",!0),e(I).isShortfallModalActive?(i(),E(gs,{key:2})):c("",!0),e($).isTipSheetActive?(i(),E(_s,{key:3,"recipient-name":((We=e(v))==null?void 0:We.display_name)||((Qe=e(v))==null?void 0:Qe.username)||"",onClose:t[13]||(t[13]=m=>e($).closeTipSheet()),onSend:t[14]||(t[14]=m=>Dt())},null,8,["recipient-name"])):c("",!0),e($).isShortfallModalActive?(i(),E(xs,{key:4})):c("",!0),P(Es),P(Ds),e(q)&&e(le)?(i(),E(ws,{key:5,show:e(q),"message-id":e(le),onClose:t[15]||(t[15]=m=>q.value=!1),onDeleted:Vt},null,8,["show","message-id"])):c("",!0),e(Te)&&e(d)?(i(),E(ys,{key:6,show:e(Te),"conversation-id":e(d).id,onClose:t[16]||(t[16]=m=>Te.value=!1),onDeleted:e(Xt)},null,8,["show","conversation-id","onDeleted"])):c("",!0),e(Se)&&e(d)&&e(v)?(i(),E(bs,{key:7,show:e(Se),"conversation-id":e(d).id,"user-name":e(v).display_name||e(v).username,"user-id":e(v).id,onClose:t[17]||(t[17]=m=>Se.value=!1),onReported:e(Ne)},null,8,["show","conversation-id","user-name","user-id","onReported"])):c("",!0),e(Ce)&&e(v)?(i(),E(ks,{key:8,"user-id":e(v).id,"user-name":e(v).display_name||e(v).username,onClose:t[18]||(t[18]=m=>Ce.value=!1),onBlocked:t[19]||(t[19]=m=>{Ce.value=!1,e(Ne)(!0)})},null,8,["user-id","user-name"])):c("",!0)]))])}}}),Ao=$s(po,[["__scopeId","data-v-9a593936"]]);export{Ao 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.