PageSourceSearch

https://www.gurupsychics.com/build/assets/Transcript-33bb8cb6.js

js gurupsychics.com collected 2026-10-02 16:10:51 UTC 2,881 bytes, 1 lines download raw bytes

1import{d as C}from"./preload-helper-585d359e.js";import{f as $,u as B,a as u,N as M,o as x}from"./app-87ee2351.js";import{_ as S}from"./PageHeader.vue_vue_type_script_setup_true_lang-dc047684.js";import{M as A}from"./Message-0a9213ad.js";import{_ as D}from"./Button.vue_vue_type_script_setup_true_lang-2a54d156.js";import{S as L}from"./SimplePageWrapper-94855f5d.js";import{_ as R}from"./BackSection.vue_vue_type_script_setup_true_lang-25619975.js";import{h as N,r as f,C as U,k as o,s as r,G as y,F as w,j as i,l as s,J as V,K as j,I as z,u as l,p as d,q as v}from"./runtime-core.esm-bundler-42b5c9ff.js";import"./vue-easy-lightbox.esm.min-3affc299.js";import"./ClientDashboard-543086cc.js";const F={class:"message-actions flex flex-wrap space-x-2 px-5",style:{"justify-content":"end"}},I={class:"messages overflow-y-auto px-8",style:{"min-height":"85vh","box-shadow":"rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px","border-radius":"20px","margin-top":"20px",padding:"30px"}},T={key:0,class:"block capitalize text-sm italic text-gray-400"},E={key:1,class:"block capitalize text-sm italic text-gray-400"},Z=N({__name:"Transcript",setup(P){const _=$(),h=B(),n=f(),c=f("pdf"),m=f([]),g=async()=>{try{const{data:e}=await u.get(`/rooms/${_.params.id}?with=client;reader`);n.value=e.data}catch{}},b=async()=>{try{const{data:e}=await u.get(`/messages?room_id=${_.params.id}&with=user;reactions&orderBy=id&sortedBy=desc&limit=6000`);m.value=e.data.data.sort(M)}catch{}},k=async()=>{if(n.value)try{const{data:e}=await u.get(`/rooms/${n.value.id}/download?type=${c.value}`,{responseType:"blob"}),a=window.URL.createObjectURL(new Blob([e]));let t=document.createElement("a");t.href=a,t.setAttribute("download",`transcripts-${n.value.id}.pdf`),document.body.appendChild(t),t.click()}catch(e){console.error(e)}};return U(()=>{g(),b()}),(e,a)=>(i(),o(w,null,[r(S,{class:"intro-y"},{default:y(()=>[...a[1]||(a[1]=[s("h1",{class:"text-2xl lg:text-5xl font-bold drop-shadow-md mb-4"},"Transcript",-1)])]),_:1}),r(L,null,{default:y(()=>[r(R,{to:{name:"Client.Accounts.ChatHistories"}}),s("div",null,[s("div",F,[V(s("select",{"onUpdate:modelValue":a[0]||(a[0]=t=>c.value=t),class:"form-control w-24"},[...a[2]||(a[2]=[s("option",{value:"pdf"},"PDF",-1)])],512),[[C,c.value]]),r(D,{onClick:k,title:"Download",small:"",design:"blue"})]),s("div",I,[(i(!0),o(w,null,j(m.value,(t,p)=>(i(),o("div",{key:t.id,class:z(["mb-2",t.user_id===l(h).userId?"me text-right":"other"])},[p===0?(i(),o("span",T,d(t.user.username)+", "+d(l(x)(t.created_at).format(" hh:mm A")),1)):v("",!0),p>0&&m.value[p-1].user_id!==t.user_id?(i(),o("span",E,d(t.user.username)+" "+d(l(
1x)(t.created_at).format(" hh:mm A")),1)):v("",!0),r(A,{"is-me":t.user_id===l(h).userId,message:t,"show-reactions":!1,"show-time":!0},null,8,["is-me","message"])],2))),128))])])]),_:1})],64))}});export{Z 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.