PageSourceSearch

https://app.truuly.dk/build/assets/ChatsList-c22a5e94.js

js truuly.dk collected 2026-10-09 04:50:41 UTC 3,060 bytes, 1 lines download raw bytes

1import{c as i,e as c,F as d,d as e,t as r,b as a,i as u,w as m,n as l,f as o,k as h,u as f,L as v}from"./app-3160ebaf.js";const x={class:"relative"},g=["src"],w={key:0,class:"absolute left-5 top-0 w-12 h-12 flex items-center justify-center"},p=e("div",{class:"bg-black bg-opacity-40 rounded-full p-1.5"},[e("svg",{class:"h-5 w-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z","clip-rule":"evenodd"})])],-1),_=[p],k={class:"flex flex-row"},y={class:"flex-1"},b={class:"text-sm"},C={class:"text-ellipsis overflow-hidden whitespace-nowrap"},B={key:1,class:"flex flex-col items-center text-center space-y-4 py-8"},j=e("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M40 73.3333C58.4095 73.3333 73.3333 58.4095 73.3333 40C73.3333 21.5905 58.4095 6.66663 40 6.66663C21.5905 6.66663 6.66667 21.5905 6.66667 40C6.66667 58.4095 21.5905 73.3333 40 73.3333Z",stroke:"#041E41","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M30.3 29.9999C31.0837 27.7722 32.6305 25.8936 34.6665 24.6971C36.7025 23.5005 39.0963 23.0631 41.4239 23.4623C43.7515 23.8616 45.8627 25.0717 47.3836 26.8784C48.9045 28.6851 49.7369 30.9717 49.7333 33.3333C49.7333 39.9999 39.7333 43.3333 39.7333 43.3333",stroke:"#041E41","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M40 56.6666H40.0333",stroke:"#041E41","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),E={__name:"ChatsList",props:{chats:Object,emptyText:String,activeChat:String,isPending:Boolean,hasActiveSubscription:{type:Boolean,default:!0}},setup(s){return(n,S)=>s.chats&&s.chats.length>0?(a(!0),i(d,{key:0},c(s.chats,t=>(a(),u(f(v),{key:t.user.uuid,href:n.route("messenger.index",{chatUuid:t.user.uuid,is_pending:s.isPending?1:void 0}),class:l(["relative flex flex-row first:mt-0 last:mb-0 mx-2 py-2 my-2 focus:bg-primary focus:text-white focus-visible:outline-none group cursor-pointer",{"bg-primary text-white":s.activeChat===t.user.uuid}])},{default:m(()=>[e("div",x,[e("img",{class:l(["object-cover w-12 h-12 rounded-full ml-5 mr-3",{"blur-sm":!s.hasActiveSubscription}]),src:t.user.user_avatar_url??"/images/avatar.png",alt:"Default avatar"},null,10,g),s.hasActiveSubscription?o("",!0):(a(),i("div",w,_))]),e("div",{class:l(["flex-1 flex flex-col w-full mr-5 line-clamp-1",{"font-extrabold":!t.last_message.sent_by_me&&t.last_message.seen===0}])},[e("div",k,[e("p",y,r(t.user.name),1),e("p",b,r(t.last_message.created_at_text),1)]),e("p",C,[t.last_message.sent_by_me?(a(),i("span",{key:0,class:l(["group-active:text-red-800",{"text-red-500":s.activeChat!==t.user.uuid,"text-red-800":s.activeChat===t.user.uuid}])},"Du: ",2)):o("",!0),h(" "+r(t.last_message.body),1)])],2)]),_:2},1032,["href","class"]))),128)):(a(),i("div",B,[j,e("p",null,r(s.emptyText),1)]))}};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.