1import{_ as S}from"./D3Bpnrpt.js";import{d as k,o as d,c as B,a0 as E,h as l,g as m,f as T,i as o,s as _,t as r,j as V,x as C,b as s,l as p,Z as N,a1 as i}from"./K8mPX5Ll.js";import{_ as b}from"./a4e8krdF.js";import{u as D}from"./CEdt0fof.js";import"./CJn-Rygv.js";import"./D-CeX8g6.js";import"./BNUgR9Ny.js";const I={key:0},M={class:"tide-event-search-result__location rpl-card__icon-text"},j=k({__name:"TideEventSearchResult",props:{result:{},displayImage:{type:Boolean,default:!0},displayMeta:{type:Boolean,default:!0}},setup(e){const t=e,{title:v,url:f,summary:y,image:g}=D(t.result),u=p(()=>N({from:i(t.result,"field_event_date_start_value",!0),to:i(t.result,"field_event_date_end_value",!0)})),c=p(()=>{const a=i(t.result,"field_event_details_event_locality",!0);return Array.isArray(a)?a[0]:a});return(a,n)=>{const h=S,x=C,R=b;return d(),B(R,{title:s(v),url:s(f),image:e.displayImage?s(g):void 0,class:"tide-event-search-result","data-component":"event-search-card"},E({default:l(()=>[o("p",null,r(s(y)),1)]),_:2},[e.displayMeta?{name:"meta",fn:l(()=>[m(h,{variant:"neutral",label:"Event"}),u.value?(d(),T("span",I,[n[0]||(n[0]=o("span",{class:"rpl-u-visually-hidden"},"Date: ",-1)),_(" "+r(u.value),1)])):V("",!0)]),key:"0"}:void 0,e.displayMeta&&c.value?{name:"lower",fn:l(()=>[o("span",M,[m(x,{name:"icon-pin",colour:"default"}),n[1]||(n[1]=o("span",{class:"rpl-u-visually-hidden"},"Location: ",-1)),_(" "+r(c.value),1)])]),key:"1"}:void 0]),1032,["title","url","image"])}}}),q=Object.assign(j,{__name:"TideEventSearchResult"});export{q 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.