PageSourceSearch

https://mobilize.berlin/assets/EventActivityItem-27363acd.js

js mobilize.berlin collected 2026-10-06 09:25:53 UTC 2,510 bytes, 2 lines download raw bytes

1import{u as N,a as D}from"./activity-d1f877cd.js";import{d as j,e as r,fP as C,fQ as _,fR as t,h as c,o as u,i as p,k as v,j as l,w as i,m as k,l as m,a4 as P,s as V,t as s,ag as I,x as S}from"./main-92617d09.js";import{a as g}from"./datetime-b6122dac.js";import{_ as w}from"./PopoverActorCard.vue_vue_type_script_setup_true_lang-5fb30ef0.js";import"./ActorCard-c85302d1.js";import"./Email-87bd15b8.js";const Y={class:"activity-item"},O={class:"mt-1 ml-2 prose dark:prose-invert prose-p:m-0"},R={key:1},B={class:"activity-date"},M=j({__name:"EventActivityItem",props:{activity:{}},setup(d){const n=d,E=N(),y=D(),e=r(()=>E(n.activity)),o=r(()=>y(n.activity)),f=r(()=>{switch(n.activity.subject){case t.EVENT_CREATED:return e.value?"You created the event {event}.":"The event {event} was created by {profile}.";case t.EVENT_UPDATED:return e.value?"You updated the event {event}.":"The event {event} was updated by {profile}.";case t.EVENT_DELETED:return e.value?"You deleted the event {event}.":"The event {event} was deleted by {profile}.";case _.COMMENT_POSTED:return o.value.comment_reply_to?e.value?"You replied to a comment on the event {event}.":"{profile} replied to a comment on the event {event}.":e.value?"You posted a comment on the event {event}.":"{profile} posted a comment on the event {event}.";case C.EVENT_NEW_PARTICIPATION:return e.value?"You joined the event {event}.":n.activity.author.preferredUsername==="anonymous"?"An anonymous profile joined the event {event}.":"{profile} joined the the event {event}.";default:return}}),h=r(()=>{switch(n.activity.subject){case t.EVENT_CREATED:case _.COMMENT_POSTED:return"success";case t.EVENT_UPDATED:return"grey";case t.EVENT_DELETED:return"danger";default:return}});return(a,U)=>{const T=c("o-icon"),A=c("router-link"),b=c("i18n-t");return u(),p("div",Y,[v(T,{icon:"calendar",variant:h.value,"custom-size":"24"},null,8,["variant"]),l("div",O,[v(b,{keypath:f.value,tag:"p"},{event:i(()=>[a.activity.object?(u(),k(A,{key:0,to:{name:m(P).EVENT,params:{uuid:o.value.event_uuid}}},{default:i(()=>[V(s(o.value.event_title),1)]),_:1},8,["to"])):(u(),p("b",R,s(o.value.event_title),1))]),profile:i(()=>[v(w,{actor:a.activity.author,inline:!0},{default:i(()=>[l("b",null,s(a.$t("{'@'}{username}",{username:m(I)(a.activity.author)})),1)]),_:1},8,["actor"])]),_:1},8,["keypath"]),l("small",B,s(m(g)(a.activity.insertedAt)),1)])])}}});const Q=S(M,[["__scopeId","data-v-48b1a37c"]]);export{Q as default};
2//# sourceMappingURL=EventActivityItem-27363acd.js.map

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.