PageSourceSearch

https://elzewhere.com/assets/Compass-CGiS4Vwd.js

js elzewhere.com collected 2026-10-09 05:15:30 UTC 38,157 bytes, 1 lines download raw bytes

1import{r as n,j as e}from"./radix-BKGOUGPy.js";import{d as be}from"./geolocation-89ElFUOl.js";import{c as h,u as Ke,j as Oe,a as He,i as Be,X as Ge,d as Ye,p as z}from"./index-CQ3mh-re.js";import{u as j}from"./useQuery-DT7BwPXL.js";import{u as Je}from"./useDebounce-CXEjejbI.js";import{L as Ze,M as We}from"./Layout-ClRIc5KF.js";import{H as Qe}from"./HeaderStats-D6qX1T6T.js";import{e as H,a as te,g as Ne}from"./schema-CQW2MjS5.js";import{M as Xe,S as et,L as se,a as A,P as tt}from"./mapbox-DYU4mihP.js";/* empty css                  */import{a as B}from"./sun-B6ctUv83.js";import{B as ze}from"./building-2-DNr2_b3r.js";import{T as st}from"./tram-front-BQoc3gv6.js";import{P as ke}from"./palette-6TnGdevs.js";import{M as at}from"./mailbox-gYigAnZE.js";import{F as rt}from"./factory-0hlPsWjR.js";import{C as lt}from"./construction-BzXCVG5f.js";import{L as ie}from"./landmark-Dygv7UZV.js";import{H as Me}from"./house-0qhPdrJG.js";import{C as Le}from"./clock-x3AU66cC.js";import{E as re}from"./eye-BCh0BLUG.js";import{M as G}from"./map-pin-CO2c6oL5.js";import{P as it}from"./plus-4KLkexbq.js";import{C as fe}from"./chevron-down-XIFEHD3n.js";import{C as ye}from"./chevron-up-C2P4PJt3.js";import{T as nt}from"./triangle-alert-BOBIqv1b.js";import{U as ot}from"./users-CXiit5O-.js";import{S as ct}from"./shield-B5n29oQq.js";import{C as dt}from"./circle-alert-cmcv07g6.js";import"./camera-DCuiu_ly.js";import"./user-B0xt_bjv.js";import"./check-CyzPzt_C.js";import"./types-DqHNHyJ7.js";const mt=[["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3",key:"3apit1"}],["path",{d:"M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z",key:"rhpgnw"}],["path",{d:"M 22 16 L 2 16",key:"14lkq7"}],["path",{d:"M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z",key:"104b3k"}],["path",{d:"M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3",key:"14fczp"}]],ut=h("binoculars",mt);const xt=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],p=h("building",xt);const pt=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],ht=h("car",pt);const gt=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],bt=h("door-open",gt);const ft=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],yt=h("droplets",ft);const vt=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],jt=h("handshake",vt);const wt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Nt=h("info",wt);const zt=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],le=h("layers",zt);const kt=[["path",{d:"M5 12h14",key:"1ays0h"}]],Mt=h("minus",kt);const Lt=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],$e=h("mountain",Lt);const $t=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]],Ct=h("signal",$t),ae=768;function St(){const[d,g]=n.useState(void 0);return n.useEffect(()=>{const c=window.matchMedia(`(max-width: ${ae-1}px)`),u=()=>{g(window.innerWidth<ae)};return c.addEventListener("change",u),g(window.innerWidth<ae),()=>c.removeEventListener("change",u)},[]),!!d}const It="pk.eyJ1IjoidHllYXJnYW4iLCJhIjoiY21qcDNvdzJjMmpoajNkcHVrNDhwajVtcyJ9.YjQj24khDIYJDGDAgSt0kA",Tt=[{id:"discoveries",label:"Discoveries",icon:le},{id:"venues",label:"Venues",icon:p},{id:"mysteries",label:"Mysteries",icon:B}],_t=[{id:"all",label:"All",color:"bg-elz-primary"}
1,{id:"infrastructure_object",label:"Structures",color:"bg-amber-600",icon:ze},{id:"mobile_asset",label:"Vehicles",color:"bg-amber-700",icon:st},{id:"surface_art",label:"Murals & street art",color:"bg-emerald-600",icon:ke},{id:"street_object",label:"Street discoveries",color:"bg-cyan-600",icon:at},{id:"industrial_relic",label:"Industrial Relic",color:"bg-amber-700",icon:rt},{id:"rail_infrastructure",label:"Railways",color:"bg-yellow-600",icon:lt},{id:"public_art",label:"Public Art",color:"bg-purple-600",icon:ie},{id:"natural_feature",label:"Nature",color:"bg-green-600",icon:$e},{id:"indoor_object",label:"Indoor",color:"bg-indigo-600",icon:Me},{id:"event",label:"Events",color:"bg-pink-600",icon:Le},{id:"area",label:"Areas",color:"bg-sky-600",icon:We}],Ft=[{id:"all",label:"All",icon:p},{id:"museum",label:"Museums",icon:ie},{id:"gallery",label:"Galleries",icon:ke},{id:"historic_site",label:"Historic",icon:ze},{id:"private_collection",label:"Private",icon:re},{id:"other",label:"Other",icon:G}],_=(d,g)=>d!=null&&g!=null,ve=(d,g,c,u)=>{const w=Y=>Y*Math.PI/180,P=w(c-d),b=w(u-g),R=Math.sin(P/2)*Math.sin(P/2)+Math.cos(w(d))*Math.cos(w(c))*Math.sin(b/2)*Math.sin(b/2);return 6371e3*(2*Math.atan2(Math.sqrt(R),Math.sqrt(1-R)))},je=d=>{const g=`${d.exhibitCount} exhibit${d.exhibitCount===1?"":"s"}`;return`${Ne(d.venueType)} destination · ${g}`},we=d=>d?`elz:compass:clustering:${d}`:"elz:compass:clustering:guest";function gs(){const{user:d}=Ke(),{isDark:g}=Oe(),c=St(),[,u]=He(),w=n.useRef(null),[y,P]=n.useState(null),[b,R]=n.useState(null),[k,Y]=n.useState(!1),[V,ne]=n.useState(!1),[N,Ce]=n.useState(()=>{const t=new URLSearchParams(window.location.search).get("mode");return t==="venues"||t==="mysteries"?t:"discoveries"}),[v,Se]=n.useState("all"),[S,Ie]=n.useState("all"),[l,F]=n.useState({longitude:-98.5795,latitude:39.8283,zoom:4}),[x,E]=n.useState(null),[f,J]=n.useState(!0);l.zoom>=15;const i=N==="venues",o=N==="discoveries",oe=N!=="mysteries"&&l.zoom>=(i?5:8),Te=c?l.zoom>=(i?12:14):l.zoom>=(i?10:13),[ce,_e]=n.useState(!1);n.useEffect(()=>{if(typeof window>"u")return;const t=window.localStorage.getItem(we(d?.id));if(t==="off"){J(!1);return}t==="on"&&J(!0)},[d?.id]),n.useEffect(()=>{typeof window>"u"||window.localStorage.setItem(we(d?.id),f?"on":"off")},[f,d?.id]),n.useEffect(()=>{if(!Be()&&!navigator.geolocation)return;const t=be.watchPosition(r=>{const a={lat:r.coords.latitude,lng:r.coords.longitude};P(s=>s?ve(s.lat,s.lng,a.lat,a.lng)>=12?a:s:a),R(s=>s?ve(s.lat,s.lng,a.lat,a.lng)>=75?a:s:a),ce||(F({longitude:a.lng,latitude:a.lat,zoom:12}),_e(!0))},()=>{console.log("Location access denied")},{enableHighAccuracy:!0,maximumAge:5e3,timeout:15e3});return()=>be.clearWatch(t)},[ce]);const{data:Fe}=j({queryKey:["/api/records/drafts/me"],enabled:!!d}),I=Je(l,300),M=n.useMemo(()=>{const t=Math.pow(2,I.zoom),r=180/t,a=360/t;return{minLat:I.latitude-r,maxLat:I.latitude+r,minLng:I.longitude-a,maxLng:I.longitude+a}},[I]),Z=`minLat=${M.minLat}&maxLat=${M.maxLat}&minLng=${M.minLng}&maxLng=${M.maxLng}`,{data:L}=j({queryKey:["/api/subjects/map",M],queryFn:async()=>{const t=await z(`/api/subjects/map?limit=500&${Z}`);if(!t.ok)throw new Error("Failed to fetch map subjects");return t.json()},staleTime:3e4}),{data:q}=j({queryKey:["/api/subjects/map",{mystery:!0},M],queryFn:async()=>{const t=await z(`/api/subjects/map?mystery=true&${Z}`);if(!t.ok)throw new Error("Failed to fetch mystery subjects");return t.json()},staleTime:3e4}),{data:$}=j({queryKey:["/api/records/unattached/map",M],queryFn:async()=>{const t=await z(`/api/records/unattached/map?limit=500&${Z}`);if(!t.ok)throw new Error("Failed to fetch unattached records");return t.json()},staleTime:3e4}),{data:de}=j({queryKey:["/api/records",{nearby:b?`${b.lat.toFixed(4)},${b.lng.toFixed(4)}`:null}],queryFn:async()=>{if(!b)return[];const t=await z(`/api/records?nearby=${b.lat},${b.lng}`);if(!t.ok)throw new Error("Failed to fetch nearby records");return t.json()},enabled:!!b,staleTime:3e4}),{data:Et}=j({queryKey:["/api/records/coverage",l],queryFn:async()=>{const t=Math.pow(2,l.zoom),r=180/t,a=360/t,s=Math.max(.1,r/10),m={minLat:l.latitude-r,maxLat:l.latitude+r,minLng:l.longitude-a,maxLng:l.longitude+a},T=await z(`/api/records/coverage?minLat=${m.minLat}&maxLat=${m.maxLat}&minLng=${m.minLng}&maxLng=${m.maxLng}&cellSize=${s}`);if(!T.ok)throw new Error("Failed to fetch coverage");return T.json()},enabled:!1,staleTime:3e4}),{data:Ee}=j({queryKey:["/api/utility-pins",l],queryFn:async()=>{const t=Math.pow(2,l.zoom),r=180/t,a=360/t,s={minLat:l.latitude-r,maxLat:l.latitude+r,minLng:l.longitude-a,maxLng:l.longitude+a},m=await z(`/api/utility-pins?minLat=${s.minLat}&maxLat=${s.maxLat}&minLng=${s.minLng}&maxLng=${s.maxLng}`);if(!m.ok)throw new Error("Failed to fetch utility pins");return m.json()},staleTime:6e4}),{data:De}=j({queryKey:["/api/outposts",l],queryFn:async()=>{const t=Math.pow(2,l.zoom),r=180/t,a=360/t,s={minLat:l.latitude-r,maxLat:l.latitude+r,minLng:l.longitude-a,maxLng:l.longitude+a},m=await z(`/api/outposts?minLat=${s.minLat}&maxLat=${s.maxLat}&minLng=${s.minLng}&maxLng=${s.maxLng}`);if(!m.ok)throw new Error("Failed to fetch outposts");return m.json()},staleTime:6e4}),{data:U}=j({queryKey:["/api/venues",l],queryFn:async()=>{const t=Math.pow(2,l.zoom),r=180/t,a=360/t,s={minLat:l.latitude-r,maxLat:l.latitude+r,minLng:l.longitude-a,maxLng:l.longitude+a},m=await z(`/api/venues?minLat=${s.minLat}&maxLat=${s.maxLat}&minLng=${s.minLng}&maxLng=${s.maxLng}`);if(!m.ok)throw new Error("Failed to fetch venues");return m.json()},staleTime:6e4}),C=n.useMemo(()=>
1{if(!U||!oe)return[];const r=[...S==="all"?U:U.filter(a=>a.venueType===S)].sort((a,s)=>s.exhibitCount!==a.exhibitCount?s.exhibitCount-a.exhibitCount:new Date(s.createdAt).getTime()-new Date(a.createdAt).getTime());return i?l.zoom>=7?r:r.filter(a=>a.exhibitCount>0).slice(0,150):l.zoom>=11?r:r.filter(a=>a.exhibitCount>0)},[U,oe,l.zoom,S,i]),me=n.useMemo(()=>L?o?v!=="all"?L.filter(t=>(t.parentDptKey||H(t.dptKey||"unknown"))===v&&_(t.latitude,t.longitude)):L.filter(t=>_(t.latitude,t.longitude)&&t.status!=="MYSTERY"&&t.status!=="MERGED"):[]:[],[L,o,v]),ue=n.useMemo(()=>$?o?v!=="all"?$.filter(t=>(t.parentDptKey||H(t.dptKey||"unknown"))===v&&_(t.latitude,t.longitude)):$.filter(t=>_(t.latitude,t.longitude)):[]:[],[$,o,v]),K=n.useMemo(()=>new Set(C.map(t=>t.id)),[C]),W=n.useMemo(()=>!L||!i||l.zoom<13?[]:L.filter(t=>t.venueId!=null&&K.has(t.venueId)&&_(t.latitude,t.longitude)&&t.status!=="MYSTERY"&&t.status!=="MERGED"),[L,i,l.zoom,K]),Q=n.useMemo(()=>!$||!i||l.zoom<14?[]:$.filter(t=>t.venueId!=null&&K.has(t.venueId)&&_(t.latitude,t.longitude)),[$,i,l.zoom,K]),Ae=n.useMemo(()=>{const t=[],r=o?me:W,a=o?ue:Q;return r.forEach(s=>{(s.parentDptKey||H(s.dptKey||"unknown"))!=="unknown"&&t.push({type:"Feature",geometry:{type:"Point",coordinates:[s.longitude,s.latitude]},properties:{type:"subject",id:s.publicId,title:s.identityPrimary||s.oneLineSummary||te(s.parentDptKey)||"Unknown",parentDptKey:s.parentDptKey,imageUrl:s.primaryImageUrl||void 0,navigateTo:s.latestRecordPublicId?`/record/${s.latestRecordPublicId}`:`/subject/${s.publicId}`}})}),a.forEach(s=>{const m=s.parentDptKey||H(s.dptKey||"unknown"),T=s.identityPrimary||s.title||te(m)||"Unknown";t.push({type:"Feature",geometry:{type:"Point",coordinates:[s.longitude,s.latitude]},properties:{type:"record",id:s.publicId,title:T,parentDptKey:m,imageUrl:s.imageUrl||s.primaryImageUrl||void 0,navigateTo:`/record/${s.publicId}`}})}),{type:"FeatureCollection",features:t}},[o,me,ue,W,Q]),xe=Fe?.length||0,X=q?.length||0,D=de?.length||0,O=C.length,pe=C.filter(t=>t.exhibitCount>0).length,he=C.reduce((t,r)=>t+r.exhibitCount,0),Pe=C.slice(0,4),ee=W.length+Q.length,Re=i?"Venue Types":"Types",Ve=n.useCallback(t=>{F(t.viewState)},[]),ge=n.useCallback(t=>{F(r=>({...r,zoom:Math.max(2,Math.min(18,r.zoom+t)),transitionDuration:250}))},[]),qe=n.useCallback(t=>{if(!w.current)return;const r=t.features?.[0];if(!r){E(null);return}if(r.layer.id==="clusters"){const a=r.properties.cluster_id;w.current.getSource("subjects-records").getClusterExpansionZoom(a,(m,T)=>{m||F(Ue=>({...Ue,longitude:r.geometry.coordinates[0],latitude:r.geometry.coordinates[1],zoom:T,transitionDuration:500}))})}else if(r.layer.id==="unclustered-point"){const a=r.properties;E({type:a.type,id:a.id,lat:r.geometry.coordinates[1],lng:r.geometry.coordinates[0],imageUrl:a.imageUrl,title:a.title,navigateTo:a.navigateTo})}},[]);return e.jsx(Ze,{headerLeft:null,headerCenter:e.jsx(Qe,{}),hideBottomPadding:!0,children:e.jsxs("div",{className:"relative h-[calc(100dvh-8rem)] min-h-[34rem] md:h-[calc(100vh-8rem)]","data-testid":"compass-page",children:[e.jsxs(Xe,{ref:w,...l,onMove:Ve,onClick:qe,style:{width:"100%",height:"100%"},mapStyle:g?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11",mapboxAccessToken:It,attributionControl:!1,interactiveLayerIds:["clusters","unclustered-point"],children:[e.jsxs(et,{id:"subjects-records",type:"geojson",data:Ae,cluster:o?f:!1,clusterMaxZoom:14,clusterRadius:50,children:[e.jsx(se,{id:"clusters",type:"circle",filter:["all",["has","point_count"],["==",["literal",o&&f],!0]],paint:{"circle-color":"#D6A73A","circle-radius":["step",["get","point_count"],20,10,30,50,40],"circle-stroke-width":2,"circle-stroke-color":"#FFFFFF"}}),e.jsx(se,{id:"cluster-count",type:"symbol",filter:["all",["has","point_count"],["==",["literal",o&&f],!0]],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12},paint:{"text-color":"#1A3A2A"}}),e.jsx(se,{id:"unclustered-point",type:"circle",filter:["any",["!",["has","point_count"]],["==",["literal",o&&f],!1]],paint:{"circle-color":["match",["get","parentDptKey"],"infrastru
1cture_object","#d97706","mobile_asset","#b45309","surface_art","#059669","street_object","#0891b2","industrial_relic","#b45309","rail_infrastructure","#ca8a04","public_art","#9333ea","#dc2626"],"circle-radius":i?5:7,"circle-stroke-width":2,"circle-stroke-color":"#fff"}})]},o&&f?"clustered":"unclustered"),e.jsx("div",{className:`absolute left-2 right-2 z-10 md:left-3 md:right-14 ${c?"top-2":"top-3"}`,children:e.jsxs("div",{className:"rounded-2xl border border-elz bg-elz-elevated/95 p-2 shadow-sm backdrop-blur-sm",children:[e.jsxs("div",{className:`flex gap-2 ${c?"flex-col":"flex-wrap items-center"}`,children:[e.jsx("div",{className:`flex gap-1 ${c?"overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none]":"flex-wrap"}`,children:Tt.map(t=>e.jsxs("button",{onClick:()=>Ce(t.id),"aria-pressed":N===t.id,className:`shrink-0 flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-all ${N===t.id?"bg-elz-primary text-elz-ink":"text-elz-secondary hover:bg-elz-surface hover:text-elz-primary"}`,"data-testid":`mode-${t.id}`,children:[e.jsx(t.icon,{className:"h-3.5 w-3.5"}),t.label]},t.id))}),o&&e.jsxs("button",{onClick:()=>J(!f),className:`flex shrink-0 items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-all ${f?"bg-elz-primary text-elz-ink":"bg-elz-surface text-elz-secondary hover:text-elz-primary"}`,"data-testid":"toggle-clustering",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),f?"Grouping On":"Grouping Off"]})]}),(o||i)&&e.jsxs("div",{className:"mt-2 border-t border-elz pt-2",children:[e.jsxs("div",{className:`mb-1 flex ${c?"flex-col items-start gap-1":"items-center justify-between"}`,children:[e.jsx("p",{className:"text-[10px] font-mono uppercase tracking-[0.24em] text-elz-muted",children:Re}),o&&e.jsx("p",{className:"text-[10px] text-elz-muted",children:v==="all"?"Showing all discovery types":te(v)}),i&&e.jsx("p",{className:"text-[10px] text-elz-muted",children:S==="all"?"Showing every venue type":Ne(S)})]}),o&&e.jsx("div",{className:`flex gap-1 ${c?"overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none]":"flex-wrap"}`,children:_t.map(t=>e.jsxs("button",{onClick:()=>Se(t.id),className:`shrink-0 flex items-center gap-1.5 rounded-md px-2 py-1 text-[11px] font-medium transition-all ${v===t.id?`${t.color} text-white`:"bg-elz-surface text-elz-secondary hover:text-elz-primary"}`,"data-testid":`dpt-filter-${t.id}`,children:[t.icon&&e.jsx(t.icon,{className:"h-3 w-3"}),t.label]},t.id))}),i&&e.jsx("div",{className:`flex gap-1 ${c?"overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none]":"flex-wrap"}`,children:Ft.map(t=>e.jsxs("button",{onClick:()=>Ie(t.id),className:`shrink-0 flex items-center gap-1.5 rounded-md px-2 py-1 text-[11px] font-medium transition-all ${S===t.id?"bg-elz-accent text-elz-ink":"bg-elz-surface text-elz-secondary hover:text-elz-primary"}`,"data-testid":`venue-filter-${t.id}`,children:[e.jsx(t.icon,{className:"h-3 w-3"}),t.label]},t.id))})]})]})}),e.jsx("div",{className:`absolute right-3 z-10 flex flex-col gap-2 ${c?"bottom-28":"top-3"}`,children:e.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-elz bg-elz-elevated/95 shadow-sm backdrop-blur-sm",children:[e.jsx("button",{type:"button",onClick:()=>ge(1),className:"flex h-10 w-10 items-center justify-center text-elz-primary transition-colors hover:bg-elz-surface","aria-label":"Zoom in","data-testid":"zoom-in",children:e.jsx(it,{className:"h-4 w-4"})}),e.jsx("div",{className:"border-t border-elz"}),e.jsx("button",{type:"button",onClick:()=>ge(-1),className:"flex h-10 w-10 items-center justify-center text-elz-primary transition-colors hover:bg-elz-surface","aria-label":"Zoom out","data-testid":"zoom-out",children:e.jsx(Mt,{className:"h-4 w-4"})})]})}),!c&&e.jsxs("div",{className:"absolute bottom-24 right-3 z-10 max-w-[11rem] rounded-lg border border-elz bg-elz-elevated/95 shadow-sm backdrop-blur-sm",children:[e.jsxs("button",{type:"button",onClick:()=>ne(t=>!t),className:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left","data-testid":"toggle-legend",children:[e.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-elz-muted",children:"Legend"}),V?e.jsx(fe,{className:"h-3.5 w-3.5 text-elz-muted"}):e.jsx(ye,{className:"h-3.5 w-3.5 text-elz-muted"})]}),V&&e.jsxs("div",{className:"space-y-1 border-t border-elz px-3 pb-3 pt-2",children:[o&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Infrastru
1cture"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-700"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Mobile Asset"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Surface Art"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-cyan-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Street Object"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-700"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Industrial Relic"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-yellow-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Rail Infra"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-purple-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Public Art"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-600"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Mystery"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 pt-1 border-t border-elz",children:[e.jsx(p,{className:"w-2.5 h-2.5 text-elz-accent-deep"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:i?"Venue Destination":"Venue"})]}),i&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-elz-primary ring-2 ring-elz-accent/40"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Venue anchor"})]}),i&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-elz-accent-deep"}),e.jsx("span",{className:"text-[10px] text-elz-secondary",children:"Indoor exhibit context"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-green-500 ring-2 ring-green-300/50"}),e.jsx("span",{className:"text-[10px] text-green-700 dark:text-green-300",children:"New (48h)"})]})]})]}),y&&e.jsx(A,{longitude:y.lng,latitude:y.lat,anchor:"center",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-4 h-4 bg-blue-500 rounded-full border-2 border-white shadow-lg"}),e.jsx("div",{className:"absolute inset-0 w-4 h-4 bg-blue-500 rounded-full animate-ping opacity-40"})]})}),N==="mysteries"&&q?.map(t=>t.latitude&&t.longitude&&e.jsx(A,{longitude:t.longitude,latitude:t.latitude,anchor:"center",onClick:()=>u(t.latestRecordPublicId?`/record/${t.latestRecordPublicId}`:`/subject/${t.publicId}`),children:e.jsx("div",{className:"cursor-pointer group","data-testid":`marker-mystery-${t.publicId}`,children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 w-8 h-8 -m-1 bg-red-500 rounded-full animate-ping opacity-40"}),e.jsx("div",{className:"w-6 h-6 bg-red-600 rounded-full border-2 border-red-300 flex items-center justify-center shadow-lg shadow-red-500/30 group-hover:scale-110 transition-transform relative z-10",children:e.jsx(B,{className:"w-3.5 h-3.5 text-white"})}),t.observationCount>1?e.jsx("div",{className:"absolute -top-1 -right-1 min-w-4 h-4 px-1 bg-emerald-500 rounded-full flex items-center justify-center text-[10px] font-bold text-white z-20","data-testid":`badge-observations-${t.publicId}`,children:t.observationCount}):e.jsx("div",{className:"absolute -top-1 -right-1 w-4 h-4 bg-elz-accent rounded-full flex items-center justify-center text-[10px] font-bold text-elz-primary z-20",children:"?"})]})})},t.publicId)),!1,Ee?.map(t=>{const r=t.pinType==="parking"?ht:t.pinType==="entrance"?bt:t.pinType==="lookout"?ut:t.pinType==="hazard"?nt:t.pinType==="water"?yt:t.pinType==="shelter"?Me:Ct,a=t.pinType==="hazard"?"bg-red-500 border-red-400":t.pinType==="parking"?"bg-blue-500 border-blue-400":"bg-slate-500 border-slate-400";return e.jsx(A,{longitude:t.longitude,latitude:t.latitude,anchor:"center",children:e.jsx("div",{className:`w-5 h-5 rounded-sm ${a} flex items-center justify-center shadow-md`,"data-testid":`utility-pin-${t.id}`,title:t.label||t.pinType,children:e.jsx(r,{className:"w-3 h-3 text-white"})})},`pin-${t.id}`)}),De?.map(t=>{const r=t.outpostType==="meetup"?ot:t.outpostType==="info_hub"?Nt:t.outpostType==="viewpoint"?$e:t.outpostType==="legal_access"?ct:t.outpostType==="partner"?jt:G;return e.jsx(A,{longitude:t.longitude,latitude:t.latitude,anchor:"bottom",children:e.jsxs("div",{className:"cursor-pointer group flex flex-col items-center","data-testid":`outpost-${t.id}`,children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg border-2 border-purple-300 flex items-center justify-center shadow-lg shadow-purple-500/30 group-hover:scale-110 transition-transform",children:e.jsx(r,{className:"w-4 h-4 text-white"})}),e.jsx("div",{className:"mt-1 px-2 py-0.5 bg-elz-elevated/95 rounded text-[10px] font-medium text-elz-primary opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap shadow-sm border border-elz",children:t.name})]})},`outpost-${t.id}`)}),C.map(t=>e.jsx(A,{longitude:t.longitude,latitude:t.latitude,anchor:"bottom",children:e.jsxs("div",{className:"cursor-pointer group flex flex-col items-center",onClick:()=>E({type:"venue",id:t.publicId,lat:t.latitude,lng:t.longitude,imageUrl:t.primaryImageUrl||void 0,title:t.name,subtitle:je(t),navigateTo:`/venue/${t.publicId}`}),"data-testid":`venue-marker-${t.publicId}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:`rounded-lg border-2 border-elz-ink flex items-center justify-center shadow-lg transition-transform ${i?"w-11 h-11 bg-elz-accent group-hover:scale-110":l.zoom>=11?"w-9 h-9 bg-elz-primary group-hover:scale-110":"w-9 h-9 bg-elz-primary/85 group-hover:scale-105"}`,children:e.jsx(p,{className:"w-5 h-5 text-elz-ink"})}),t.exhibitCount>0&&e.jsx("div",{className:"absolute -top-1 -right-1 min-w-4 h-4 px-1 rounded-full bg-elz-ink border border-elz-primary flex items-center justify-center text-[9px] font-bold text-elz-primary",children:t.exhibitCount})]}),e.jsx("div",{className:`mt-1 px-2 py-0.5 bg-elz-elevated/95 rounded text-[10px] font-bold text-elz-ink transition-opacity whitespace-nowrap shadow-sm border border-elz ${Te?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:t.name})]})},`venue-${t.id}`)),x&&e.jsx(tt,{longitude:x.lng,latitude:x.lat,anchor:"bottom",onClose:()=>E(null),closeButton:!1,closeOnClick:!1,className:"stamp-popup",children:e.jsxs("div",{className:"relative bg-elz-elevated rounded-lg overflow-hidden shadow-xl",style:{width:"120px"},children:[e.jsx("button",{onClick:()=>E(null),className:"absolute top-1 right-1 z-10 w-5 h-5 bg-black/50 rounded-full flex items-center justify-center text-white hover:bg-black/70","data-testid":"popup-close",children:e.jsx(Ge,{className:"w-3 h-3"})}),x.imageUrl?e.jsx("img",{src:x.imageUrl,alt:x.title||"Photo",className:"w-full h-[100px] object-cover cursor-pointer",onClick:()=>u(x.navigateTo)}):x.type==="venue"?e.jsxs("div",{className:"w-full h-[100px] bg-elz-surface flex flex-col items-center justify-center cursor-pointer",onClick:()=>u(x.navigateTo),children:[e.jsx(p,{className:"w-8 h-8 text-elz-accent-deep mb-1"}),e.jsx("p",{className:"text-[10px] font-mono uppercase tracking-wide text-elz-muted",children:"Venue"})]}):e.jsx("div",{className:"w-full h-[100px] bg-elz-surface flex items-center justify-center cursor-pointer",onClick:()=>u(x.navigateTo),children:e.jsx(G,{className:"w-8 h-8 text-elz-muted"})}),e.jsxs("div",{className:"p-2 bg-elz-elevated cursor-pointer",onClick:()=>u(x.navigateTo),children:[e.jsx("p",{className:"text-[10px] font-medium text-elz-primary truncate",children:x.title}),x.subtitle&&e.jsx("p",{className:"text-[9px] text-elz-muted mt-0.5 truncate",children:x.subtitle}),e.jsx("p",{className:"text-[9px] text-elz-accent-deep mt-0.5",children:"Tap to view"})]})]})})]}),e.jsxs("div",{className:`absolute bottom-0 left-0 right-0 rounded-t-[1.4rem] bg-elz-elevated/95 backdrop-blur-md border-t border-elz transition-all duration-300 ${k?c?"h-[46vh]":"h-64":c?"h-24":"h-20"}`,children:[e.jsx("button",{className:"absolute -top-3 left-1/2 -translate-x-1/2 w-10 h-6 bg-elz-elevated border border-elz rounded-t-lg flex items-center justify-center shadow-sm",onClick:()=>Y(!k),"data-testid":"drawer-toggle",children:k?e.jsx(fe,{className:"w-4 h-4 text-elz-muted"}):e.jsx(ye,{className:"w-4 h-4 text-elz-muted"})}),e.jsxs("div",{className:"px-4 py-3",children:[e.jsxs("div",{className:`flex ${c?"flex-col items-start gap-3":"items-center justify-between"}`,children:[e.jsxs("div",{className:`flex ${c?"w-full flex-wrap gap-3":"items-center gap-4"}`,children:[o&&xe>0&&e.jsxs("button",{className:"flex items-center gap-2 text-elz-accent-deep hover:text-elz-accent transition-colors",onClick:()=>u("/queue"),"data-testid":"stat-queue",children:[e.jsx(Le,{className:"w-4 h-4"}),e.jsxs("span",{className:"text-sm font-medium",children:[xe," pending"]})]}),N!=="venues"&&X>0&&e.jsxs("button",{className:"flex items-center gap-2 text-red-600 dark:text-red-300 hover:text-red-500 transition-colors animate-pulse",onClick:()=>{const t=q?.[0];t?.latitude&&t?.longitude&&F(r=>({...r,latitude:t.latitude,longitude:t.longitude,zoom:12}))},"data-testid":"stat-mysteries",children:[e.jsx(B,{className:"w-4 h-4"}),e.jsxs("span",{className:"text-sm font-medium",children:[X," mysteries"]})]}),o&&D>0&&e.jsxs("div",{className:"flex items-center gap-2 text-emerald-600 dark:text-emerald-300",children:[e.jsx(re,{className:"w-4 h-4"}),e.jsxs("span",{className:"text-sm font-medium",children:[D," nearby"]})]}),i&&e.jsxs("div",{className:"flex items-center gap-2 text-elz-accent-deep",children:[e.jsx(p,{className:"w-4 h-4"}),e.jsxs("span",{className:"text-sm font-medium",children:[O," visible"]})]}),i&&pe>0&&e.jsxs("div",{className:"flex items-center gap-2 text-emerald-700 dark:text-emerald-300",children:[e.jsx(ie,{className:"w-4 h-4"}),e.jsxs("span",{className:"text-sm font-medium",children:[pe," with exhibits"]})]}),!y&&e.jsxs("div",{className:"flex items-center gap-2 text-elz-muted",children:[e.jsx(G,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:i?"Locating nearby venues...":"Locating..."})]})]}),e.jsxs("div",{className:`flex ${c?"w-full flex-wrap items-center gap-2":"items-center gap-2"}`,children:[d&&e.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-elz-surface border border-elz text-elz-secondary hover:text-elz-accent-deep hover:border-elz-accent-30 transition-all text-xs font-medium",onClick:()=>u("/venue/new"),"data-testid":"button-add-venue",children:[e.jsx(p,{className:"w-3.5 h-3.5"}),"Add Venue"]}),i&&e.jsxs("div",{className:"text-xs text-elz-muted",children:[he," exhibit",he===1?"":"s"," in view"]}),!k&&o&&y&&D===0&&e.jsx("div",{className:"text-xs text-elz-muted",children:"Undocumented area"}),!k&&i&&O===0&&e.jsx("div",{className:"text-xs text-elz-muted",children:"No venues in this view"})]})]}),k&&e.jsxs("div",{className:`mt-4 space-y-3 overflow-y-auto ${c?"max-h-[calc(46vh-6.5rem)] pr-1":"max-h-44"}`,children:[c&&e.jsxs("div",{className:"rounded-xl border border-elz bg-elz-ink/65 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-mono uppercase tracking-[0.24em] text-elz-muted",children:"Map Guide"}),e.jsx("p",{className:"mt-1 text-sm text-elz-primary",children:i?"Buildings are the destination layer. Open the venue first, then read exhibits inside it.":o?"Use the chips above to narrow the field. Grouping remembers your last setting.":"Red markers are unresolved mysteries that still need confirmation."})]}),e.jsx("button",{type:"button",onClick:()=>ne(t=>!t),className:"shrink-0 rounded-lg border border-elz bg-elz-elevated px-3 py-2 text-[11px] font-medium text-elz-secondary","data-testid":"toggle-legend-mobile",children:V?"Hide legend":"Show legend"})]}),V&&e.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-x-3 gap-y-2 text-[10px] text-elz-secondary",children:[o&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-amber-600"}
1),e.jsx("span",{children:"Infrastructure"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-amber-700"}),e.jsx("span",{children:"Mobile Asset"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-emerald-600"}),e.jsx("span",{children:"Surface Art"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-cyan-600"}),e.jsx("span",{children:"Street Object"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-yellow-600"}),e.jsx("span",{children:"Rail Infra"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-purple-600"}),e.jsx("span",{children:"Public Art"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-3 w-3 text-elz-accent-deep"}),e.jsx("span",{children:i?"Venue anchor":"Venue"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-green-500 ring-2 ring-green-300/50"}),e.jsx("span",{children:"New (48h)"})]})]})]}),!y&&e.jsxs("div",{className:"flex items-center gap-3 p-3 bg-elz-ink rounded-lg border border-elz",children:[e.jsx(Ye,{className:"w-5 h-5 text-elz-muted animate-spin"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-elz-primary text-sm font-medium",children:"Finding your location..."}),e.jsx("p",{className:"text-xs text-elz-muted",children:i?"Enable location for venue browsing nearby":"Enable location for nearby discoveries"})]})]}),o&&y&&D===0&&e.jsxs("div",{className:"flex items-center gap-3 p-3 bg-elz-accent-5 rounded-lg border border-elz-accent-30",children:[e.jsx(dt,{className:"w-5 h-5 text-elz-accent-deep"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-elz-primary text-sm font-medium",children:"Undocumented Zone"}),e.jsx("p",{className:"text-xs text-elz-muted",children:"No observations near you yet. Be the first!"})]})]}),N!=="venues"&&X>0&&e.jsxs("div",{className:"p-3 bg-red-50 rounded-lg border border-red-200",children:[e.jsxs("p",{className:"text-elz-primary text-sm font-medium mb-2 flex items-center gap-2",children:[e.jsx(B,{className:"w-4 h-4 text-red-600 dark:text-red-300"}),"Mysteries Need Your Help"]}),e.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",children:q?.slice(0,4).map(t=>e.jsx("button",{className:"flex-shrink-0 w-12 h-12 rounded overflow-hidden border border-red-200 hover:border-red-400 transition-colors",onClick:()=>u(t.latestRecordPublicId?`/record/${t.latestRecordPublicId}`:`/subject/${t.publicId}`),children:t.primaryImageUrl&&e.jsx("img",{src:t.primaryImageUrl,alt:"",className:"w-full h-full object-cover"})},t.publicId))})]}),o&&y&&D>0&&e.jsxs("div",{className:"p-3 bg-elz-ink rounded-lg border border-elz",children:[e.jsxs("p",{className:"text-elz-primary text-sm font-medium mb-2 flex items-center gap-2",children:[e.jsx(re,{className:"w-4 h-4 text-emerald-600 dark:text-emerald-300"}),"Recent Nearby"]}),e.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",children:de?.slice(0,4).map(t=>e.jsx("button",{className:"flex-shrink-0 w-12 h-12 rounded overflow-hidden border border-elz hover:border-elz-accent-50 transition-colors",onClick:()=>u(`/record/${t.publicId}`),children:e.jsx("img",{src:t.primaryImageUrl,alt:"",className:"w-full h-full object-cover"})},t.publicId))})]}),i&&O===0&&e.jsxs("div",{className:"flex items-center gap-3 p-3 bg-elz-ink rounded-lg border border-elz",children:[e.jsx(p,{className:"w-5 h-5 text-elz-muted"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-elz-primary text-sm font-medium",children:"No venues in this view yet"}),e.jsx("p",{className:"text-xs text-elz-muted",children:"Try another area or add a venue to start the local map."})]})]}),i&&O>0&&e.jsxs("div",{className:"p-3 bg-elz-ink rounded-lg border border-elz",children:[e.jsxs("p",{className:"text-elz-primary text-sm font-medium mb-2 flex items-center gap-2",children:[e.jsx(p,{className:"w-4 h-4 text-elz-accent-deep"}),"Venue destinations in view"]}),e.jsx("p",{className:"mb-3 text-xs text-elz-muted",children:"These cards are the destination layer. Open one to see the building first, then the exhibits and visitor observations gathered inside it."}),e.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",children:Pe.map(t=>e.jsxs("button",{className:"flex-shrink-0 w-32 rounded-lg overflow-hidden border border-elz hover:border-elz-accent-50 transition-colors bg-elz-elevated text-left",onClick:()=>u(`/venue/${t.publicId}`),children:[t.primaryImageUrl?e.jsx("img",{src:t.primaryImageUrl,alt:"",className:"w-full h-16 object-cover"}):e.jsx("div",{className:"w-full h-16 bg-elz-surface flex items-center justify-center",children:e.jsx(p,{className:"w-5 h-5 text-elz-accent-deep"})}),e.jsxs("div",{className:"p-2",children:[e.jsx("p",{className:"text-xs font-medium text-elz-primary truncate",children:t.name}),e.jsx("p",{className:"text-[11px] text-elz-muted truncate",children:je(t)})]})]},t.publicId))})]}),i&&ee>0&&e.jsxs("div",{className:"p-3 bg-elz-accent-5 rounded-lg border border-elz-accent-30",children:[e.jsxs("p",{className:"text-elz-primary text-sm font-medium mb-1 flex items-center gap-2",children:[e.jsx(le,{className:"w-4 h-4 text-elz-accent-deep"}),"Indoor exhibit layer active"]}),e.jsxs("p",{className:"text-xs text-elz-muted",children:["Street-level zoom is showing ",ee," venue-linked exhibit",ee===1?"":"s"," alongside building markers."]}),e.jsx("p",{className:"mt-2 text-xs text-elz-muted",children:"Read the map in order: building marker first, then exhibit markers inside that destination, then individual observations on the exhibit or venue pages."})]})]})]})]})]})})}export{gs 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.