PageSourceSearch

https://www.attractionsnepal.com/assets/YouTubeLiteEmbed-L--CfMVJ.js

js attractionsnepal.com collected 2026-10-03 18:22:00 UTC 1,653 bytes, 1 lines download raw bytes

1import{r as n,j as e}from"./react-Du6yjX2Q.js";function u(s){if(!s)return null;const t=s.match(/youtu\.be\/([A-Za-z0-9_-]{11})/);if(t)return t[1];const r=s.match(/youtube\.com\/embed\/([A-Za-z0-9_-]{11})/);if(r)return r[1];const a=s.match(/[?&]v=([A-Za-z0-9_-]{11})/);return a?a[1]:null}function m({youtubeUrl:s,title:t="Watch video"}){const[r,a]=n.useState(!1),l=u(s);if(!l)return null;const o=`https://img.youtube.com/vi/${l}/hqdefault.jpg`,c=`https://www.youtube.com/embed/${l}?autoplay=1`;return e.jsxs("div",{children:[e.jsx("div",{className:"relative aspect-video rounded-2xl overflow-hidden bg-gray-900 cursor-pointer",children:r?e.jsx("iframe",{src:c,title:t,className:"absolute inset-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):e.jsxs("div",{className:"absolute inset-0",onClick:()=>a(!0),role:"button",tabIndex:0,onKeyDown:i=>i.key==="Enter"&&a(!0),"aria-label":`Play ${t}`,children:[e.jsx("img",{src:o,alt:t,className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-black/20 hover:bg-black/30 transition-colors"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-16 h-16 rounded-full bg-red-600 hover:bg-red-700 transition-colors flex items-center justify-center shadow-lg",children:e.jsx("svg",{className:"w-7 h-7 text-white ml-1",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 5v14l11-7z"})})})})]})}),e.jsxs("p",{className:"mt-2 text-sm text-gray-600",children:["🎬 ",t]})]})}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.