PageSourceSearch

https://trip.lt/_next/static/chunks/4536-ee2742a8bcf906aa.js

js trip.lt collected 2026-10-02 23:38:21 UTC 11,820 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4536],{47469:function(e,r,t){t.d(r,{dW:function(){return s.d},RY:function(){return d},yv:function(){return h},iU:function(){return p},FC:function(){return x},Ex:function(){return u},S$:function(){return a},G_:function(){return c},jk:function(){return m},jx:function(){return g}});var l=t(85893),o=t(67294),i=t(204),n=t(18854),s=t(81164);let a=e=>{let{hasSingleDesktopAd:r,index:t}=e;return(0,l.jsxs)(i.k,{justify:"center",gap:"0.25rem",children:[(0,l.jsx)(n.Z,{w:r?"auto":"18.75rem",children:(0,l.jsx)(s.d,{adSlot:"trip_300x250_".concat("0".concat(r?t+1:2*t+1).slice(-2)),style:{display:"block",width:"300px",height:"250px"},isDesktopOnly:!0})}),!r&&(0,l.jsx)(n.Z,{w:"18.75rem",children:(0,l.jsx)(s.d,{adSlot:"trip_300x250_".concat("0".concat(2*t+2).slice(-2)),style:{display:"block",width:"300px",height:"250px"},isDesktopOnly:!0})})]})},c=e=>{let{index:r}=e;return(0,l.jsx)(i.k,{justify:"center",gap:"0.25rem",children:(0,l.jsx)(n.Z,{w:"18.75rem",children:(0,l.jsx)(s.d,{adSlot:"trip_mobile_300x250_0".concat(r+1),style:{display:"block",width:"300px",height:"250px"},isMobileOnly:!0})})})},d=e=>{let{index:r}=e,[t,a]=(0,o.useState)();(0,o.useEffect)(()=>{a(Math.random())},[]);let c=t&&t>.5;return(0,l.jsxs)(i.k,{justifyContent:"center",py:"1rem",borderRadius:"0.25rem",bg:"white",boxShadow:"0 0 0.25rem 0 var(--chakra-colors-black-transparent-3)",children:[(0,l.jsx)(n.Z,{display:{base:"none",lg:"block"},children:(0,l.jsx)(s.d,{adSlot:"trip_1000x250_".concat("0".concat(r+1).slice(-2)),style:{display:"block",minWidth:"960px",maxWidth:"1000px",width:"100%",height:"250px"},isDesktopOnly:!0})}),void 0!==t&&(0,l.jsx)(n.Z,{display:{base:"block",lg:"none"},children:(0,l.jsx)(s.d,{adSlot:c?"trip_mobile_300x600_".concat("0".concat(r+1).slice(-2)):"trip_mobile_300x250_".concat("0".concat(r+1).slice(-2)),style:{display:"block",width:"300px",height:c?"600px":"250px"},isMobileOnly:!0})})]})},h=()=>(0,l.jsx)("div",{children:(0,l.jsx)(s.d,{adSlot:"trip_300x250_06",style:{display:"block",width:"300px",height:"250px"},isDesktopOnly:!0})}),p=()=>(0,l.jsx)("div",{children:(0,l.jsx)(s.d,{adSlot:"trip_300x250_06",style:{display:"block",width:"300px",height:"250px"},isDesktopOnly:!0})}),x=()=>(0,l.jsx)(i.k,{justifyContent:"center",py:"1rem",borderRadius:"0.25rem",bg:"white",boxShadow:"0 0 0.25rem 0 var(--chakra-colors-black-transparent-3)",children:(0,l.jsx)(s.d,{adSlot:"trip_300x600_01",style:{display:"block",width:"300px",height:"600px"},isDesktopOnly:!0})}),u=()=>{let[e,r]=(0,o.useState)();(0,o.useEffect)(()=>{r(Math.random())},[]);let t=e&&e>.5;return(0,l.jsx)(i.k,{justifyContent:"center",children:void 0!==e&&(0,l.jsx)(s.d,{adSlot:t?"trip_mobile_300x600_01":"trip_mobile_300x250_01",style:{display:"block",width:"300px",height:t?"600px":"250px"},isMobileOnly:!0})})},m=()=>(0,l.jsx)(i.k,{justifyContent:"center",py:"1rem",bg:"white",borderRadius:"0.25rem",boxShadow:"0 0 0.25rem 0 var(--chakra-colors-black-transparent-3)",children:(0,l.jsx)(s.d,{adSlot:"trip_300x600_02",style:{display:"block",width:"300px",height:"600px"},isDesktopOnly:!0})}),g=()=>(0,l.jsx)(i.k,{justifyContent:"center",children:(0,l.jsx)(s.d,{adSlot:"trip_mobile_300x250_01",style:{display:"block",width:"300px",height:"250px"},isMobileOnly:!0})})},23277:function(e,r,t){t.d(r,{l$:function(){return z}});var l=t(85893),o=t(67294),i=t(45338),n=t(204),s=t(8772),a=t(18854),c=t(44992),d=t(1913),h=t(27002),p=t(39068);let x=e=>{let{photo:r,placeName:t}=e;return(0,l.jsx)(a.Z,{h:"full",position:"relative",children:(0,l.jsx)(p.Pz,{photoGuid:r.photo,original:!0,style:{objectFit:"contain"},alt:t,priority:!0,hasBlurPlaceholder:!0})})},u=e=>{let{video:r}=e;return(0,l.jsxs)(a.Z,{h:"full",children:["youtube"===r.type&&(0,l.jsx)("iframe",{style:{width:"100%",height:"100%"},src:r.embedUrl,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),"vimeo"===r.type&&(0,l.jsx)("iframe",{src:r.embedUrl,style:{width:"100%",height:"100%"},frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})]})},m=e=>{let{currentIndex:r,photos:t,videos:o,placeName:i,isVisible:n}=e;return(0,l.jsxs)(a.Z,{h:"full",display:n?"block":"none",children:[r<t.length&&(0,l.jsx)(x,{photo:t[r],placeName:i}),r>=t.length&&r-t.length<o.length&&(0,l.jsx)(u,{video:o[r-t.length]})]})};var g=t(88911),b=t(31708),y=t(776),j=t(29342);let f=e=>{let{placeInfo:r,currentIndex:t,photos:o,videos:i,onChangeCurrent:h,onClose:x,isPhotosListHidden:u,ad:m,hasDescription:f}=e,{t:k}=(0,s.$G)(),w=t<o.length&&o[t];return(0,l.jsxs)(n.k,{direction:"column",h:"full",children:[(0,l.jsxs)(n.k,{gap:"0.25rem",mx:"0.5rem",py:"0.5rem",pb:"2rem",flexShrink:"0",...u?void 0:{borderBottom:"1px solid",borderColor:"light-grey-3"},children:[(0,l.jsxs)(a.Z,{flex:"1",px:"0.5rem",py:"0.5rem",children:[(0,l.jsx)(g.x,{noOfLines:3,color:"dark-grey-3",fontSize:"0.875rem",fontWeight:"700",children:r.name}),f&&r.description&&(0,l.jsx)(a.Z,{color:"black",fontSize:"0.875rem",fontStyle:"italic",fontWeight:"500",mt:"0.5rem",children:r.description}),!!w&&!!w.source&&(0,l.jsx)(a.Z,{mt:"0.5rem",children:(0,l.jsxs)(n.k,{...!!w.sourceUrl&&{as:"a",href:(0,j.s)(w.sourceUrl),target:"_blank",rel:"nofollow"},alignItems:"center",gap:"0.5rem",fontSize:"0.75rem",color:"dark-grey-2",fontWeight:"600",children:[(0,l.jsxs)("span",{children:["\xa9 ",w.source]}),!!w.sourceUrl&&(0,l.jsx)(c.J,{name:"106-ext-link-outl"})]})})]}),(0,l.jsx)(a.Z,{flexShrink:"0",children:(0,l.jsx)(d.h,{label:k("modal.close"),variant:"greySolid",width:"2.5rem",height:"2.5rem",isRound:!0,fontSize:"0.75rem",icon:(0,l.jsx)(c.J,{name:"039-close"}),onClick:x})})]}),u?(0,l.jsx)(a.Z,{flex:"1"}):(0,l.jsxs)(b.r,{templateColumns:"6rem 6rem 6rem",autoRows:"6rem",gap:"0.25rem",flex:"1",ml:"1rem",py:"0.25rem",overflow:"auto",children:[o.map((e,r)=>(0,l.jsxs)(y.P,{role:"button",position:"relative",borderRadius:"0.25rem",overflow:"hidden",cursor:"pointer",sx:{"&:hover img":{opacity:.9}},onClick:()=>h(r),children:[(0,l.jsx)(p.Pz,{photoGuid:e.photo,width:96,height:96,crop:!0,style:{objectFit:"cover"}}),t===r&&(0,l.jsx)(a.Z,{position:"absolute",inset:"0",border:"4px solid",borderColor:"main-blue"})]},"gallery-photo-".concat(e.placePhotoId))),i.map((e,r)=>(0,l.jsxs)(y.P,{role:"button",position:"relative",borderRadius:"0.25rem",bg:"dark-grey-2",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",cursor:"pointer",sx:{"&:hover img":{opacity:.9}},onClick:()=>h(r+o.length),children:[(0,l.jsx)(c.J,{size:"2rem",color:"dark-grey-1",name:"119-video"}),t===r+o.length&&(0,l.jsx)(a.Z,{position:"absolute",inset:"0",border:"4px solid",borderColor:"main-blue"})]},"gallery-video-".concat(r)))]}),!!m&&(0,l.jsx)(a.Z,{mx:"1rem",py:"1rem",flexShrink:"0",borderTop:"1px solid",borderColor:"light-grey-3",children:(0,l.jsx)(a.Z,{h:"15.625rem",bg:"light-grey-1",children:m})})]})},k=e=>{let{currentIndex:r,photos:t,placeInfo:o,hasDescription:i}=e,s=r<t.length&&t[r];return(0,l.jsxs)(a.Z,{px:"1rem",py:"1rem",bg:"dark-grey-2",position:"relative",children:[(0,l.jsx)(a.Z,{children:(0,l.jsx)(g.x,{noOfLines:3,color:"white",fontSize:"0.75rem",fontWeight:"600",children:o.name})}),i&&o.description&&(0,l.jsx)(a.Z,{color:"white",fontSize:"0.75rem",fontWeight:"500",children:o.description}),(0,l.jsx)(a.Z,{children:!!s&&!!s.source&&(0,l.jsx)(a.Z,{mt:"0.5rem",children:(0,l.jsxs)(n.k,{...!!s.sourceUrl&&{as:"a",href:(0,j.s)(s.sourceUrl),target:"_blank",rel:"nofollow"},alignItems:"center",gap:"0.5rem",fontSize:"0.75rem",color:"white",fontWeight:"600",children:[(0,l.jsxs)("span",{children:["\xa9 ",s.source]}),!!s.sourceUrl&&(0,l.jsx)(c.J,{name:"106-ext-link-outl"})]})})})]})},w=e=>{let{onClose:r}=e,{t}=(0,s.$G)();return(0,l.jsxs)(n.k,{alignItems:"center",h:"3rem",px:"0.5rem",gap:"0.5rem",bg:"dark-grey-3",position:"relative",zIndex:"10",boxShadow:"0 0 0.5rem 0 var(--chakra-colors-black-transparent-1)",children:[(0,l.jsx)(d.h,{variant:"greyDark",size:"sm",isRound:!0,icon:(0,l.jsx)(c.J,{name:"003-arrow-left"}),label:t("modal.close"),onClick:r}),(0,l.jsx)(a.Z,{fontWeight:"600",color:"white",children:t("place-page.gallery.title")})]})};
1var v=t(11163),S=t(93126);let _=(e,r,t,l)=>{let o=t.findIndex(r=>r.code===e);if(o>-1)return o;let i=r.substring(r.length-9),n=new RegExp("".concat(i,"([1-3])")),s=e.match(n);if(!s)return -1;let a=parseInt(s[1],10);return a&&l[a-1]?t.length+a-1:-1},C=(e,r)=>{let t=e.substring(e.length-9);return"".concat(t).concat(r)},Z=e=>{let{globalId:r,photos:t,videos:l,initialIndex:i,onPhotoCodeUpdate:n}=e,s=(0,v.useRouter)(),a=(0,S.E)(n),c=(0,S.E)(t),d=(0,S.E)(l),h=(0,o.useMemo)(()=>{let{galleryParams:e}=s.query;if(!e||!Array.isArray(e))return -1;let t=e[1]||"";return _(t,r,c.current,d.current)},[r,c,s.query,d]),p=(0,o.useMemo)(()=>void 0!==i?i:void 0!==h?h:-1,[i,h]),[x,u]=(0,o.useState)(p),[m,g]=(0,o.useState)(h);m!==h&&(g(h),u(h));let b=(0,o.useCallback)(e=>{if(void 0!==e&&e>-1&&e<c.current.length){let r=c.current[e].code;return r}if(void 0!==e&&e>=c.current.length){let t=e-c.current.length+1,l=C(r,t);return l}},[r,c]),y=(0,o.useCallback)(e=>{var r;u(e),null===(r=a.current)||void 0===r||r.call(a,b(e))},[b,a]);return(0,o.useEffect)(()=>{if(p>-1){var e;null===(e=a.current)||void 0===e||e.call(a,b(p))}},[b,p,a]),{currentIndex:x,changePhotoIndex:y}},z=e=>{let{initialIndex:r,onClose:t,placeInfo:p,photos:x,videos:u,onPhotoCodeUpdate:g,isPhotosListHidden:b,ad:y,hasDescription:j}=e,{t:v}=(0,s.$G)(),S=(0,o.useRef)(null),{globalId:_,name:C}=p,{currentIndex:z,changePhotoIndex:R}=Z({globalId:_,photos:x,videos:u,initialIndex:r,onPhotoCodeUpdate:g}),I=x.length+u.length,O=()=>{R(-1),t()},W=e=>{R(e)},D=()=>{z>0&&W(z-1)},E=()=>{z<I-1&&W(z+1)},U=(0,i.QS)({onSwipedLeft:E,onSwipedRight:D});return(0,l.jsx)(h.u,{size:"full",variant:"gallery",isOpen:z>-1,onClose:O,hasCloseButton:!1,hasRoundedCorners:!0,initialFocusRef:S,allowPinchZoom:!0,children:(0,l.jsxs)(n.k,{direction:{base:"column",lg:"row"},h:"full",onKeyUp:e=>{"ArrowLeft"===e.key&&D(),"ArrowRight"===e.key&&E()},tabIndex:0,ref:S,children:[(0,l.jsx)(a.Z,{display:{base:"block",lg:"none"},children:(0,l.jsx)(w,{onClose:O})}),(0,l.jsxs)(a.Z,{flex:"1",h:"full",position:"relative",py:{base:"1rem",lg:"0"},bg:{base:"dark-grey-2",lg:"black"},...U,children:[z>0&&(0,l.jsx)(m,{currentIndex:z-1,photos:x,videos:u,placeName:C,isVisible:!1},"item-".concat(z-1)),(0,l.jsx)(m,{currentIndex:z,photos:x,videos:u,placeName:C,isVisible:!0}
1,"item-".concat(z)),z<I-2&&(0,l.jsx)(m,{currentIndex:z+1,photos:x,videos:u,placeName:C,isVisible:!1},"item-".concat(z+1)),z>0&&(0,l.jsx)(a.Z,{display:{base:"none",lg:"block"},position:"absolute",left:"1rem",top:"0",bottom:"0",margin:"auto",h:"3rem",children:(0,l.jsx)(d.h,{variant:"semiTransparentNoBorder",size:"xl",isRound:!0,icon:(0,l.jsx)(c.J,{size:"1.5rem",name:"103-arrow-left"}),label:v("place-page.gallery.previous"),onClick:D})}),z<x.length+u.length-1&&(0,l.jsx)(a.Z,{display:{base:"none",lg:"block"},position:"absolute",right:"1rem",top:"0",bottom:"0",margin:"auto",h:"3rem",children:(0,l.jsx)(d.h,{variant:"semiTransparentNoBorder",size:"xl",isRound:!0,icon:(0,l.jsx)(c.J,{size:"1.5rem",name:"104-arrow-right"}),label:v("place-page.gallery.next"),onClick:E})}),(0,l.jsxs)(n.k,{display:{base:"none",lg:"flex"},position:"absolute",left:"0",right:"0",bottom:"0.75rem",justifyContent:"center",color:"white",fontWeight:"700",fontSize:"0.875rem",children:[z+1," / ",x.length+u.length]})]}),(0,l.jsx)(a.Z,{flexShrink:"0",w:"20.75rem",display:{base:"none",lg:"block"},children:(0,l.jsx)(f,{onClose:O,placeInfo:p,currentIndex:z,photos:x,videos:u,onChangeCurrent:W,ad:y,isPhotosListHidden:b,hasDescription:j})}),(0,l.jsx)(a.Z,{display:{base:"block",lg:"none"},children:(0,l.jsx)(k,{placeInfo:p,hasDescription:j,currentIndex:z,photos:x})})]})})}}}]);

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.