PageSourceSearch

https://www.keahotels.is/_next/static/chunks/5584-17db25b50e96b521.js

js keahotels.is collected 2026-10-09 23:26:18 UTC 13,820 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5584],{52705:function(e,t,r){"use strict";r.r(t);var o,i,l=r(7653);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}t.default=function(e){return l.createElement("svg",a({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=l.createElement("g",{clipPath:"url(#clip0_102_27)"},l.createElement("path",{d:"M0.782623 11.0925L10.6821 1.19302",stroke:"currentColor",strokeMiterlimit:10}),l.createElement("path",{d:"M3.61075 1.19301L10.6818 1.19301L10.6818 8.26408",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"square"}))),i||(i=l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_102_27"},l.createElement("rect",{width:12,height:12,fill:"currentColor"})))))}},81830:function(e,t,r){"use strict";var o,i=r(7653);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",l({width:10,height:18,viewBox:"0 0 10 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=i.createElement("path",{d:"M9 1L1 9L9 17",stroke:"white",strokeMiterlimit:10})))}},620:function(e,t,r){"use strict";var o,i=r(7653);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",l({width:10,height:18,viewBox:"0 0 10 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=i.createElement("path",{d:"M1 17L9 9L1 1",stroke:"white",strokeMiterlimit:10})))}},89595:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var o=r(7653);let i=e=>{let[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t=window.matchMedia(e),o=()=>r(t.matches);return o(),t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[e]),t}},40409:function(e,t,r){"use strict";r.d(t,{U:function(){return u}});var o=r(27573),i=r(7653),l=r(20446),a=r.n(l),s=r(32859),n=r(52705),_=r(94571),c=r.n(_);let u=(0,i.forwardRef)((e,t)=>{let{item:r,both:i=!1}=e,l=(0,s.useRouter)(),_=r.tagline&&r.tagline.length>0;return(0,o.jsx)("button",{ref:t,className:a()(c().carouselCTA,i&&c().herosBoth),onClick:()=>{r.url&&l.push(r.url)},children:(0,o.jsxs)("div",{className:c().ctaWrapper,children:[(0,o.jsxs)("div",{className:c().upperPart,children:[_&&(0,o.jsx)("div",{className:c().tagline,children:r.tagline.map((e,t)=>(0,o.jsx)("p",{children:e.text},t))}),(0,o.jsx)("h3",{className:c().title,children:r.title.map((e,t)=>(0,o.jsx)("p",{children:e.text},t))})]}),(0,o.jsx)("div",{className:c().lowerPart,children:(0,o.jsxs)("div",{className:c().ctaAction,children:[(0,o.jsx)(n.default,{className:c().ctaIcon}),(0,o.jsx)("span",{className:c().label,children:r.label.map((e,t)=>(0,o.jsx)("p",{children:e.text},t))})]})})]})})})},63856:function(e,t,r){"use strict";r.d(t,{l:function(){return C}});var o=r(27573),i=r(7653),l=r(20446),a=r.n(l),s=r(88350),n=r(89840),_=r(57386),c=r(67927),u=r(4673),d=r(89410),m=r.n(d);let h=e=>{var t;let{descriptions:r,imageIndex:l,width:a=150,onSelectIndex:s}=e,n=(0,i.useRef)(null),_=(0,i.useRef)(null),[c,u]=(0,i.useState)(0),[d,h]=(0,i.useState)([]);return(0,i.useEffect)(()=>{if(!n.current||!_.current)return;let e=n.current.querySelectorAll(".".concat(m().slider__item)),t=e[l];if(!t)return;let r=_.current.offsetWidth,o=n.current.scrollWidth,i=Math.max(o-r,0),a=t.offsetLeft,s=a+t.offsetWidth;if(a>=c&&s<=c+r)return;let d=c;a<c&&(d=a-16),s>c+r&&(d=s-r+16),d<0&&(d=0),d>i&&(d=i),u(d)},[l,r,a]),(0,i.useEffect)(()=>{if(!n.current||!_.current)return;let e=n.current.querySelectorAll(".".concat(m().slider__item)),t=_.current.offsetWidth,r=[];e.forEach(e=>{let o=e.offsetLeft-c,i=o+e.offsetWidth,l=Math.max(0,Math.min(t,i)-Math.max(0,o))/e.offsetWidth;o<0&&(l=.3),i>
1t&&(l=Math.max(0,(t-o)/e.offsetWidth)),r.push(l)}),h(r)},[c,r,a]),(0,o.jsx)("p",{ref:_,className:m().slider__container,style:{width:"".concat(a,"px"),overflow:"hidden",margin:0,position:"relative"},children:(0,o.jsx)("span",{className:m().slider__wrapper,ref:n,style:{transform:"translateX(-".concat(c,"px)"),transition:"transform 0.3s ease"},children:r.map((e,r)=>(0,o.jsx)("span",{className:"\n                ".concat(m().slider__item,"\n                ").concat(r===l?m().active:"","\n                ").concat(""===e?m().dot_container:"","\n            "),style:{opacity:null!==(t=d[r])&&void 0!==t?t:1,transition:"opacity 0.3s ease",cursor:"pointer"},onClick:()=>null==s?void 0:s(r),children:""===e?(0,o.jsx)("span",{children:"•"}):e},r))})})};var p=r(89595),f=r(620),v=r(81830),x=r(8790),w=r.n(x);let b={enter:e=>({x:"".concat(100*e,"%"),position:"absolute"}),center:{x:"0%",position:"relative"},exit:e=>({x:"".concat(-100*e,"%"),position:"absolute"})},g=(e,t)=>Math.abs(e)*t,C=e=>{let{children:t,renderCTA:r,descriptions:l=[],both:d=!1,setHasCTA:m,ratioValue:x="1-1",hideArrows:C=!1}=e,[[N,j],y]=i.useState([0,0]),A=i.Children.count(t),E=i.useRef(null),R=(0,s.Y)(E,{}),T=i.useRef(null),[k,H]=(0,i.useState)(300),M=(0,p.a)("(max-width: 839px)"),V=(0,u.r)(0,A,N),[S,P]=(0,i.useState)(V),W=r?r(V):null,L=!!W;m&&m(L);let O=e=>{y([N+e,e])};return(i.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=Math.floor(.93*t.contentRect.width);H(e)}});return e.observe(T.current),()=>{e.disconnect()}},[]),i.useEffect(()=>{P((0,u.r)(0,A,N))},[N]),i.useEffect(()=>{let e=e=>{R&&("ArrowLeft"===e.key?O(-1):"ArrowRight"===e.key&&O(1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[R,O]),0===A)?null:(0,o.jsxs)("div",{className:a()(w().carousel,w()["ratio--".concat(x)]),ref:E,children:[(0,o.jsxs)("div",{className:w().carousel__main,children:[(0,o.jsx)(n.M,{initial:!1,custom:j,children:(0,o.jsx)(_.E.div,{className:w().carousel__item,custom:j,variants:b,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"tween",ease:"easeInOut",duration:1.2},opacity:{duration:.6}},...A>1&&{drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(e,t)=>{let{offset:r,velocity:o}=t,i=g(r.x,o.x);i<-1e4?O(1):i>1e4&&O(-1)}},children:(0,o.jsx)("div",{className:w().carousel__image,children:i.Children.toArray(t)[V]})},N)}),!C&&A>1&&(0,o.jsxs)("div",{className:w().carousel__buttons,children:[(0,o.jsx)("button",{className:w().carousel__buttonPrev,type:"button",onClick:()=>O(-1),"aria-label":"Show previous slide",children:(0,o.jsx)(v.Z,{})}),(0,o.jsx)("button",{className:w().carousel__buttonNext,type:"button",onClick:()=>O(1),"aria-label":"Show next slide",children:(0,o.jsx)(f.Z,{})})]})]}),(0,o.jsxs)("div",{className:a()(w().carousel__aside,L&&w().carousel__asideHasCta,d&&w().carousel__both,1===i.Children.count(t)&&w().carousel__asideNoBefore),ref:T,children:[i.Children.count(t)>1&&(0,o.jsx)(h,{descriptions:M?l.map(()=>""):l,imageIndex:S,width:k,onSelectIndex:e=>{if(e===S)return;let t=e>S?1:-1;y([e,t])}}),(0,o.jsxs)(c.W,{style:{display:"flex"},children:[i.Children.count(t)>1&&(0,o.jsxs)("div",{className:w().carousel__controls,children:[(0,o.jsxs)("div",{className:w().carousel__current,children:[V+1," / ",i.Children.count(t)]}),(0,o.jsxs)("div",{className:w().carousel__buttons,children:[(0,o.jsx)("button",{className:w().carousel__buttonPrev,type:"button",onClick:()=>O(-1),"aria-label":"Show previous slide",children:(0,o.jsx)(v.Z,{})}),(0,o.jsx)("button",{className:w().carousel__buttonNext,type:"button",onClick:()=>O(1),"aria-label":"Show next slide",children:(0,o.jsx)(f.Z,{})})]})]}),L&&(0,o.jsx)("div",{className:w().carousel__ctaSlide,children:W})]})]})]})}},56430:function(e,t,r){"use strict";r.d(t,{KW:function(){return m},YI:function(){return h},i1:function(){return u}});var o=r(27573),i=r(7653),l=r(20446),a=r.n(l),s=r(40409),n=r(10466),_=r(21338),c=r.n(_);let u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];for(let r of e)"string"==typeof r.text&&t.push({text:r.text});return t},d=e=>""===e.url&&0===e.tagline.length&&0===e.title.length&&0===e.label.length,m=(e,t)=>
1r=>{let l=(0,i.useRef)(null),a=t[r],n=a.link,_=null==e?void 0:e.link,c=_&&"object"==typeof _&&"url"in _?_.url:"",m=n&&"object"==typeof n&&"url"in n?n.url:"",h={url:m,tagline:u(a.tagline),title:u(a.title),label:u(a.label)},p={url:c,tagline:u(null==e?void 0:e.tagline),title:u(null==e?void 0:e.title),label:u(null==e?void 0:e.label)};return!a.show_cta||d(h)&&d(p)?null:(0,o.jsx)(s.U,{ref:l,item:d(h)?p:h,both:!1},r)},h=e=>(t,r)=>{var i,l,s,_,u,d;let m=null==t?void 0:t.item;if(!m)return null;let h=null===(i=m.embed)||void 0===i?void 0:i.html;if(h){let t=h.match(/src="([^"]+)"/),i=t?t[1]:null;return(null===(l=i)||void 0===l?void 0:l.includes("player.vimeo.com"))&&(i="".concat(i).concat(i.includes("?")?"&":"?","autoplay=1&muted=1&loop=1&background=1&controls=0&title=0&byline=0&portrait=0")),(0,o.jsx)("div",{className:c().slide,children:(0,o.jsx)("div",{className:a()(c().slideMedia,c()["ratio--".concat(e.replace(":","-"))]),children:i?(0,o.jsx)("iframe",{src:i,frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):(0,o.jsx)("div",{className:c().embed,dangerouslySetInnerHTML:{__html:h}})})},null!==(s=m.key)&&void 0!==s?s:r)}if("image"===m.kind&&m.url){let t=m.width?Number(m.width):1600,i=m.height?Number(m.height):Math.round(9*t/16),l={url:m.url,alt:null!==(_=m.name)&&void 0!==_?_:null,copyright:null,dimensions:{width:t,height:i}};return(0,o.jsx)("div",{className:c().slide,children:(0,o.jsx)("div",{className:a()(c().slideMedia,c()["ratio--".concat(e.replace(":","-"))]),children:(0,o.jsx)(n.PrismicNextImage,{field:l,fill:!0,sizes:"100vw",imgixParams:{auto:["format","compress"],fit:"crop",ar:e,crop:["focalpoint"],q:80},style:{objectFit:"cover",objectPosition:"center"},priority:!0})})},null!==(d=null!==(u=m.key)&&void 0!==u?u:m.id)&&void 0!==d?d:r)}return"file"===m.kind?(0,o.jsx)("div",{className:c().slide,children:(0,o.jsx)("div",{className:a()(c().slideMedia,c()["ratio--".concat(e.replace(":","-"))]),children:(0,o.jsx)("video",{className:c().video,playsInline:!0,autoPlay:!0,muted:!0,loop:!0,style:{objectFit:"cover",objectPosition:"center"},children:(0,o.jsx)("source",{src:m.url,type:"video/mp4"})})})},r):null}},94571:function(e){e.exports={slide:"HerosCTA_slide__dNTOw",slideMedia:"HerosCTA_slideMedia__H1wz5","ratio--2-1":"HerosCTA_ratio--2-1__Hs_KQ","ratio--5-3":"HerosCTA_ratio--5-3__Jir7G","ratio--22-9":"HerosCTA_ratio--22-9__DjqIG","ratio--1-1":"HerosCTA_ratio--1-1__b3p_m",video:"HerosCTA_video__m9Hgi",embed:"HerosCTA_embed__GYmkB",carouselCTA:"HerosCTA_carouselCTA__6GBDD",ctaWrapper:"HerosCTA_ctaWrapper__8Iv_l",upperPart:"HerosCTA_upperPart____Qm3",tagline:"HerosCTA_tagline__hEFQN",title:"HerosCTA_title__wC8ea",lowerPart:"HerosCTA_lowerPart__5qvDK",ctaAction:"HerosCTA_ctaAction__YoGtx",ctaIcon:"HerosCTA_ctaIcon__bWxWf",label:"HerosCTA_label__u0_PW",galleryWithCarousels:"HerosCTA_galleryWithCarousels__vVZdG",noCTA:"HerosCTA_noCTA__QgBGe",herosBoth:"HerosCTA_herosBoth__AtaXM",ctaText:"HerosCTA_ctaText__lnkFa"}},89410:function(e){e.exports={slider__container:"DescriptionSlider_slider__container__vL7KR",slider__wrapper:"DescriptionSlider_slider__wrapper__X2dgE",slider__item:"DescriptionSlider_slider__item__0F6sc",active:"DescriptionSlider_active__jSor7",dot_container:"DescriptionSlider_dot_container__mwfsz"}},8790:function(e){e.exports={carousel:"NewCarousel_carousel__Qm1dG","ratio--1-1":"NewCarousel_ratio--1-1__i4srO","ratio--2-1":"NewCarousel_ratio--2-1__F8Nyk","ratio--5-3":"NewCarousel_ratio--5-3__1Ywih","ratio--22-9":"NewCarousel_ratio--22-9__urKw6","ratio--8-5":"NewCarousel_ratio--8-5__5oeeG","ratio--4-2":"NewCarousel_ratio--4-2__KVynp",carousel__main:"NewCarousel_carousel__main__EMD2d",carousel__buttons:"NewCarousel_carousel__buttons__Axtbc",carousel__buttonNext:"NewCarousel_carousel__buttonNext__683Kl",carousel__buttonPrev:"NewCarousel_carousel__buttonPrev__5LbI5",carousel__item:"NewCarousel_carousel__item__Fcji2",carousel__image:"NewCarousel_carousel__image__UvL_E",carousel__aside:"NewCarousel_carousel__aside__aPdHz",carousel__asideNoBefore:"NewCarousel_carousel__asideNoBefore__VY3R7",carousel__asideHasCta:"NewCarou
1sel_carousel__asideHasCta__T7dlW",carousel__both:"NewCarousel_carousel__both__3wtde",carousel__ctaSlide:"NewCarousel_carousel__ctaSlide__j_260",carousel__description:"NewCarousel_carousel__description__ylYzD",carousel__controls:"NewCarousel_carousel__controls__Ui1Sn",carousel__current:"NewCarousel_carousel__current__rpc_7"}},21338:function(e){e.exports={room:"RoomV2_room__1ZpWA",room__container:"RoomV2_room__container__NKmYW",room__image:"RoomV2_room__image__ex7Gp",room__main:"RoomV2_room__main__GiTiZ",room__title:"RoomV2_room__title__yEmEL",room__description:"RoomV2_room__description__yJuPu",room__info:"RoomV2_room__info__X_36Z",room__amenities:"RoomV2_room__amenities__Is_G9",room__details:"RoomV2_room__details__ueEoL",room__detail:"RoomV2_room__detail__VXgeX",room__equipment:"RoomV2_room__equipment__EmQO_",room__list:"RoomV2_room__list__JBz35",showAll:"RoomV2_showAll__JcEIM",visible:"RoomV2_visible__9Pzrh",room__toggle:"RoomV2_room__toggle__jQT2m",slide:"RoomV2_slide__tJBZ0",slideMedia:"RoomV2_slideMedia__bfx0Z","ratio--1-1":"RoomV2_ratio--1-1__Uwirq","ratio--8-5":"RoomV2_ratio--8-5__eAm3D","ratio--4-2":"RoomV2_ratio--4-2__pOX3P",video:"RoomV2_video__35zK8",embed:"RoomV2_embed__TNccz",galleryWithCarousels:"RoomV2_galleryWithCarousels__ZH714",noCTA:"RoomV2_noCTA__BruNS"}}}]);

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.