PageSourceSearch

https://nextjs.onthesnow.com/_next/static/chunks/6487-27eab38e13bd1b8f.js

js onthesnow.com collected 2026-09-24 08:58:25 UTC 10,753 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6487],{89030:function(e,t,r){r.d(t,{p:function(){return l}});var n=r(57437),i=r(10466),a=r(81851),o=r(86925);let l=e=>{let{locale:t,color:r,className:l}=e,{t:s}=(0,a.ZF)("common"),u=r||o.JV.Normal;switch(t){case i.I.CS_CZ:case i.I.DE_DE:case i.I.EN_US:case i.I.EN_GB:case i.I.FR_FR:case i.I.IT_IT:case i.I.PL_PL:case i.I.SK_SK:return(0,n.jsx)("img",{className:l,src:"/assets/resort/visitors-choice-".concat(t).concat(u,".svg"),alt:s("guide.home.heroTitle")});default:return null}}},86487:function(e,t,r){r.d(t,{Z:function(){return F}});var n=r(57437),i=r(2265),a=r(99376),o=r(7632),l=r(65933),s=function(){return l.Z.Date.now()},u=/\s/,c=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},d=/^\s+/,f=r(82245),m=0/0,g=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,b=parseInt,v=function(e){if("number"==typeof e)return e;if((0,f.Z)(e))return m;if((0,o.Z)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,c(t)+1).replace(d,""):t;var n=p.test(e);return n||h.test(e)?b(e.slice(2),n?2:8):g.test(e)?m:+e},x=Math.max,w=Math.min,y=function(e,t,r){var n,i,a,l,u,c,d=0,f=!1,m=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=n,a=i;return n=i=void 0,d=t,l=e.apply(a,r)}function h(e){var r=e-c,n=e-d;return void 0===c||r>=t||r<0||m&&n>=a}function b(){var e,r,n,i=s();if(h(i))return y(i);u=setTimeout(b,(e=i-c,r=i-d,n=t-e,m?w(n,a-r):n))}function y(e){return(u=void 0,g&&n)?p(e):(n=i=void 0,l)}function _(){var e,r=s(),a=h(r);if(n=arguments,i=this,c=r,a){if(void 0===u)return d=e=c,u=setTimeout(b,t),f?p(e):l;if(m)return clearTimeout(u),u=setTimeout(b,t),p(c)}return void 0===u&&(u=setTimeout(b,t)),l}return t=v(t)||0,(0,o.Z)(r)&&(f=!!r.leading,a=(m="maxWait"in r)?x(v(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g),_.cancel=function(){void 0!==u&&clearTimeout(u),d=0,n=c=i=u=void 0},_.flush=function(){return void 0===u?l:y(s())},_},_=r(73247),I=r(2038),T=r(89030),N=r(19588),j=r(81851),E=r(40279),k=r(68484),R=r(16010),A=e=>{let{label:t,data:r,dataKey:a,onSelect:o}=e,{t:l}=(0,j.ZF)("common"),s=l(k.labelMap[t]),u=(0,i.useCallback)(e=>{let{id:t}=e.target.dataset;t&&o(r[+t])},[o,r]);return 0===r.length?null:(0,n.jsx)("div",{className:"absolute left-0 right-0 top-full z-50 mt-2",children:(0,n.jsxs)("div",{className:(0,R.cn)("overflow-hidden rounded-md border border-border bg-white shadow-lg","ring-1 ring-black/5"),children:[(0,n.jsx)("header",{className:"border-b border-border bg-muted/40 px-4 py-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:s}),(0,n.jsx)("ul",{onClick:u,className:"max-h-72 overflow-auto py-1",children:r.map((e,t)=>(0,n.jsx)("li",{"data-id":t,className:(0,R.cn)("cursor-pointer px-4 py-2 text-sm text-foreground transition-colors","hover:bg-muted"),children:e[a]},e[a]))})]})})},Z=r(82258),C=r(28932),q=r(19296),S=r(59191),L=r(15104),z=r(95417);let B=e=>{let{onChange:t,placeholder:r}=e;return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(_.Z,{size:18,className:"pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2 fill-none text-foreground/55"}),(0,n.jsx)("div",{className:"[&_input]:!h-12 [&_input]:!w-full [&_input]:!rounded-md [&_input]:!border-2 [&_input]:!border-foreground
1/15 [&_input]:!bg-white [&_input]:!pl-10 [&_input]:!pr-3 [&_input]:!text-base [&_input]:!font-medium [&_input]:!text-foreground [&_input]:!shadow-sm [&_input]:placeholder:!text-foreground/55 [&_input]:placeholder:!font-normal [&_input]:focus-visible:!border-primary/40 [&_input]:focus-visible:!ring-2 [&_input]:focus-visible:!ring-primary/20",children:(0,n.jsx)(E.I,{onChange:t,placeholder:r})})]})};var F=e=>{let{regionTitle:t,isWidget:r=!1}=e,o=(0,a.useRouter)(),l=(0,N.Kd)(),{t:s}=(0,j.ZF)("common"),[u,c]=(0,i.useState)(void 0),[d,f]=(0,i.useState)(!!u),m=(0,i.useRef)(null),g=window.location.hash.slice(1),p=(0,i.useCallback)(y(async e=>{let{value:t}=e.target,{results:r}=await (0,I.k)(t,35,s);if(!t&&0===r.resorts.length){f(!1),c(void 0);return}c(r.resorts),f(!0)},300),[]),h=(0,i.useCallback)(e=>{r&&window?window.open("".concat(Z.Z5.resortTripPlanningReviews(e.resort),"#").concat(C.R),"_blank"):o.push("".concat(Z.Z5.resortTripPlanningReviews(e.resort),"#").concat(C.R))},[]),b=(0,i.useCallback)(e=>{if(e.target&&e.target instanceof Node){let t=m.current&&m.current.contains(e.target);!t&&d&&f(!1),t&&u&&f(!0)}},[u,d]);(0,i.useEffect)(()=>(window.addEventListener("click",b),()=>{window.removeEventListener("click",b)}),[u,b]),(0,i.useEffect)(()=>{let e=()=>{var e;null===(e=m.current)||void 0===e||e.scrollIntoView()};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),(0,i.useEffect)(()=>{g&&g===C.R&&setTimeout(()=>{var e;null===(e=m.current)||void 0===e||e.scrollIntoView()},500)},[g]);let v=(0,L.nK)(s("guide.home.resortReviewHelptext"));return r?(0,n.jsxs)("div",{ref:m,className:"relative max-w-md",children:[(0,n.jsx)(B,{onChange:p,placeholder:s("common.searchResort")}),d&&(0,n.jsx)(A,{label:"resorts",dataKey:"title",data:u,onSelect:h})]}):(0,n.jsx)(z.q,{id:C.R,ref:m,children:(0,n.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-3",children:[(0,n.jsx)(q.X,{level:2,children:s("guide.home.rateResortLabel",{region:t})}),(0,n.jsx)(S.x,{variant:"default",className:"max-w-2xl text-sm leading-relaxed text-muted-foreground [&_a]:font-semibold [&_a]:text-primary [&_a]:hover:underline",...v}),(0,n.jsxs)("div",{className:"relative max-w-md pt-1",children:[(0,n.jsx)(B,{onChange:p,placeholder:s("common.searchResort")}),d&&(0,n.jsx)(A,{label:"resorts",dataKey:"title",data:u,onSelect:h})]})]}),(0,n.jsx)(T.p,{locale:l,className:"hidden h-16 w-auto shrink-0 sm:block md:h-20"})]})})}},40279:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(57437),i=r(2265),a=r(16010);let o=i.forwardRef((e,t)=>{let{className:r,type:i,...o}=e;return(0,n.jsx)("input",{type:i,className:(0,a.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...o})});o.displayName="Input"},15104:function(e,t,r){r.d(t,{Bm:function(){return q},SH:function(){return T},ct:function(){return C},nK:function(){return S},xE:function(){return i}});var n,i,a=r(2265),o=r(68481),l=r.n(o);(n=i||(i={})).Strict="strict",n.TextOnly="text",n.Normal="normal",n.Partial="partial",n.NormalWithImages="normalWithImages";let s=["a","abbr","b","bdi","bdo","blockquote","br","caption","cite","code","data","dd","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","kbd","li","mark","ol","p","pre","q","s","samp","small","span","strong","sub","sup","time","u","ul","var","wbr"],u=[...s,"img"],c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return e.forEach(e=>{var n;r[e]=null!==(n=t[e])&&void 0!==n?n:[]}),r.a&&(r.a=Array.from(new Set([...r.a,"href","name","target","rel"]))),r.img&&(r.img=Array.from(new Set([...r.img,"src","srcset","alt","title","width","height","loading","align"]))),r},d=(e,t)=>{if("a"===e&&"rel"===t)return'rel="noopener noreferrer nofollow"'},f=e=>e.replace(/<a\b(?![^>]*\brel=)([^>]*)>/gi,'<a$1 rel="noopener noreferrer nofollow">'),m=["script","style","iframe","object","embed","noscript"],g={normal:{whiteList:c(s),stripIgnoreTag:!0,stripIgnoreTagBody:m,onTagAttr:d},strict:{whiteList:{a:["href","name","target","rel"]},stripIgnoreTag:!0,stripIgnoreTagBody:m,onTagAttr:d},text:{whiteList:{},stripIgnoreTag:!0,stripIgnoreTagBody:m},partial:{whiteList:c(["b","i","em","strong","a","h2","h3","h4","h5","p","
1span"]),stripIgnoreTag:!0,stripIgnoreTagBody:m,onTagAttr:d},normalWithImages:{whiteList:c(u),stripIgnoreTag:!0,stripIgnoreTagBody:m,onTagAttr:d}},p=RegExp("<(p|div|li|h[1-6])\\b[^>]*>".concat("(?:\\s|&nbsp;|&#160;|\\u00A0|<br\\s*\\/?>)*","<\\/\\1>"),"gi"),h=e=>{let t=e;for(let e=0;e<5;e+=1){let e=t.replace(p,"");if(e===t)return e;t=e}return t},b="(?:\\s|&nbsp;|&#160;|\\u00A0|<br\\s*\\/?>)",v=RegExp("".concat(b,"*<br\\s*\\/?>").concat(b,"*(?=(?:<\\/[a-zA-Z][a-zA-Z0-9]*>\\s*)*$)"),"gi"),x=e=>{let t=e;for(let e=0;e<5;e+=1){let e=t.replace(v,"");if(e===t)return e;t=e}return t},w=RegExp("^((?:\\s*<(?!br\\b|hr\\b|img\\b|wbr\\b)[a-zA-Z][a-zA-Z0-9]*\\b[^>]*>)*)".concat(b,"*<br\\s*\\/?>").concat(b,"*"),"gi"),y=e=>{let t=e;for(let e=0;e<5;e+=1){let e=t.replace(w,"$1");if(e===t)return e;t=e}return t},_=e=>y(x(h(e))),I=(e,t,r)=>{let n={...g[t],...r},i=l()(null!=e?e:"",n);return"text"===t?i:f(i)},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",r=arguments.length>2?arguments[2]:void 0;return{dangerouslySetInnerHTML:{__html:_(I(e,t,r))}}},N={grave:"̀",acute:"́",circ:"̂",tilde:"̃",uml:"̈",ring:"̊",cedil:"̧"},j={...(()=>{let e={};
1return Object.entries(N).forEach(t=>{let[r,n]=t;Array.from("AaEeIiOoUuYyNnCc").forEach(t=>{let i="".concat(t).concat(n).normalize("NFC");1===i.length&&(e["".concat(t).concat(r)]=i)})}),e})(),quot:'"',apos:"'",nbsp:"\xa0",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",ndash:"–",mdash:"—",hellip:"…",bull:"•",middot:"\xb7",prime:"′",Prime:"″",laquo:"\xab",raquo:"\xbb",lsaquo:"‹",rsaquo:"›",deg:"\xb0",plusmn:"\xb1",times:"\xd7",divide:"\xf7",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",copy:"\xa9",reg:"\xae",trade:"™",euro:"€",pound:"\xa3",yen:"\xa5",cent:"\xa2",sect:"\xa7",para:"\xb6",micro:"\xb5",szlig:"\xdf",aelig:"\xe6",AElig:"\xc6",oslash:"\xf8",Oslash:"\xd8",aring:"\xe5",Aring:"\xc5",lt:"<",gt:">"},E=/&#(x[0-9a-f]+|[0-9]+);/gi,k=/&([a-z][a-z0-9]{1,31});/gi,R=/&amp;/gi,A=(e,t)=>{let r="x"===t[0]||"X"===t[0]?parseInt(t.slice(1),16):parseInt(t,10);return!Number.isFinite(r)||r<=0||r>1114111||r>=55296&&r<=57343?e:String.fromCodePoint(r)},Z=e=>e.replace(E,A).replace(k,(e,t)=>{var r;return null!==(r=j[t])&&void 0!==r?r:e}).replace(R,"&"),C=e=>{let t=Z(I(e,"text"));return t.includes("<")?Z(I(t,"text")):t},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",r=arguments.length>2?arguments[2]:void 0;return(0,a.useMemo)(()=>_(I(e,t,r)),[e,t])},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",r=arguments.length>2?arguments[2]:void 0;return(0,a.useMemo)(()=>T(e,t,r),[e,t,r])}}}]);
2//# sourceMappingURL=6487-27eab38e13bd1b8f.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.