1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,980609,e=>{"use strict";e.s(["HOTEL_CONTENT_KEY",0,"hotelContent","SHIP_CONTENT_KEY",0,"shipContent","processBullets",0,e=>{if(e&&/\r\n/.test(e)){let t=e.split("\r\n");if(t.length>=1)return t.filter(e=>!!e&&!!e.trim()).map(e=>e.trim()+'<br class="optional" />').join(" ")}return e||""}])},649050,e=>{e.v({accent:"BoardName-module-scss-module__wC_wZa__accent"})},481362,e=>{"use strict";var t=e.i(287786),s=e.i(272043),i=e.i(191788),l=e.i(649050);let a=(e,t,s)=>{let i=e?.board?.code,l=e?.board?.label,a=e?.board?.description;return t||(s?a:l)||i},n=(0,t.applyStylingHoc)(l.default)(({styles:e,room:t,baseRoom:l,name:n,useDescriptionAsProviderName:o})=>{let r=a(t,n,o),u=l?a(l,n,o):null;return r?i.default.createElement("span",{className:(0,s.default)(e.root,u&&u!==r&&e.accent)},r):null});e.s(["default",0,n,"getBoardName",0,a])},639171,e=>{"use strict";var t=e.i(191788),s=e.i(758568),i=e.i(116432),l=e.i(287786);let a=(0,e.i(50996).defineMessages)({lengthOfStay:{id:"tsbob-collection.LengthOfStay.lengthOfStay"}}),n=(0,l.applyStylingHoc)({})(({styles:e,offer:l})=>{let{formatMessage:n}=(0,i.useIntl)();return t.default.createElement("span",{className:e.root},n(a.lengthOfStay,{nights:(0,s.default)(l,"lengthOfStay",0)}))});e.s(["default",0,n],639171)},37458,e=>{e.v({infoIcon:"OldPriceWrapper-module-scss-module__oU6aGa__infoIcon",infoWrapper:"OldPriceWrapper-module-scss-module__oU6aGa__infoWrapper","is-horizontal":"OldPriceWrapper-module-scss-module__oU6aGa__is-horizontal",old:"OldPriceWrapper-module-scss-module__oU6aGa__old","oldPrice--price":"OldPriceWrapper-module-scss-module__oU6aGa__oldPrice--price","oldPrice--price--amount":"OldPriceWrapper-module-scss-module__oU6aGa__oldPrice--price--amount","oldPrice--price--currency":"OldPriceWrapper-module-scss-module__oU6aGa__oldPrice--price--currency",oldSavedPostfix:"OldPriceWrapper-module-scss-module__oU6aGa__oldSavedPostfix","oldSavedPrice--price":"OldPriceWrapper-module-scss-module__oU6aGa__oldSavedPrice--price",oldSavedPricePercent:"OldPriceWrapper-module-scss-module__oU6aGa__oldSavedPricePercent",oldSavedWrapper:"OldPriceWrapper-module-scss-module__oU6aGa__oldSavedWrapper",oldValue:"OldPriceWrapper-module-scss-module__oU6aGa__oldValue",oldWrapper:"OldPriceWrapper-module-scss-module__oU6aGa__oldWrapper","tooltip--content":"OldPriceWrapper-module-scss-module__oU6aGa__tooltip--content"})},845183,e=>{"use strict";var t=e.i(191788),s=e.i(257140),i=e.i(272043),l=e.i(116432),a=e.i(287786),n=e.i(481722),o=e.i(504730),r=e.i(373013);let u=(0,e.i(50996).defineMessages)({youSaveLabel:{id:"tsbob-collection.OldPriceWrapper.youSaveLabel"},perPerson:{id:"tsbob-collection.OldPriceWrapper.perPerson"},infoTooltip:{id:"tsbob-collection.OldPriceWrapper.infoTooltip"},infoTooltipTriggerLabel:{id:"tsbob-collection.OldPriceWrapper.infoTooltipTriggerLabel"}});var d=e.i(37458);let h=(0,a.applyStylingHoc)(d.default)(({styles:e,currentPrice:a,oldPrice:d,children:h,savingLabel:c,savingPostfix:p,showSavingPostfix:m,useAbsoluteValue:_=!1,showSaving:f=!0,showOldPrice:b=!0,isHorizontal:v,oldPriceProps:g,showInfo:y,infoTooltipComponent:T,infoTooltipProps:w,infoTooltipComponentProps:S})=>{let{formatMessage:x}=(0,l.useIntl)(),{oldPriceSettings:I}=(0,o.useSettings)(),P=(0,t.useMemo)(()=>d-a,[d,a]),O=m??!_,W=(0,t.useMemo)(()=>(_||I?.useMixedValues)&&!(0,s.default)(I?.minAbsoluteSaving)?P>=(I?.minAbsoluteSaving||0)?P:0:P,[_,I?.useMixedValues,P,I?.minAbsoluteSaving]),E=(0,t.useMemo)(()=>{let e=Math.floor(P/d*100);return _||(0,s.default)(I?.minPercentSaving)||e>=(I?.minPercentSaving||0)?e:0},[d,_,P,I?.minPercentSaving]);return!_&&E>0||_&&W>0||I?.useMixedValues&&E>0&&W>0?t.default.createElement("div",{className:(0,i.default)(e.root,v&&e["is-horizontal"])},t.default.createElement("div",{className:e.oldWrapper},b&&t.default.createElement("span",{className:e.old},t.default.createElement("span",{className:e.oldValue},t.default.createElement(r.default,{styles:e.oldPrice,amount:d,...g})),y&&t.default.createElement("span",{className:e.infoWrapper},t.default.createElement(n.default,{content:T?t.default.createElement(T,{priceDiff:P,...S}):x(u.infoTooltip),placement:"bottom",styles:e.tooltip,...w},t.default.createElement("span",{className:e.infoIcon,"aria-label":x(u.infoTooltipTriggerLabel)})))),f&&t.default.createElement("span",{className:e.oldSavedWrapper},t.default.createElement("span",{className:e.oldSavedLabel}
1,c||x(u.youSaveLabel)),_?t.default.createElement(t.default.Fragment,null,t.default.createElement(r.default,{styles:e.oldSavedPrice,amount:W}),O&&t.default.createElement("span",{className:e.oldSavedPostfix},p||x(u.perPerson))):t.default.createElement("span",{className:e.oldSavedPricePercent},E," %",O&&t.default.createElement("span",{className:e.oldSavedPostfix},p||x(u.perPerson))))),h||null):t.default.createElement(t.default.Fragment,null,h||null)});e.s(["default",0,h],845183)},229977,e=>{e.v({label:"Price-module-scss-module__RyZYXq__label",labelRight:"Price-module-scss-module__RyZYXq__labelRight",preposition:"Price-module-scss-module__RyZYXq__preposition","pricelg--amount":"Price-module-scss-module__RyZYXq__pricelg--amount"})},373013,e=>{"use strict";var t=e.i(391398),s=e.i(191788),i=e.i(116432),l=e.i(287786),a=e.i(399468);let n={GBP:"£"},o=(0,l.applyStylingHoc)(a.default)(({amount:e,currency:l,fractionDigits:a=2,currencyDisplay:o="symbol",styles:r,prefix:u,postfix:d,fallbackSigns:h=n,formatNumber:c,textOnly:p})=>{let m,{formatNumber:_}=(0,i.useIntl)(),f=e>0?Math.floor(e):Math.ceil(e),b=Math.abs(e-f),v=null,g=null,y=_(e,{style:"currency",currency:l,currencyDisplay:o,minimumFractionDigits:a,maximumFractionDigits:a}),T=_(e,{style:"decimal",currencyDisplay:o,minimumFractionDigits:a,maximumFractionDigits:a}),w=(0,s.useCallback)((e,t)=>c?c(e,{currency:l,...t}):_(e,t),[_,c,l]),S=y.indexOf(T);S>0?(m=y.substring(0,S),h&&h[m]&&(m=h[m]),v=(0,t.jsx)("span",{className:r.currency,children:m},"currency")):(m=y.substring(T.length),g=(0,t.jsx)("span",{className:r.currency,children:m},"currency"));let x=w(f,{maximumFractionDigits:0}),I=w(b,{maximumFractionDigits:a,minimumFractionDigits:a}).substring(1);return p?[S>0&&m,x,I,S<=0&&m].filter(Boolean).join("").trim():(0,t.jsxs)("span",{className:r.root,children:[u,v,(0,t.jsxs)("span",{className:r.amount,children:[(0,t.jsx)("span",{className:r.amountInteger,children:x}),(0,t.jsx)("span",{className:r.amountDecimal,children:I})]}),g,d]})});var r=e.i(419704),u=e.i(504730),d=e.i(229977);let h={CA$:"$"},c=({styles:e,size:t,amount:i,preposition:l,labelRight:a,precise:n,showExactIntAmount:d,label:c,fractionDigits:p,currency:m,formatNumber:_,textOnly:f})=>{let{currency:b,overridePricesLocale:v}=(0,u.useSettings)(),g=(0,s.useMemo)(()=>{let t=[];return c&&t.push(s.default.createElement("span",{key:"label",className:e.label},c)),l&&t.push(s.default.createElement("span",{key:"preposition",className:e.preposition},l)),t},[c,l,e.label,e.preposition]),y=(0,s.useMemo)(()=>{let t=[];return a&&t.push(s.default.createElement("span",{key:"labelRight",className:e.labelRight},a)),t},[a,e.labelRight]),T=(0,s.useMemo)(()=>s.default.createElement(o,{prefix:g,postfix:y,amount:n?i:Math.floor(i),fractionDigits:d&&Number.isInteger(i)?0:p||0,currency:m||b,className:t?e["price"+t]:e.price,fallbackSigns:h,formatNumber:_,textOnly:f}),[i,b,m,_,p,y,n,g,d,t,e,f]);return v?s.default.createElement(r.IntlProvider,{locale:v},T):T},p=(0,l.applyStylingHoc)(d.default)(c);e.s(["Price",0,c,"default",0,p],373013)},692076,e=>{e.v({bounce:"Gallery-module-scss-module__zlTswW__bounce",bullet:"Gallery-module-scss-module__zlTswW__bullet",bullets:"Gallery-module-scss-module__zlTswW__bullets",bulletsContainer:"Gallery-module-scss-module__zlTswW__bulletsContainer",content:"Gallery-module-scss-module__zlTswW__content",copyright:"Gallery-module-scss-module__zlTswW__copyright",description:"Gallery-module-scss-module__zlTswW__description",fadeIn:"Gallery-module-scss-module__zlTswW__fadeIn",fadeInDown:"Gallery-module-scss-module__zlTswW__fadeInDown",fadeInLeft:"Gallery-module-scss-module__zlTswW__fadeInLeft",fadeInRight:"Gallery-module-scss-module__zlTswW__fadeInRight",fadeInUp:"Gallery-module-scss-module__zlTswW__fadeInUp",fadeOut:"Gallery-module-scss-module__zlTswW__fadeOut",fadeOutDown:"Gallery-module-scss-module__zlTswW__fadeOutDown",fadeOutLeft:"Gallery-module-scss-module__zlTswW__fadeOutLeft",fadeOutRight:"Gallery-module-scss-module__zlTswW__fadeOutRight",fadeOutUp:"Gallery-module-scss-module__zlTswW__fadeOutUp","has-vertical-thumbnails":"Gallery-module-scss-module__zlTswW__has-vertical-thumbnails",header:"Gallery-module-scss-module__zlTswW__header",index:"Gallery-module-scss-module__zlTswW__index","is-active":"Gallery-module-scss-module__zlTswW__is-active","is-center":"Gallery-module-scss-module__zlTswW__is-center","is-video":"Gallery-module-scss-module__zlTswW__is-video","is-video-iframe":"Gallery-module-scss-module__zlTswW__is-video-iframe","is-video-youtube":"Gallery-module-scss-module__zlTswW__is-video-youtube",itemWrapper:"Gallery-module-scss-module__zlTswW__itemWrapper","marker-bouncing":"Gallery-module-scss-module__zlTswW__marker-bouncing",navBack:"Gallery-module-scss-module__zlTswW__navBack",navForward:"Gallery-module-scss-module__zlTswW__navForward",root:"Gallery-module-scss-module__zlTswW__root",rotate:"Gallery-module-scss-module__zlTswW__rotate",slide:"Gallery-module-scss-module__zlTswW__slide",slideImg:"Gallery-module-scss-module__zlTswW__slideImg",slideInOut:"Gallery-module-scss-module__zlTswW__slideInOut",slideVideo:"Gallery-module-scss-module__zlTswW__slideVideo",slideVideoControl:"Gallery-module-scss-module__zlTswW__slideVideoControl",slides:"Gallery-module-scss-module__zlTswW__slides",swipe:"Gallery-module-scss-module__zlTswW__swipe",thumbnail:"Gallery-module-scss-module__zlTswW__thumbnail",thumbnailImg:"Gallery-module-scss-module__zlTswW__thumbnailImg",thumbnailNavBack:"Gallery-module-scss-module__zlTswW__thumbnailNavBack",thumbnailNavForward:"Gallery-module-scss-module__zlTswW__thumbnailNavForward",thumbnailVideo:"Gallery-module-scss-module__zlTswW__thumbnailVideo",thumbnailVideoIndicator:"Gallery-module-scss-module__zlTswW__thumbnailVideoIndicator",thumbnails:"Gallery-module-scss-module__zlTswW__thumbnails",thumbnailsContainer:"Gallery-module-scss-module__zlTswW__thumbnailsContainer",thumbnailsContainerWrap:"Gallery-module-scss-module__zlTswW__thumbnailsContainerWrap",zoomIn:"Gallery-module-scss-module__zlTswW__zoomIn",zoomInDown:"Gallery-module-scss-module__zlTswW__zoomInDown"})},578954,e=>{"use strict";var t=e.i(391398),s=e.i(191788),i=e.i(244606),l=e.i(272043),a=e.i(304900),n=e.i(287786),o=e.i(194117),r=e.i(554317);let u=(0,e.i(50996).defineMessages)({previous:{id:"tsbob.Gallery.previous"},next:{id:"tsbob.Gallery.next"},previousThumbnails:{id:"tsbob.Gallery.previousThumbnails"},nextThumbnails:{id:"tsbob.Gallery.nextThumbnails"},play:{id:"tsbob.Gallery.play"},pause:{id:"tsbob.Gallery.pause"}});var d=e.i(692076);let h=(0,s.lazy)(()=>e.A(74015)),c={playerVars:{mute:1,controls:1}},p="video",m="video_iframe",_="video_youtube",f=[-1,0,2];function b(...e){let t=function(e,t){let s,i,l,a=null,n=0,o=function(){n=new Date().getTime(),a=null,l=e.apply(s,i||[]),a||(s=i=null)};return(...r)=>{let u=new Date().getTime(),d=t-(u-n);return s=this,i=r,d<=0||d>t?(a&&(clearTimeout(a),a=null),n=u,l=e.apply(s,i),a||(s=i=null)):a||(a=setTimeout(o,d)),l}}(...e);return e=>e?(e.persist(),t(e)):t()}class v extends s.PureComponent{static getDerivedStateFromProps(e,t){return e.updateCurrentIndexFromProps&&e.startIndex!==t.currentIndex?{currentIndex:e.startIndex}:null}constructor(e){super(e),this._handleResize=()=>{this._imageGallery&&this.setState({galleryWidth:this._imageGallery.offsetWidth,galleryHeight:this._imageGallery.offsetHeight,thumbnailContainerHeight:this._thumbnailsContainer?this._thumbnailsContainer.offsetHeight:0})},this._handleKeyDown=e=>{switch(parseInt(e.keyCode||e.which||0,10)){case 37:this._canSlideLeft()&&!this._intervalId&&this._slideLeft();break;case 39:this._canSlideRight()&&!this._intervalId&&this._slideRight()}},this._handleMouseOverThumbnails=e=>{this.props.slideOnThumbnailHover&&(this.setState({hovering:!0}),this._thumbnailTimer&&(clearTimeout(this._thumbnailTimer),this._thumbnailTimer=null),this._thumbnailTimer=setTimeout(()=>{this.slideToIndex(e)},this._thumbnailDelay))}
1,this._handleMouseLeaveThumbnails=()=>{this._thumbnailTimer&&(clearTimeout(this._thumbnailTimer),this._thumbnailTimer=null,!0===this.props.autoPlay&&this.play(!1)),this.setState({hovering:!1})},this._handleMouseOver=()=>{this.setState({hovering:!0})},this._handleMouseLeave=()=>{this.setState({hovering:!1})},this._handleImageError=e=>{let{styles:t,defaultImage:s}=this.props;s&&-1===e.target.src.indexOf(s)&&(e.target.src=s,t.defaultImage&&e.target.classList.add(t.defaultImage))},this._handleSwiped=(e,t,s,i)=>{this.setState({isFlick:i})},this._handleSwipedLeft=this._handleSwipedTo.bind(this,1),this._handleSwipedRight=this._handleSwipedTo.bind(this,-1),this._slideLeft=b(e=>{this.slideToIndex(this.state.currentIndex-1,e)},500,!0),this._slideRight=b(e=>{this.slideToIndex(this.state.currentIndex+1,e)},500,!0),this._scrollThumbsLeft=b(e=>{e.preventDefault();let t=this.props.verticalThumbnails?this._getThumbnailHeight():this._getThumbnailWidth();this.state.thumbsScrollOffset+t<0?this._setThumbsScrollOffset(this.state.thumbsScrollOffset+t):0===this.state.thumbsScrollOffset&&this.props.infinite?this._setThumbsScrollOffset(this._getMaxThumbsOffset()):this._setThumbsScrollOffset(0)},500,!0),this._scrollThumbsRight=b(e=>{e.preventDefault();let t=this.props.verticalThumbnails?this._getThumbnailHeight():this._getThumbnailWidth(),s=this._getMaxThumbsOffset();this.state.thumbsScrollOffset-t>s?this._setThumbsScrollOffset(this.state.thumbsScrollOffset-t):this.state.thumbsScrollOffset===s&&this.props.infinite?this._setThumbsScrollOffset(0):this._setThumbsScrollOffset(s)},500,!0),this.video={},this.initYouTubeIframe=e=>{this.setState(({youTubeIframes:t})=>({youTubeIframes:new Set([...t||[],e.target])}))},this._renderItem=(e,i)=>{let a,{styles:n,ImageWrapper:d,imageWrapperProps:f,imageContainerStyles:b,useImagesAsBackground:v,customPlayButton:g,customPlayButtonProps:y,showAtOnce:T,showOuterDescription:w,intl:{formatMessage:S}}=this.props,{playingVideoIndices:x,currentIndex:I}=this.state,P=(this.props.onImageError||this._handleImageError).bind(this);switch(e.type){case p:a=(0,t.jsxs)("div",{className:n.slideVideoContainer,children:[(0,t.jsx)(r.default,{className:n.slideVideo,src:e.original,poster:e.poster,controls:!0,muted:!0,controlsref:e=>this.addVideoRef(e,i),onClick:g?()=>this.handlePlayButtonClick(i):void 0,children:(0,t.jsx)("source",{src:e.original})}),g&&(0,t.jsx)(o.default,{className:(0,l.default)(n.slideVideoControl,{play:-1===x.indexOf(i),pause:-1!==x.indexOf(i)}),...y,onClick:()=>this.handlePlayButtonClick(i),"aria-label":S(-1===x.indexOf(i)?u.play:u.pause)})]});break;case m:a=1===T&&i===I?(0,t.jsx)("iframe",{src:e.original,title:e.originalAlt}):(0,t.jsx)("img",{src:e.thumbnail,alt:e.originalAlt});break;case _:a=(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("span",{}),children:(0,t.jsx)(h,{videoId:e.original,onReady:this.initYouTubeIframe,opts:c})});break;default:a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{className:n.slideImg,src:e.original,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,onLoad:this.props.onImageLoad,onError:P}),e.copyright&&(0,t.jsx)("span",{className:n.copyright,children:e.copyright})]})}let O={...f,imageIndex:i,src:e.original,alt:e.originalAlt,size:e.size,type:e.type,copyright:e.copyright,description:e.description},W=d?(0,t.jsx)(d,{...O,children:a}):a,E=v&&b?{...b,backgroundImage:"url("+e.original.replace(/ /g,"%20")+")"}:{};return(0,t.jsxs)("div",{className:(0,l.default)(n.itemWrapper,{[n["is-video"]]:e.type===p,[n["is-video-iframe"]]:e.type===m,[n["is-video-youtube"]]:e.type===_}),style:E,children:[e.header&&(0,t.jsx)("span",{className:n.header,children:e.header}),!v&&W,v&&e.copyright&&(0,t.jsx)("span",{className:n.copyright,children:e.copyright}),!w&&e.description&&(0,t.jsx)("span",{className:n.description,children:e.description})]},i)},this._thumbnailDelay=300,this.state={currentIndex:e.startIndex,thumbsScrollOffset:0,offsetPercentage:0,galleryWidth:0,thumbnailContainerHeight:0,playingVideoIndices:[],youTubeIframes:null}}componentDidMount(){setTimeout(()=>this._handleResize(),300),this.props.autoPlay&&this.play(),this.props.disableArrowKeys||window.addEventListener("keydown",this._handleKeyDown),window.addEventListener("resize",this._handleResize)}componentDidUpdate(e,t){this.props.showThumbnails&&(t.galleryWidth!==this.state.galleryWidth||t.galleryHeight!==this.state.galleryHeight||e.showThumbnails!==this.props.showThumbnails)&&this._updateThumbsScrollOffset(),t.currentIndex!==this.state.currentIndex&&(this.props.onSlide&&this.props.onSlide(this.state.currentIndex),this.props.showThumbnails&&this._updateThumbsScrollOffset())}componentWillUnmount(){for(let e in this.props.disableArrowKeys||window.removeEventListener("keydown",this._handleKeyDown),window.removeEventListener("resize",this._handleResize),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this.video)if(Object.prototype.hasOwnProperty.call(this.video,e)){let t=()=>this.updatePlayingVideosState(e);this.video[e].removeEventListener("play",t),this.video[e].removeEventListener("pause",t)}}getCurrentIndex(){return this.state.currentIndex}play(e=!0){if(this._intervalId)return;let{slideInterval:t}=this.props;this._intervalId=setInterval(()=>{this.state.hovering||(this.props.infinite||this._canSlideRight()?this.slideToIndex(this.state.currentIndex+1):this.pause())},t>500?t:500),this.props.onPlay&&e&&this.props.onPlay(this.state.currentIndex)}pause(e=!0){this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this.props.onPause&&e&&this.props.onPause(this.state.currentIndex)}fullScreen(){if(this._imageGallery){let e=this._imageGallery;"requestFullscreen"in e?e.requestFullscreen():"requestFullscreen"in e?e.msRequestFullscreen():"mozRequestFullScreen"in e?e.mozRequestFullScreen():"webkitRequestFullscreen"in e&&e.webkitRequestFullscreen()}}slideToIndex(e,t){t&&(t.preventDefault(),this._intervalId&&(this.pause(!1),this.play(!1)));let s=this._getSlidesCount()-1,i=e;e<0?i=s:e>s&&(i=0),this.setState({previousIndex:this.state.currentIndex,currentIndex:i,offsetPercentage:0}),this.props.onSlideToIndex&&this.props.onSlideToIndex(i);let{youTubeIframes:l}=this.state;
1l&&l.size&&l.forEach(e=>!f.includes(e.getPlayerState())&&e.pauseVideo())}_handleSwipedTo(e){let t=this.state.currentIndex+e;e<0?this._canSlideLeft()||(t=this.state.currentIndex):this._canSlideRight()||(t=this.state.currentIndex),this.slideToIndex(t)}_canNavigate(){return this._getSlidesCount()>=2}_canSlideLeft(){return this.props.infinite||this.state.currentIndex>0}_canSlideRight(){return this.props.infinite||this.state.currentIndex<this._getSlidesCount()-1}_canScrollThumbs(){let e=this._thumbnails&&(this.state.galleryWidth<this._thumbnails.scrollWidth||this._thumbnails.offsetWidth<this._thumbnails.scrollWidth),t=this.props.verticalThumbnails?this._thumbnails&&this.state.thumbnailContainerHeight<this._thumbnails.scrollHeight:e;return this.props.showThumbnails&&this.props.showThumbNav&&t}_canScrollThumbsLeft(){return this.props.showThumbnails&&(this.props.infinite||this.state.thumbsScrollOffset<0)}_canScrollThumbsRight(){return this.props.showThumbnails&&(this.props.infinite||this.state.thumbsScrollOffset>this._getMaxThumbsOffset())}_updateThumbsScrollOffset(){if(0===this.state.currentIndex)this._setThumbsScrollOffset(0);else{let e=this.props.verticalThumbnails?this._getVerticalThumbCount():1,t=this.props.verticalThumbnails?this.state.thumbnailContainerHeight/2:(this._thumbnails?this._thumbnails.offsetWidth:this.state.galleryWidth)/2,s=this._getMaxThumbsOffset(),i=this.state.currentIndex/e,l=Math.max(t-(i-i%1)*(this.props.verticalThumbnails?this._getThumbnailHeight():this._getThumbnailWidth()),s);this._setThumbsScrollOffset(l<0?l:0)}}_setThumbsScrollOffset(e){this.setState({thumbsScrollOffset:e})}_getVerticalThumbCount(){return this._thumbnails&&this._firstThumbnail?Math.round(this._thumbnails.offsetWidth/this._firstThumbnail.offsetWidth):0}_getMaxThumbsOffset(){return this._thumbnails?this.props.verticalThumbnails?this.state.thumbnailContainerHeight-this._thumbnails.scrollHeight:this._thumbnails.offsetWidth-this._thumbnails.scrollWidth:0}_getThumbnailWidth(){return this._thumbnails?this._thumbnails.scrollWidth/this._thumbnails.children.length:0}_getThumbnailHeight(){return this._firstThumbnail?this._firstThumbnail.offsetHeight:0}_getSlidesCount(){return Math.ceil(this.props.items.length/this.props.showAtOnce)}_getAlignmentClassName(e){let{styles:t,infinite:s}=this.props,i=t["is-left"],l=t["is-center"],a=t["is-right"],{currentIndex:n}=this.state,o="";switch(e){case n-1:o=` ${i}`;break;case n:o=` ${l}`;break;case n+1:o=` ${a}`}let r=this._getSlidesCount();return r>2&&s&&(0===e&&n===r-1?o=` ${a}`:e===r-1&&0===n&&(o=` ${i}`)),o}_getSlideStyle(e){let{currentIndex:t,offsetPercentage:s}=this.state,i=this._getSlidesCount(),l=-100*t+100*e+s,a=1;this.props.infinite&&i>2&&(0===t&&e===i-1?l=-100+s:t===i-1&&0===e&&(l=100+s)),e===t?a=3:e===this.state.previousIndex&&(a=2);let n=`translate3d(${l}%, 0, 0)`;return{WebkitTransform:n,MozTransform:n,msTransform:n,OTransform:n,transform:n,zIndex:a}}_getThumbnailStyle(){let e=this.props.verticalThumbnails?`translate3d(0, ${this.state.thumbsScrollOffset}px, 0)`:`translate3d(${this.state.thumbsScrollOffset}px, 0, 0)`;return{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}addVideoRef(e,t){let s=()=>this.updatePlayingVideosState(t);e?(this.video[t]=e,this.video[t].addEventListener("play",s),this.video[t].addEventListener("pause",s)):(this.video[t].removeEventListener("play",s),this.video[t].removeEventListener("pause",s),delete this.video[t])}updatePlayingVideosState(e){this.video[e]?this.video[e].paused?this.removePlayingVideoIndex(e):this.addPlayingVideoIndex(e):this.removePlayingVideoIndex(e)}addPlayingVideoIndex(e){-1===this.state.playingVideoIndices.indexOf(e)&&this.setState({playingVideoIndices:this.state.playingVideoIndices.concat([e])})}removePlayingVideoIndex(e){-1!==this.state.playingVideoIndices.indexOf(e)&&this.setState({playingVideoIndices:this.state.playingVideoIndices.filter(t=>t!==e)})}handlePlayButtonClick(e){this.video[e]&&(this.video[e].paused?this.video[e].play():this.video[e].pause())}renderThumbnail(e,i){let l,{ImageWrapper:a,imageWrapperProps:n,thumbnailVideoIndicatorProps:r,styles:d,renderThumbnail:m,showCopyrightOnThumb:f,intl:{formatMessage:b}}=this.props;if(m)return m(e,i,this.props);let v=this.props.onThumbnailError||this._handleImageError,g={...n,imageIndex:i};switch(e.type){case p:l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{className:d.thumbnailVideo,src:e.thumbnail,alt:e.originalAlt}),(0,t.jsx)(o.default,{...r,className:d.thumbnailVideoIndicator,"aria-label":b(u.play)})]});break;case _:l=(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("span",{}),children:(0,t.jsx)(h,{videoId:e.original,className:d.thumbnailVideoYouTube,opts:c})});break;default:l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{className:d.thumbnailImg,src:e.thumbnail,alt:e.thumbnailAlt,onError:(...e)=>v.apply(this,e)}),f&&e.copyright&&(0,t.jsx)("span",{className:d.copyright,children:e.copyright})]})}return a?(0,t.jsx)(a,{...g,children:l}):l}render(){let{currentIndex:e}=this.state,{styles:s,indexSeparator:a,items:n,lazyLoad:o,onClick:r,onThumbnailClick:d,showBullets:h,showIndex:c,showNav:m,showThumbnails:f,slideOnThumbnailClick:b,intl:{formatMessage:v},showOuterDescription:g}=this.props,y=this._getThumbnailStyle(),T=[],w=[],S=[],x=0;return n.map((i,a)=>
1{if(a%this.props.showAtOnce==0){let e=this._getAlignmentClassName(x),u=[],d=a;for(;d<a+this.props.showAtOnce&&d<n.length;d++){let e=n[d].renderItem||this.props.renderItem||this._renderItem;u.push(e(n[d],d))}let h=(0,t.jsx)("div",{style:Object.assign(this._getSlideStyle(x),this.state.style),className:(0,l.default)(s.slide,i.originalClass,e),onClick:r,children:u},x++);o?e&&T.push(h):T.push(h)}let u=0===a?{ref:e=>this._firstThumbnail=e}:{};f&&w.push((0,t.jsx)("button",{onMouseOver:()=>this._handleMouseOverThumbnails(a),onMouseLeave:()=>this._handleMouseLeaveThumbnails(a),className:(0,l.default)(s.thumbnail,i.thumbnailClass,{[s["is-active"]]:e===a,[s["is-video"]]:i.type===p,[s["is-video-youtube"]]:i.type===_}),onClick:e=>{b&&this.slideToIndex(a,e),d&&d(a)},type:"button",...u,children:this.renderThumbnail(i,a)},a)),h&&S.push((0,t.jsx)("li",{className:(0,l.default)(s.bullet,{[s["is-active"]]:e===a}),onClick:e=>this.slideToIndex(a,e)},a))}),(0,t.jsxs)("div",{ref:e=>{this._imageGallery=e},className:(0,l.default)(s.root,{[s["has-vertical-thumbnails"]]:this.props.verticalThumbnails}),children:[g&&n[this.state.currentIndex].description&&(0,t.jsx)("span",{className:s.description,children:n[this.state.currentIndex].description}),(0,t.jsxs)("div",{onMouseOver:this._handleMouseOver,onMouseLeave:this._handleMouseLeave,className:s.content,children:[this._canNavigate()?[m&&(0,t.jsxs)("div",{className:s.nav,children:[this._canSlideLeft()&&(0,t.jsx)("button",{className:s.navBack,onClick:this._slideLeft,"aria-label":v(u.previous)}),this._canSlideRight()&&(0,t.jsx)("button",{className:s.navForward,onClick:this._slideRight,"aria-label":v(u.next)})]},"navigation"),(0,t.jsx)(i.default,{className:s.swipe,delta:1,onSwiped:this._handleSwiped,onSwipedLeft:this._handleSwipedLeft,onSwipedRight:this._handleSwipedRight,children:(0,t.jsx)("div",{className:s.slides,children:T})},"swipeable")]:(0,t.jsx)("div",{className:s.slides,children:T}),h&&(0,t.jsx)("div",{className:s.bulletsContainer,children:(0,t.jsx)("ul",{className:s.bullets,children:S})}),c&&(0,t.jsxs)("div",{className:s.index,children:[(0,t.jsx)("span",{className:s.indexCurrent,children:this.state.currentIndex+1}),(0,t.jsx)("span",{className:s.separator,children:a}),(0,t.jsx)("span",{className:s.total,children:this._getSlidesCount()})]})]}),this.props.showThumbnails&&(0,t.jsxs)("div",{ref:e=>this._thumbnailsContainer=e,className:s.thumbnails,children:[this._canScrollThumbs()&&(0,t.jsxs)("div",{className:s.thumbnailsNav,children:[this._canScrollThumbsLeft()&&(0,t.jsx)("div",{className:s.thumbnailNavBackContainer,children:(0,t.jsx)("button",{className:s.thumbnailNavBack,onClick:this._scrollThumbsLeft,"aria-label":v(u.previousThumbnails)})}),this._canScrollThumbsRight()&&(0,t.jsx)("div",{className:s.thumbnailNavForwardContainer,children:(0,t.jsx)("button",{className:s.thumbnailNavForward,onClick:this._scrollThumbsRight,"aria-label":v(u.nextThumbnails)})})]},"nav"),(0,t.jsx)("div",{className:s.thumbnailsContainerWrap,children:(0,t.jsx)("div",{ref:e=>{this._thumbnails=e},className:s.thumbnailsContainer,style:y,children:w})})]})]})}}v.defaultProps={items:[],showNav:!0,showThumbNav:!0,showCopyrightOnThumb:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showAtOnce:1,verticalThumbnails:!1,slideOnThumbnailClick:!0,slideOnThumbnailHover:!1,disableThumbnailScroll:!1,useImagesAsBackground:!1,disableArrowKeys:!1,indexSeparator:" / ",startIndex:0,slideInterval:3e3,updateCurrentIndexFromProps:!1,customPlayButton:!1,thumbnailVideoIndicatorProps:{color:"white",icon:"icon-play",rounded:!0},customPlayButtonProps:{color:"white",icon:"icon-play",size:"lg",rounded:!0},styles:{}};let g=(0,a.injectIntl)((0,n.applyStylingHoc)(d.default)(v));e.s(["VIDEO_IFRAME_TYPE",0,m,"VIDEO_YOUTUBE_TYPE",0,_,"default",0,g],578954)},399468,e=>{e.v({})},554317,e=>{"use strict";var t=e.i(391398),s=e.i(191788);let i=s.default.forwardRef(function({muted:e=!0,...i},l){let a=(0,s.useRef)(null),n=l||a;return(0,s.useEffect)(()=>{let t=null==n?void 0:n.current;t&&(t.muted=e,t.defaultMuted=e)},[]),(0,t.jsx)("video",{ref:n,...i,muted:e})});e.s(["default",0,i])}
1,867367,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i={update:function(){if("u">typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),s=function(){};window.addEventListener("testPassiveEventSupport",s,t),window.removeEventListener("testPassiveEventSupport",s,t),i.hasSupport=e}}};i.update(),s.default=i},244606,(e,t,s)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},l=e.r(191788),a=e.r(691567),n=e.r(867367).default;function o(){return{x:null,y:null,swiping:!1,start:0}}function r(e,t){if(0===t)return e;var s=e.x,i=e.y,l=Math.PI/180*t;return{x:s*Math.cos(l)+i*Math.sin(l),y:i*Math.cos(l)-s*Math.sin(l)}}function u(e,t){var s=r("changedTouches"in e?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY},t.rotationAngle),i=s.x,l=s.y,a=t.x-i,n=t.y-l,o=Math.abs(a),u=Math.abs(n),d=Math.sqrt(o*o+u*u)/(Date.now()-t.start);return{deltaX:a,deltaY:n,absX:o,absY:u,velocity:d}}var d=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(s,i){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var l=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,e.call(this,s,i));return l.swipeable=o(),l.eventStart=l.eventStart.bind(l),l.eventMove=l.eventMove.bind(l),l.eventEnd=l.eventEnd.bind(l),l.mouseDown=l.mouseDown.bind(l),l.mouseMove=l.mouseMove.bind(l),l.mouseUp=l.mouseUp.bind(l),l.cleanupMouseListeners=l.cleanupMouseListeners.bind(l),l.setupMouseListeners=l.setupMouseListeners.bind(l),l.elementRef=l.elementRef.bind(l),l.setupTouchmoveEvent=l.setupTouchmoveEvent.bind(l),l.cleanupTouchmoveEvent=l.cleanupTouchmoveEvent.bind(l),l.hasPassiveSupport=n.hasSupport,l}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),t.prototype.componentDidMount=function(){this.props.preventDefaultTouchmoveEvent&&this.setupTouchmoveEvent()},t.prototype.componentDidUpdate=function(e){e.disabled!==this.props.disabled&&(this.cleanupMouseListeners(),this.swipeable=o()),e.preventDefaultTouchmoveEvent&&!this.props.preventDefaultTouchmoveEvent?this.cleanupTouchmoveEvent():!e.preventDefaultTouchmoveEvent&&this.props.preventDefaultTouchmoveEvent&&this.setupTouchmoveEvent()},t.prototype.componentWillUnmount=function(){this.cleanupMouseListeners()},t.prototype.setupTouchmoveEvent=function(){this.element&&this.hasPassiveSupport&&this.element.addEventListener("touchmove",this.eventMove,{passive:!1})},t.prototype.setupMouseListeners=function(){document.addEventListener("mousemove",this.mouseMove),document.addEventListener("mouseup",this.mouseUp)},t.prototype.cleanupTouchmoveEvent=function(){this.element&&this.hasPassiveSupport&&this.element.removeEventListener("touchmove",this.eventMove,{passive:!1})},t.prototype.cleanupMouseListeners=function(){document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("mouseup",this.mouseUp)},t.prototype.mouseDown=function(e){this.props.trackMouse&&"mousedown"===e.type&&("function"==typeof this.props.onMouseDown&&this.props.onMouseDown(e),this.setupMouseListeners(),this.eventStart(e))},t.prototype.mouseMove=function(e){this.eventMove(e)},t.prototype.mouseUp=function(e){this.cleanupMouseListeners(),this.eventEnd(e)},t.prototype.eventStart=function(e){if(!e.touches||!(e.touches.length>1)){var t=this.props.rotationAngle,s=r("touches"in e?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY},t),i=s.x,l=s.y;this.props.stopPropagation&&e.stopPropagation(),this.swipeable={start:Date.now(),x:i,y:l,swiping:!1,rotationAngle:t}}},t.prototype.eventMove=function(e){var t=this.props,s=t.stopPropagation,i=t.delta,l=t.onSwiping,a=t.onSwiped,n=t.onSwipingLeft,o=t.onSwipedLeft,r=t.onSwipingRight,d=t.onSwipedRight,h=t.onSwipingUp,c=t.onSwipedUp,p=t.onSwipingDown,m=t.onSwipedDown,_=t.preventDefaultTouchmoveEvent;if(this.swipeable.x&&this.swipeable.y&&(!e.touches||!(e.touches.length>1))){var f=u(e,this.swipeable);if(!(f.absX<i)||!(f.absY<i)||this.swipeable.swiping){s&&e.stopPropagation(),l&&l(e,f.deltaX,f.deltaY,f.absX,f.absY,f.velocity);var b=!1;(l||a)&&(b=!0),f.absX>f.absY?f.deltaX>0?(n||o)&&(n&&n(e,f.absX),b=!0):(r||d)&&(r&&r(e,f.absX),b=!0):f.deltaY>0?(h||c)&&(h&&h(e,f.absY),b=!0):(p||m)&&(p&&p(e,f.absY),b=!0),this.swipeable.swiping=!0,b&&_&&e.preventDefault()}}},t.prototype.eventEnd=function(e){var t=this.props,s=t.stopPropagation,i=t.flickThreshold,l=t.onSwiped,a=t.onSwipedLeft,n=t.onSwipedRight,r=t.onSwipedUp,d=t.onSwipedDown,h=t.onTap;if(this.swipeable.swiping){var c=u(e,this.swipeable);s&&e.stopPropagation();var p=c.velocity>i;l&&l(e,c.deltaX,c.deltaY,p,c.velocity),c.absX>c.absY?c.deltaX>0?a&&a(e,c.deltaX,p):n&&n(e,c.deltaX,p):c.deltaY>0?r&&r(e,c.deltaY,p):d&&d(e,c.deltaY,p)}else h&&h(e);this.swipeable=o()},t.prototype.elementRef=function(e){this.element=e,this.props.innerRef&&this.props.innerRef(e)},t.prototype.render=function(){var e=i({},this.props);return this.props.disabled||(e.onTouchStart=this.eventStart,this.props.preventDefaultTouchmoveEvent&&this.hasPassiveSupport||(e.onTouchMove=this.eventMove),e.onTouchEnd=this.eventEnd,e.onMouseDown=this.mouseDown),e.ref=this.elementRef,delete e.onSwiped,delete e.onSwiping,delete e.onSwipingUp,delete e.onSwipingRight,delete e.onSwipingDown,delete e.onSwipingLeft,delete e.onSwipedUp,delete e.onSwipedRight,delete e.onSwipedDown,delete e.onSwipedLeft,delete e.onTap,delete e.flickThreshold,delete e.delta,delete e.preventDefaultTouchmoveEvent,delete e.stopPropagation,delete e.nodeName,delete e.children,delete e.trackMouse,delete e.disabled,delete e.innerRef,delete e.rotationAngle,l.createElement(this.props.nodeName,e,this.props.children)},t}(l.Component);d.propTypes={onSwiped:a.func,onSwiping:a.func,onSwipingUp:a.func,onSwipingRight:a.func,onSwipingDown:a.func,onSwipingLeft:a.func,onSwipedUp:a.func,onSwipedRight:a.func,onSwipedDown:a.func,onSwipedLeft:a.func,onTap:a.func,flickThreshold:a.number,delta:a.number,preventDefaultTouchmoveEvent:a.bool,stopPropagation:a.bool,nodeName:a.string,trackMouse:a.bool,disabled:a.bool,innerRef:a.func,children:a.node,rotationAngle:a.number},d.defaultProps={flickThreshold:.6,delta:10,preventDefaultTouchmoveEvent:!1,stopPropagation:!1,nodeName:"div",disabled:!1,rotationAngle:0},t.exports=d},419704,e=>{"use strict";var t=e.i(179052);e.s(["IntlProvider",()=>t.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.