PageSourceSearch

https://www.attractionsnepal.com/assets/MapView-p_8qcOKT.js

js attractionsnepal.com collected 2026-10-03 18:21:45 UTC 2,397 bytes, 1 lines download raw bytes

1import{r as g,j as e}from"./react-Du6yjX2Q.js";import{M as p,A as f,P as h,I as u}from"./maps-BXMdhF23.js";import{L as j}from"./router-Euni00R2.js";import{M as w}from"./MapsProvider-BQs8Rmgi.js";const b={lat:28.3949,lng:84.124},N={latLngBounds:{north:31,south:25,east:90,west:78},strictBounds:!1};function k(o,r,l){return`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(`${l}@${o},${r}`)}`}function I({places:o=[],height:r="500px",gestureHandling:l="cooperative",mode:i="explore"}){const[t,c]=g.useState(null),d="8c049749ca3f5af88e5ac2ab",n=o.filter(s=>s.lat&&s.lng),a=i==="place"&&n.length===1,m=a?{lat:n[0].lat,lng:n[0].lng}:b,x=a?14:7;return e.jsx(w,{children:e.jsx("div",{style:{height:r},className:"rounded-2xl overflow-hidden ring-1 ring-gray-200",children:e.jsxs(p,{defaultCenter:m,defaultZoom:x,mapId:d,gestureHandling:l,minZoom:6,restriction:N,disableDefaultUI:!1,children:[n.map(s=>e.jsx(f,{position:{lat:s.lat,lng:s.lng},onClick:()=>c(s),children:e.jsx(h,{background:"#15803d",borderColor:"#14532d",glyphColor:"#fff"})},s.id)),t&&e.jsx(u,{position:{lat:t.lat,lng:t.lng},onCloseClick:()=>c(null),children:a?e.jsxs("div",{className:"min-w-[160px]",children:[e.jsx("p",{className:"font-semibold text-sm text-gray-900 mb-3",children:t.name}),e.jsxs("a",{href:k(t.lat,t.lng,t.name),target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-1.5 w-full px-3 py-1.5 rounded-lg bg-primary-700 text-white text-xs font-semibold hover:bg-primary-800 transition-colors",children:[e.jsx("svg",{className:"w-3.5 h-3.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})}),"Get Directions"]})]}):e.jsxs("div",{className:"max-w-[200px]",children:[t.heroImage&&e.jsx("img",{src:t.heroImage,alt:t.name,className:"w-full h-24 object-cover rounded-lg mb-2"}),e.jsx("h3",{className:"font-semibold text-sm text-gray-900",children:t.name}),e.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:t.district}),e.jsx(j,{to:`/places/${t.slug}`,className:"mt-2 inline-block text-xs font-medium text-primary-700 hover:underline",children:"View details →"})]})})]})})})}export{I 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.