1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5825cd330461ef1ddd98548f447ed9b5dc315e0e`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ca90397f-2297-4ede-a621-5c7fab4b5bc1`,e._sentryDebugIdIdentifier=`sentry-dbid-ca90397f-2297-4ede-a621-5c7fab4b5bc1`)}catch{}})();import{D as e,Kt as t,On as n,Pt as r,g as i,k as a,mt as o,qt as s,v as c,w as l,y as u}from"./BEzPH0Ic.js";import{n as d}from"./CyePFwWg.js";import{j as f}from"./-zinqXqL.js";import{n as p,t as m}from"./CDJnHfW8.js";import{t as h}from"./GlpgFB25.js";import{t as g}from"./DNoyYuph.js";import{g as _}from"#entry";import{t as v}from"./EPgQoAus.js";import{t as y}from"./SW7yGFRb.js";var b=Object.assign(a({__name:`EventPreviewCard`,props:{event:{},filter:{},offset:{default:()=>void 0},showImage:{type:Boolean,default:!0},orientation:{default:`auto`},size:{default:`md`}},async setup(a){let b,x,{fetchEvents:S}=g(),C=r(),w=`event-preview-card-${typeof a.event==`number`?a.event:a.event?.evid??C}`,T=[`auth`,`evid`,`magnitude`,`place`,{static_map:[`description`,`id`]},`timestamp`,`lat`,`lon`],E={magnitude:{_gte:3},etype:{_eq:`eq`},is_notable:{_eq:!0}};a.event&&typeof a.event!=`object`?E={evid:{_eq:a.event}}:a.filter&&(E=a.filter);let{data:D,execute:O}=([b,x]=t(()=>d(w,()=>S(T,E,1,void 0,void 0,a.offset).then(e=>e[0]),{lazy:!0,immediate:!1})),b=await b,x(),b),k=i(()=>a.event&&typeof a.event==`object`?a.event:D.value);return k.value||([b,x]=t(()=>O()),await b,x()),(t,r)=>{let i=p,d=m,g=y,b=v;return n(k)?(o(),c(b,{key:0,title:`${(`useEventsTitle`in t?t.useEventsTitle:n(_))(n(k))}`,link:n(k)?{to:{name:`event-evid`,params:{evid:n(k).evid}}}:void 0,image:a.showImage&&n(k).static_map?n(k).static_map:void 0,description:`at ${(`useFormat`in t?t.useFormat:n(h))(n(k).timestamp,`Time`)}`,orientation:a.orientation,size:a.size},l({_:2},[a.showImage&&!n(k).static_map&&n(k).lat&&n(k).lon?{name:`image`,fn:s(()=>[e(g,{"separate-instance":!0,"hide-all-controls":!0,interactive:!1,basemap:(`MapBasemaps`in t?t.MapBasemaps:n(f)).Light,zoom:8,center:[n(k).lon,n(k).lat],config:{colorProp:`relative`,colorInterpolator:`interpolateSolidOrange`}},{failoverLayers:s(()=>[n(k)?(o(),c(d,{key:0,events:[n(k)],evid:n(k).evid},null,8,[`events`,`evid`])):u(``,!0)]),default:s(()=>[n(k)?(o(),c(i,{key:0,events:[n(k)],evid:n(k).evid},null,8,[`events`,`evid`])):u(``,!0)]),_:1},8,[`basemap`,`center`])]),key:`0`}:void 0]),1032,[`title`,`link`,`image`,`description`,`orientation`,`size`])):u(``,!0)}}}),{__name:`EventPreviewCard`});export{b as t};
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.