1import{R as o,bk as m,j as e,F as c,s as u,ae as p,a as r,ao as n,E as v,d as y,q as V}from"./index-gMe9H88Y.js";import{L as w}from"./Layout-DlAsL32I.js";import{F as f}from"./FormatMarkdown-6iretRQ7.js";import{J as l}from"./JQueryUIButton-_V0TZG2a.js";import"./Markdown-C9rHC8pJ.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};s.__faroBundleId_vocadb_frontend="1774128384054d7495f5124"}catch{}})();const B=({model:s})=>{const a=u(),{t:i,ready:h}=p(["ViewRes","ViewRes.Event"]),E=i("ViewRes:Shared.ReleaseEvents");return e(w,{pageTitle:E,ready:h,title:E,toolbar:r(c,{children:[r("ul",{className:"nav nav-pills",children:[e("li",{children:e(n,{to:"/Event",children:i("ViewRes.Event:EventsBySeries.ViewList")})}),e("li",{children:e(n,{to:"/Event/EventsBySeries",children:i("ViewRes.Event:EventsBySeries.ViewBySeries")})}),e("li",{className:"active",children:e(n,{to:"/Event/EventsByVenue",children:i("ViewRes.Event:EventsBySeries.ViewByVenue")})}),e("li",{children:e(n,{to:"/Event/EventsByDate",children:i("ViewRes.Event:EventsBySeries.ViewByDate")})})]}),a.canManageDatabase&&r(c,{children:[e(l,{as:n,to:"/Event/Edit",icons:{primary:"ui-icon-plus"},children:i("ViewRes.Event:EventsBySeries.CreateEvent")})," ",e(l,{as:n,to:"/Event/EditSeries",icons:{primary:"ui-icon-plus"},children:i("ViewRes.Event:EventsBySeries.CreateSeries")})," ",e(l,{as:n,to:"/Venue/Edit",icons:{primary:"ui-icon-plus"},children:i("ViewRes.Event:EventsBySeries.CreateVenue")})]})]}),children:s.map(t=>r(o.Fragment,{children:[e("div",{className:"media withMargin",children:r("div",{className:"media-body",children:[e("h3",{className:"media-heading",children:t.name?e(n,{to:v.details(y.Venue,t.id),children:t.name}):i("ViewRes:Shared.Unsorted")}),t.description&&e("p",{children:e(f,{text:t.description})})]})}),e("ul",{children:t.events.map(d=>e("li",{children:e(n,{to:v.details(y.ReleaseEvent,d.id,d.urlSlug),children:d.name})},d.id))}),a.canManageDatabase&&e(n,{to:`/Event/Edit?${V.stringify({venueId:t.id!==0?t.id:void 0})}`,className:"textLink addLink",children:i("ViewRes.Event:EventsBySeries.CreateEvent")})]},t.id))})},M=()=>{const[s,a]=o.useState();return o.useEffect(()=>{m.getByVenue().then(i=>a(i))},[]),s?e(B,{model:s}):e(c,{})};export{M 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.