PageSourceSearch

https://www.ahrcm-srmo.org/build/assets/EventCard.351e8f48.js

js ahrcm-srmo.org collected 2026-10-06 18:24:40 UTC 2,346 bytes, 1 lines download raw bytes

1import{d as h,e as o,a as t,h as i,g as d,b as c,w as u,T as b,f,t as n,o as a,L as v,p as g,I as y}from"./app.1c75f29f.js";const k={class:"bg-white rounded-lg px-7 pt-6 pb-11 overflow-hidden flex flex-col"},w={class:"flex justify-end text-sm"},p={key:0,class:"relative"},C=t("i",{class:"icon-arrow---down-2 text-xs"},null,-1),$={key:0,class:"absolute bg-white p-1 text-14-regular border border-gray-10 w-36 rounded-md top-8 right-0"},E={class:"text-sm text-uppercase mb-1"},_={class:"mb-7"},B={class:"text-42 font-bold text-gray-100"},L={class:"text-16-regular font-regular"},N={class:"flex-grow flex flex-col justify-end"},V={class:"text-gray-50 font-medium mb-2"},j={class:"font-medium"},T={key:0},W=["href"],A={__name:"EventCard",props:{event:{type:Object,required:!0},fromWebsite:{type:Boolean,required:!1,default:!1}},setup(e){const r=h(!1),m=l=>{y.Inertia.put(`/admin/events/${l}/toggle/publish`)};return(l,s)=>(a(),o("div",k,[t("div",w,[e.fromWebsite?f("",!0):(a(),o("div",p,[t("div",{onClick:s[0]||(s[0]=x=>r.value=!i(r)),class:"border border-gray-30 rounded-3 bg-gray-10 text-12-regular text-gray-80 flex items-center px-2 py-1 cursor-pointer news-actions"},[d(" Actions "),C]),c(b,{name:"fade"},{default:u(()=>[i(r)?(a(),o("ul",$,[c(i(v),{href:`/admin/events/${e.event.slug}/edit`,onClick:s[1]||(s[1]=g(()=>{},["stop"])),class:"px-2 py-1.5 hover:bg-gray-10 rounded-md transition-all duration-200 cursor-pointer block"},{default:u(()=>[d(" Edit ")]),_:1},8,["href"]),t("li",{onClick:s[2]||(s[2]=g(x=>m(e.event.slug),["stop"])),class:"px-2 py-1.5 hover:bg-gray-10 rounded-md transition-all duration-200 cursor-pointer"},n(l.route().current()=="admin.events.index"?"Draft":"Restore"),1)])):f("",!0)]),_:1})]))]),t("div",null,[t("div",E,n(e.event.occurrence_month),1),t("p",_,[t("span",B,n(e.event.occurrence_days),1),t("span",L," ("+n(e.event.type)+")",1)])]),c(i(v),{href:e.fromWebsite?`/event/${e.event.slug}`:`/admin/events/${e.event.slug}`,class:"text-24-bold text-gray-100 mb-10"},{default:u(()=>[d(n(e.event.title),1)]),_:1},8,["href"]),t("div",N,[t("div",V,n(e.event.location?"Location":"Link"),1),t("div",j,[e.event.location?(a(),o("span",T,n(e.event.location),1)):e.event.link?(a(),o("a",{key:1,href:e.event.link,target:"_blank",class:"text-indigo-60 underline"},"Event online link",8,W)):f("",!0)])])]))}};export{A 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.