PageSourceSearch

https://nextjs.onthesnow.com/_next/static/chunks/6168-ebca2915980dd15d.js

js onthesnow.com collected 2026-09-24 08:58:17 UTC 7,910 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6168],{17542:function(e,l,n){n.d(l,{x:function(){return a}});var t=n(57437),s=n(2265),r=n(16010);let a=e=>{let{items:l,active:n,onSelect:a,className:i,ariaLabel:o}=e,d=s.useRef(null),c=s.useRef(null);return s.useEffect(()=>{let e=d.current,l=c.current;if(!e||!l)return;let n=l.offsetLeft-(e.clientWidth-l.offsetWidth)/2;e.scrollLeft=Math.max(0,n)},[n]),(0,t.jsx)("div",{ref:d,role:"tablist","aria-label":o,className:(0,r.cn)("flex flex-nowrap items-center gap-1.5","overflow-x-auto overflow-y-hidden overscroll-x-contain touch-pan-x","[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",i),children:l.map(e=>{let l=e.key===n,s=e.icon;return(0,t.jsxs)("button",{ref:l?c:void 0,type:"button",role:"tab","aria-selected":l,onClick:()=>a(e.key),className:(0,r.cn)("inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-3.5 py-1.5 text-sm font-semibold transition",l?"bg-primary text-primary-foreground shadow-sm":"border border-border bg-background text-muted-foreground hover:border-foreground
1/30 hover:text-foreground"),children:[s&&(0,t.jsx)(s,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0,fill:e.iconFilled?"currentColor":"none"}),e.label]},e.key)})})}},31444:function(e,l,n){n.d(l,{R:function(){return f}});var t=n(57437),s=n(2265),r=n(27648),a=n(92451),i=n(10407),o=n(16010),d=n(57973),c=n(19296),m=n(81851);let u={1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5"},h={2:"lg:basis-[calc((100%-1.25rem)/2)]",3:"lg:basis-[calc((100%-2.5rem)/3)]",4:"lg:basis-[calc((100%-3.75rem)/4)]",5:"lg:basis-[calc((100%-5rem)/5)]"},b=s.createContext(3),x=e=>{let{onClick:l,label:n,disabled:s,children:r}=e;return(0,t.jsx)("button",{type:"button","aria-label":n,onClick:l,disabled:s,className:(0,o.cn)("inline-flex h-9 w-9 items-center justify-center rounded-full border border-border bg-background","text-foreground transition hover:bg-muted","disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-background"),children:r})},f=Object.assign(e=>{let{title:l,headerLeft:n,viewAllHref:h,viewAllLabel:f,desktopLayout:p="carousel",desktopColumns:v=3,desktopPageSize:g,navStyle:j="header",ariaLabel:w,children:k,className:y}=e,{t:N}=(0,m.ZF)("common"),C=null!=f?f:N("common.viewAll"),z=s.useRef(null),Z=s.Children.toArray(k),E="grid"===p&&"number"==typeof g&&g>0,M=E?g:Z.length,L=E?Math.max(1,Math.ceil(Z.length/M)):1,[P,R]=s.useState(0),[W,_]=s.useState(!0);s.useEffect(()=>{let e=z.current;if(!e)return;let l=()=>_(e.scrollLeft<8);return e.addEventListener("scroll",l,{passive:!0}),()=>e.removeEventListener("scroll",l)},[]);let F=s.useCallback(e=>{let l=z.current;if(!l)return;let n=Math.max(.4*l.clientWidth,280);l.scrollBy({left:e*n,behavior:"smooth"})},[]),A="carousel"===p,I=A&&"header"===j,O=A&&"overlay"===j,S=!!(l||n||h||I),q=(0,o.cn)("-mx-4 flex snap-x snap-mandatory gap-5 overflow-x-auto scroll-smooth","pl-4 pr-4 pb-2 [scroll-padding-left:1rem]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),B="md:mx-0 md:grid ".concat(u[v]," md:gap-5 md:overflow-visible md:px-0 md:pb-0");return(0,t.jsx)(b.Provider,{value:v,children:(0,t.jsxs)("section",{className:y,"aria-label":w,children:[S&&(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[n?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:n}):l?(0,t.jsx)(c.X,{level:2,children:l}):(0,t.jsx)("span",{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[h&&((0,d.Z)(h)?(0,t.jsx)("a",{href:h,className:"hidden text-sm font-semibold text-primary hover:underline sm:inline",children:C}):(0,t.jsx)(r.default,{href:h,className:"hidden text-sm font-semibold text-primary hover:underline sm:inline",children:C})),I&&(0,t.jsxs)("div",{className:"hidden items-center gap-1.5 md:flex",children:[(0,t.jsx)(x,{label:N("common.previous"),onClick:()=>F(-1),children:(0,t.jsx)(a.Z,{size:18,className:"fill-none"})}),(0,t.jsx)(x,{label:N("resort.reviews.next"),onClick:()=>F(1),children:(0,t.jsx)(i.Z,{size:18,className:"fill-none"})})]})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{type:"button","aria-label":N("resort.reviews.next"),tabIndex:-1,onClick:()=>F(1),className:(0,o.cn)("absolute right-2 top-1/2 z-10 -translate-y-1/2","inline-flex h-7 w-7 items-center justify-center rounded-full","bg-black/45 text-white shadow-sm backdrop-blur-sm","transition-opacity duration-300 md:hidden",W?"opacity-100":"pointer-events-none opacity-0"),children:(0,t.jsx)(i.Z,{size:14,className:"fill-none"})}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":N("common.previous"),onClick:()=>F(-1),className:(0,o.cn)("absolute left-3 top-1/2 z-10 hidden -translate-y-1/2 md:inline-flex","h-10 w-10 items-center justify-center rounded-full","bg-black/45 text-white shadow-md backdrop-blur-sm transition","hover:bg-black/60"),children:(0,t.jsx)(a.Z,{size:20,className:"fill-none"})}),(0,t.jsx)("button",{type:"button","aria-label":N("resort.reviews.next"),onClick:()=>F(1),className:(0,o.cn)("absolute right-3 top-1/2 z-10 hidden -translate-y-1/2 md:inline-flex","h-10 w-10 items-center justify-center rounded-full","bg-black/45 text-white shadow-md backdrop-blur-sm transition","hover:bg-black/60"),
1children:(0,t.jsx)(i.Z,{size:20,className:"fill-none"})})]}),(0,t.jsx)("div",{ref:z,"data-layout":p,className:(0,o.cn)(q,"grid"===p&&B),children:E?Z.map((e,l)=>{var n;let s=l>=P*M&&l<(P+1)*M;return(0,t.jsx)("div",{className:(0,o.cn)("contents",!s&&"md:hidden"),children:e},null!==(n=e.key)&&void 0!==n?n:l)}):k})]}),E&&L>1&&(0,t.jsxs)("div",{className:"mt-6 hidden items-center justify-center gap-3 md:flex",children:[(0,t.jsx)(x,{label:N("common.previousPage"),onClick:()=>R(e=>Math.max(0,e-1)),disabled:0===P,children:(0,t.jsx)(a.Z,{size:18,className:"fill-none"})}),(0,t.jsx)("span",{className:"text-sm font-medium tabular-nums text-muted-foreground",children:N("common.pageOfPages",{page:P+1,total:L})}),(0,t.jsx)(x,{label:N("common.nextPage"),onClick:()=>R(e=>Math.min(L-1,e+1)),disabled:P>=L-1,children:(0,t.jsx)(i.Z,{size:18,className:"fill-none"})})]})]})})},{Item:e=>{var l;let{children:n,className:r}=e,a=null!==(l=h[s.useContext(b)])&&void 0!==l?l:h[3];return(0,t.jsx)("div",{className:(0,o.cn)("shrink-0 snap-start basis-[90%] sm:basis-[48%]",a,r),children:n})}})},62870:function(e,l,n){n.d(l,{e:function(){return a}});var t=n(57437);n(2265);var s=n(27648),r=n(16010);let a=e=>{let{rank:l,title:n,image:a,subtitle:i,href:o,className:d}=e,c=(0,t.jsxs)("div",{className:"relative aspect-square w-full overflow-hidden rounded-md bg-dark-blue shadow-sm",children:[(0,t.jsx)("img",{src:a,alt:n,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 group-hover:scale-[1.03]"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-dark-blue/95 via-dark-blue/20 to-transparent"}),(0,t.jsx)("span",{className:(0,r.cn)("absolute right-2.5 top-2.5 inline-flex h-8 min-w-8 items-center justify-center","rounded-md bg-white/95 px-2 font-heading text-sm font-bold tabular-nums","text-foreground shadow-sm"),children:"#".concat(l)}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-3",children:[(0,t.jsx)("div",{className:"text-sm font-bold leading-none text-white underline-offset-2 group-hover:underline md:text-base",children:n}),i&&(0,t.jsx)("div",{className:"mt-0.5 text-xs text-blue-200",children:i})]})]});return o?(0,t.jsx)(s.default,{href:o,className:(0,r.cn)("group block no-underline hover:no-underline",d),children:c}):(0,t.jsx)("div",{className:(0,r.cn)("group block",d),children:c})}},57973:function(e,l,n){n.d(l,{Z:function(){return s}});var t=n(73420);let s=e=>!!(null==e?void 0:e.startsWith("/".concat((0,t.ou)())))}}]);
2//# sourceMappingURL=6168-ebca2915980dd15d.js.map

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.