1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aa94c4f7-210a-511e-b22b-977ca6179df5")}catch(e){}}(); 3(self.rspackChunk_holisto_web_client=self.rspackChunk_holisto_web_client||[]).push([[1354],{71905(e,t,a){a.d(t,{GalleryFullScreen:()=>ez});var r=a(77527),i=a(60175),n=a(11870),s=a(58383),l=a(79227),o=a(31961),c=a(64195),d=a(56701),u=a(75553),p=a(67409),g=a(91244),v=a(63443),m=a(33086),x=a(49372),h=a(98738),f=a(34355),y=a(21511),b=a(63436),w=a(54932),j=a(88923),_=a(96015);let S=e=>{if("string"!=typeof e)return;let t=e.trim();return t.length>0?t:void 0},k=(e,t)=>{let a=e?.[t];return a?"string"==typeof a?{sourceUrl:S(a),sourceDescription:void 0}:{sourceUrl:S(a.url),sourceDescription:S(a.description)}:{sourceUrl:void 0,sourceDescription:void 0}},{blockName:A,buildElementName:N,buildElementSelector:I}=(0,b.f)("gallery-full-screen-counter-source"),C=({images:e,imagesSources:t})=>{let{currentIndex:a}=(0,f.mp)(),{t:i}=(0,j.Bd)(),n=e[a],s=n?.sourceInfo?.sources?.filter(e=>"string"==typeof e)??[],l=!!s?.length;return(0,r.jsxs)(R,{className:A,"data-testid":"image-source-info",children:[(0,r.jsx)(w.A,{variant:"caption1",className:N("source-text"),children:i(_.tF.imagesAreDisplayed)}),(0,r.jsxs)(y.A,{className:N("source-list"),"data-testid":"image-source-list",children:[l&&(0,r.jsx)(w.A,{variant:"caption1",className:N("source-text"),children:i(_.tF.source)}),s?.map((e,a)=>{let{sourceUrl:i}=k(t,e);return(0,r.jsxs)(y.A,{className:N("source"),children:[i?(0,r.jsx)(m.aES,{className:N("source-link"),label:e,onClick:()=>window.open(i,"_blank")}):(0,r.jsx)(w.A,{variant:"caption1",className:N("source-text"),children:e}),a<s.length-1&&(0,r.jsx)(w.A,{variant:"caption1",className:N("source-text"),children:", "})]},e)})]})]})},R=(0,v.A)(y.A)(({theme:e})=>({flexDirection:"row",gap:e.vars.spacings.xs,[I("source-text")]:{color:e.colors.text.neutral["6"]},[I("source-link")]:{color:e.colors.text.primary,...e.typography.caption1,height:"auto"},[I("source-list")]:{flexDirection:"row",gap:e.vars.spacings.xs,alignSelf:"center",textAlign:"center"},[I("source")]:{flexDirection:"row"},[(0,x.mobileMediaQuery)(e)]:{flexDirection:"column",gap:e.vars.spacings.xxs,[I("source-list")]:{gap:e.vars.spacings.xxs}}})),{buildMixedBlockName:E,buildElementSelector:D,buildElementName:M}=(0,b.f)("gallery-full-screen-counter"),W=({"counter-plugin":{images:e,imagesSources:t},className:a})=>{let{slides:i,currentIndex:n}=(0,f.mp)(),s=i.length,l=!!s,o=`${n+1} / ${s}`,c=E(a);return l?(0,r.jsx)($,{className:c,children:(0,r.jsx)("span",{className:M("label"),children:(0,r.jsx)(m.bFr,{text:o,sourceText:(0,r.jsx)(C,{images:e,imagesSources:t}),withSource:!0})})}):null},$=(0,v.A)(y.A)(({theme:e})=>({width:"100%",position:"fixed",bottom:e.spacings.l,[D("label")]:{marginLeft:"auto",marginRight:"auto",position:"initial"}})),F={fade:0,swipe:0},z={fade:250,swipe:250},P=(0,x.getImgPath)("hotel-image-fallback-1.jpg"),H=({addChild:e})=>{e(h.Kv,(0,f.Fi)(h.Jy,W))},L=(0,i.memo)(({closeGallery:e,slides:t,imageNumber:a,handleIndexChange:n,imagesSources:l,images:o})=>{let c=(0,x.useMobileMediaQuery)(),d=(0,g.A)(),u=(0,s._P)("mbp-image-source-info"),p=(0,i.useMemo)(()=>document.getElementById("root"),[]),[v,h]=(0,i.useState)(null),f=()=>h("key"),y=()=>h("swipe");return(0,r.jsx)("div",{onKeyUp:f,onKeyDown:f,onTouchMove:y,onMouseUp:()=>h("click"),onMouseDown:y,children:(0,r.jsx)(B,{open:!0,close:()=>e(v),slides:t,plugins:[H],portal:{root:p},animation:c?F:z,index:a,render:{iconError:()=>(0,r.jsx)(m.rVz,{src:P})},"counter-plugin":{imagesSources:l,images:o},on:{view:e=>n(e,v)}
3,styles:{container:{background:u?d.vars.colors.background.neutral[0]:void 0},icon:{color:u?d.vars.colors.background.neutral[9]:void 0,boxShadow:"none"},slide:{maxHeight:u&&!c?`calc(100% - ${d.vars.spacings["8xl"]})`:void 0},button:{filter:u?"none":void 0}}})})}),B=(0,v.A)(f.Ay)(({theme:e})=>({"& .yarl__slide_image":{minWidth:"max(100%, 50vw)",minHeight:"max(100%, 50vh)"},"& .yarl__button:focus-visible svg":{outline:e.vars.outlines.m,outlineRadius:e.vars.cornerRadiuses.button,outlineColor:e.vars.colors.outline.primary.focus}}));var O=a(6940),T=a(50923),U=a(7917),K=a(89481);let Q=(0,v.A)(w.A)(({theme:e})=>({color:e.vars.colors.text.neutral[8],textAlign:"center",pointerEvents:"auto",whiteSpace:"nowrap"})),G=({sourceName:e,sourceUrl:t,tooltipDescription:a,showTrailingComma:i})=>(0,r.jsxs)(q,{children:[t?(0,r.jsx)(J,{href:t,target:"_blank",rel:"noopener noreferrer",children:e}):(0,r.jsx)(V,{variant:"caption1",children:e}),!!a&&(0,r.jsx)(X,{"data-testid":"gallery-full-screen-v2-source-description-tooltip",children:(0,r.jsx)(m.NpC,{title:null,description:a,inline:!0})}),i&&(0,r.jsx)(V,{variant:"caption1",children:", "})]}),q=(0,v.A)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.vars.spacings.xxs})),V=(0,v.A)(w.A)(({theme:e})=>({color:e.vars.colors.text.neutral[6],whiteSpace:"nowrap"})),J=(0,v.A)("a")(({theme:e})=>({color:e.vars.colors.text.primary.interactive,...e.typography.caption1,textDecoration:"underline",whiteSpace:"nowrap"})),X=(0,v.A)("span")({display:"inline-flex",alignItems:"center"}),Y=({fallbackSourceDescription:e,imagesSources:t,sourceNames:a})=>(0,r.jsx)(r.Fragment,{children:a.map((i,n)=>{let{sourceUrl:s,sourceDescription:l}=k(t,i);return(0,r.jsx)(G,{sourceName:i,sourceUrl:s,tooltipDescription:l??e,showTrailingComma:n<a.length-1},i)})}),Z=({sourceLabel:e})=>(0,r.jsx)(ee,{variant:"caption1",children:e}),ee=(0,v.A)(w.A)(({theme:e})=>({color:e.vars.colors.text.neutral[6],whiteSpace:"nowrap"})),et=(0,v.A)(w.A)(({theme:e})=>({color:e.vars.colors.text.neutral[6],textAlign:"center",whiteSpace:"nowrap",pointerEvents:"auto"})),ea=({anchor:e,className:t,counterLabel:a,fallbackSourceDescription:i,imagesSources:n,photoCaptionLabel:s,sourceLabel:l,sourceNames:o})=>{let c=0===o.length;return(0,r.jsxs)(er,{className:t,anchor:e,children:[(0,r.jsx)(Q,{variant:"caption1Semibold","data-testid":"gallery-full-screen-v2-counter",children:a}),c?(0,r.jsx)(et,{variant:"caption1","data-testid":"gallery-full-screen-v2-photo-caption",children:s}):(0,r.jsxs)(ei,{"data-testid":"gallery-full-screen-v2-source",children:[(0,r.jsx)(Z,{sourceLabel:l}),(0,r.jsx)(en,{children:(0,r.jsx)(Y,{fallbackSourceDescription:i,imagesSources:n,sourceNames:o})})]})]})},er=(0,v.A)("div",{shouldForwardProp:e=>"anchor"!==e})(({theme:e,anchor:t})=>{let a=!!t,r=a?t.top+8:void 0;return{position:"fixed",left:a?"50%":0,right:a?"auto":0,width:a?"auto":"100%",maxWidth:a?"none":`calc(${m.SkE} + 2 * ${e.vars.spacings["2xl"]})`,paddingInline:a?0:e.vars.spacings["2xl"],boxSizing:"border-box",marginInline:a?void 0:"auto",top:a?r:"auto",bottom:a?"auto":e.vars.spacings.l,transform:a?"translateX(-50%)":"none",display:"flex",flexDirection:"column",alignItems:"center",gap:e.vars.spacings.xxs,pointerEvents:"none"}}),ei=(0,v.A)("div")(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"center",maxWidth:`calc(100vw - 2 * ${e.vars.spacings["2xl"]})`,textAlign:"center",pointerEvents:"auto",gap:e.vars.spacings.xs})),en=(0,v.A)("div")({display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}),es=({anchor:e,className:t,counterLabel:a,fallbackSourceDescription:i,imagesSources:n,isLandscape:s,photoCaptionLabel:l,sourceLabel:o,sourceNames:c})=>{let d=0===c.length;return d&&s?(0,r.jsxs)(eo,{className:t,children:[(0,r.jsx)(Q,{variant:"caption1Semibold","data-testid":"gallery-full-screen-v2-counter",children:a}),(0,r.jsx)(et,{variant:"caption1","data-testid":"gallery-full-screen-v2-photo-caption",children:l})]}):(0,r.jsxs)(el,{className:t,anchor:e,children:[(0,r.jsx)(Q,{variant:"caption1Semibold","data-testid":"gallery-full-screen-v2-counter",children:a}
3),!d&&(0,r.jsxs)(ec,{"data-testid":"gallery-full-screen-v2-source",children:[(0,r.jsx)(Z,{sourceLabel:o}),(0,r.jsx)(ed,{children:(0,r.jsx)(Y,{fallbackSourceDescription:i,imagesSources:n,sourceNames:c})})]}),d&&(0,r.jsx)(et,{variant:"caption1","data-testid":"gallery-full-screen-v2-photo-caption",children:l})]})},el=(0,v.A)("div",{shouldForwardProp:e=>"anchor"!==e})(({theme:e,anchor:t})=>{let a=!!t,r=a?t.top+8:void 0;return{position:"fixed",left:a?"50%":0,right:a?"auto":0,width:a?"auto":"100%",maxWidth:a?"none":`calc(${m.SkE} + 2 * ${e.vars.spacings.l})`,paddingInline:a?0:e.vars.spacings.l,boxSizing:"border-box",marginInline:a?void 0:"auto",top:a?r:"auto",bottom:a?"auto":e.vars.spacings.l,transform:a?"translateX(-50%)":"none",display:"flex",flexDirection:"column",alignItems:"center",gap:e.vars.spacings.xxs,pointerEvents:"none"}}),eo=(0,v.A)("div")(({theme:e})=>({position:"fixed",right:0,bottom:e.vars.spacings.l,left:0,width:"100%",maxWidth:`calc(${m.SkE} + 2 * ${e.vars.spacings.l})`,paddingInline:e.vars.spacings.l,boxSizing:"border-box",marginInline:"auto",display:"flex",flexDirection:"column",alignItems:"center",gap:e.vars.spacings.xxs,pointerEvents:"none"})),ec=(0,v.A)("div")(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"center",maxWidth:`calc(100vw - 2 * ${e.vars.spacings.l})`,textAlign:"center",pointerEvents:"auto",gap:e.vars.spacings.xs})),ed=(0,v.A)("div")({display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}),{buildMixedBlockName:eu}=(0,b.f)("gallery-full-screen-v2-counter"),ep=({"counter-plugin":{images:e,imagesSources:t},className:a})=>{let n,{slides:s,currentIndex:l}=(0,f.mp)(),{t:o}=(0,j.Bd)(),c=(0,x.useMobileMediaQuery)(),d=s.length,{anchor:u,isMobileLandscape:p}=(({currentIndex:e,isMobile:t,slideCount:a})=>{let r=(0,O.A)("(orientation: landscape)"),n=t&&r,[s,l]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(!a||e>=a)return void l(null);let r=()=>{let e=document.querySelector(".yarl__slide_current .yarl__slide_image");if(!e)return void l(null);let a=window.innerHeight,r=n?20:40,i={top:Math.round(Math.min(((e,t)=>{let{top:a,bottom:r,width:i,height:n}=e.getBoundingClientRect();if(t)return r;let{naturalWidth:s,naturalHeight:l}=e,{objectFit:o,objectPosition:c}=window.getComputedStyle(e);if("contain"!==o&&"scale-down"!==o||!s||!l||!i||!n)return r;let d=Math.min(i/s,n/l),u=l*("scale-down"===o?Math.min(d,1):d),[,p="50%"]=c.split(" ");return a+((e,t)=>{if("left"===e||"top"===e)return 0;if("right"===e||"bottom"===e)return t;let a=Number.parseFloat(e);return Number.isNaN(a)?t/2:t*a/100})(p,n-u)+u})(e,t),a-r))};l(e=>e&&e.top===i.top?e:i)},i=window.requestAnimationFrame(()=>{window.requestAnimationFrame(r)}),s=window.setTimeout(r,120);window.addEventListener("resize",r);let o="u">typeof ResizeObserver?new ResizeObserver(r):null,c=document.querySelector(".yarl__slide_current .yarl__slide_image");return c&&o&&o.observe(c),c?.addEventListener("load",r),()=>{window.cancelAnimationFrame(i),window.clearTimeout(s),window.removeEventListener("resize",r),o?.disconnect(),c?.removeEventListener("load",r)}},[e,t,n,a]),{anchor:s,isMobileLandscape:n}})({currentIndex:l,isMobile:c,slideCount:d});if(!d)return null;let g={anchor:u,className:eu(a),counterLabel:`${l+1} / ${d}`,fallbackSourceDescription:o(_.tF.imagesAreDisplayed),imagesSources:t,photoCaptionLabel:o(_.Ih.photoCaptionLabel),sourceLabel:o(_.tF.source),sourceNames:(n=e[l],Array.from(new Set((n?.sourceInfo?.sources??[]).filter(e=>"string"==typeof e&&e.length>0))))};return c?(0,r.jsx)(es,{...g,isLandscape:p}):(0,r.jsx)(ea,{...g})};var eg=a(59772);let{buildMixedBlockName:ev,buildElementName:em,buildElementSelector:ex}=(0,b.f)("gallery-full-screen-v2-deal-card"),eh=({className:e,viewModel:t,onSeeDeals:a})=>{let{t:i}=(0,j.Bd)(),{deal:n,rateDisplayModel:s,roomsNumber:l}=t,o=ev(e),{pricePerNight:c}=(0,eg.RF)({deal:{rateDisplayModel:s,checkin:n.checkin,checkout:n.checkout,priceInfo:{currencyCode:n.currencyCode,nightlyPrice:n.nightlyPrice,totalPrice:n.totalPrice,totalPriceWithHotelFees:n.totalPriceWithHotelFees,totalRoomsPrice:n.totalRoomsPrice,totalRoomsPriceWithHotelFees:n.totalRoomsPriceWithHotelFees}},roomsNumber:l});return(0,r.jsxs)(ef,{className:o,"data-testid":"gallery-full-screen-v2-deal-card",children:[(0,r.jsxs)("div",{className:em("price"),children:[(0,r.jsx)(w.A,{variant:"caption1",className:em("label"),children:i(_.VP.from)}),(0,r.jsx)(w.A,{variant:"heading3",className:em("price-label"),children:c}),(0,r.jsx)(w.A,{variant:"caption1",className:em("label"),children:i(_.VP.perNight)})]}),(0,r.jsx)("div",{className:em("divider")}),(0,r.jsx)("button",{type:"button",className:em("button"),"data-testid":"gallery-full-screen-v2-see-deals-button",onClick:a,children:i(_.VP.seeDeals)})]})},ef=(0,v.A)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.vars.spacings.s,padding:`${e.vars.spacings.xxs} ${e.vars.spacings.s}`,borderRadius:e.vars.cornerRadiuses.m,border:`${e.vars.outlines.s} ${e.vars.colors.outline.primary.interactive}`,background:e.vars.colors.background.secondary.interactive,boxShadow:e.vars.elevations.shadows.xs,width:"264px",maxWidth:"100%",pointerEvents:"auto",[(0,x.desktopMediaQuery)(e)]:{width:"auto",minWidth:"209px"},[ex("price")]:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-end",width:"117px",flexShrink:0},[ex("label")]:{color:e.vars.colors.text.neutral[6],textAlign:"right",textTransform:"lowercase"},[ex("price-label")]:{color:e.vars.colors.text.neutral[8],lineHeight:e.typography.heading3.lineHeight},[ex("divider")]:{width:0,height:"60px",borderLeft:`${e.vars.outlines.s} ${e.vars.colors.outline.primary.interactive}`},[ex("button")]:{border:0,background:e.vars.colors.background.primary.interactive,color:e.vars.colors.text.neutral[0],...e.typography.body2Semibold,height:"36px",paddingInline:e.vars.spacings["2xl"],borderRadius:e.vars.cornerRadiuses.button,boxShadow:e.vars.elevations.shadows.xs,cursor:"pointer",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center"}}));var ey=a(13478);let{buildMixedBlockName:eb,buildElementName:ew,buildElementSelector:ej}
3=(0,b.f)("gallery-full-screen-v2-header"),e_="860px",eS=({className:e,hotelName:t,starRating:a,reviewsRating:i,reviewsRatingLabel:n,reviewsCountText:s,dealCard:l,onSeeDeals:o})=>{let c=(0,x.useDesktopMediaQuery)(),d=eb(e);return(0,r.jsxs)(ek,{className:d,"data-testid":"gallery-full-screen-v2-header",children:[(0,r.jsxs)("div",{className:ew("main"),children:[(0,r.jsxs)("div",{className:ew("identity"),children:[(0,r.jsx)(w.A,{component:"span",variant:"heading3",className:ew("name"),children:t}),(0,r.jsx)("div",{className:ew("stars-row"),children:(0,r.jsx)("div",{className:ew("stars"),children:(0,r.jsx)(ey.j,{rating:a,size:"small"})})})]}),(0,r.jsxs)("div",{className:ew("rating-row"),children:[!!i&&(0,r.jsx)("div",{className:ew("rating-pill"),children:i}),!!n&&(0,r.jsx)(w.A,{variant:"body2Semibold",className:ew("rating-label"),children:n}),!!s&&(0,r.jsx)(w.A,{variant:"body2",className:ew("rating-count"),children:s})]})]}),c&&!!l&&!!o&&(0,r.jsx)("div",{className:ew("deal"),children:(0,r.jsx)(eh,{viewModel:l,onSeeDeals:o})})]})},ek=(0,v.A)("div")(({theme:e})=>({position:"fixed",zIndex:2,top:e.vars.spacings.l,left:0,right:0,width:"100%",maxWidth:e_,paddingInline:e.vars.spacings.l,boxSizing:"border-box",marginInline:"auto",display:"flex",flexDirection:"column",gap:e.vars.spacings.s,pointerEvents:"none",paddingRight:"48px",[(0,x.desktopMediaQuery)(e)]:{top:e.vars.spacings["2xl"],maxWidth:e_,paddingInline:e.vars.spacings["2xl"],flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:e.vars.spacings.l},[ej("main")]:{display:"flex",flexDirection:"column",gap:e.vars.spacings.s,minWidth:0,flex:1},[ej("identity")]:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.vars.spacings.xxs,minWidth:0},[ej("name")]:{display:"block",color:e.vars.colors.text.neutral[8],minWidth:0},[ej("stars-row")]:{display:"inline-flex",alignItems:"center",gap:e.vars.spacings.s,pointerEvents:"auto"},[ej("stars")]:{display:"inline-flex",alignItems:"center",gap:e.vars.spacings.xxs},[ej("rating-row")]:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.vars.spacings.s},[ej("rating-pill")]:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"42px",minHeight:"24px",paddingInline:e.vars.spacings.m,borderRadius:e.vars.cornerRadiuses.full,background:e.vars.colors.background.primary.positive,color:e.vars.colors.text.neutral[0],fontSize:"13px",fontWeight:700,lineHeight:"16px"},[ej("rating-label")]:{color:e.vars.colors.text.neutral[8]},[ej("rating-count")]:{color:e.vars.colors.text.neutral[6]},[ej("deal")]:{pointerEvents:"auto",flexShrink:0}})),eA={fade:0,swipe:0},eN={fade:250,swipe:250},{blockName:eI}=(0,b.f)("gallery-full-screen-v2"),eC=(0,x.getImgPath)("hotel-image-fallback-1.jpg"),eR=({"header-plugin":e})=>(0,r.jsx)(eS,{hotelName:e.hotelName,starRating:e.starRating,reviewsRating:e.reviewsRating,reviewsRatingLabel:e.reviewsRatingLabel,reviewsCountText:e.reviewsCountText,dealCard:e.dealCard,onSeeDeals:e.onSeeDeals}),eE=({addChild:e})=>{e(h.Kv,(0,f.Fi)("gallery-full-screen-v2-header-plugin",eR),!0)},eD=({addChild:e})=>{e(h.Kv,(0,f.Fi)(h.Jy,ep))},eM=(0,i.memo)(({hotelSummary:e,hotelId:t,hotelRating:a,images:n,slides:s,imageNumber:l,closeGallery:o,handleIndexChange:c,imagesSources:d,rooms:u,onSeeDeals:p,hasSelectedDates:v})=>{let{t:h}=(0,j.Bd)(),{queryResult:f}=(0,T.z)({hotelId:t,enabled:v}),y=n[l]??n[0],b=f.data?.cheapestDeal??null,w=f.data?.cheapestDealAvailabilityState??"Unknown",S=f.data?.rateDisplayModel??U.k.Gross,k=(0,i.useMemo)(()=>(({imagesCount:e,currentImage:t,hasSelectedDates:a,cheapestDeal:r,cheapestDealAvailabilityState:i,rateDisplayModel:n,roomsNumber:s})=>{let l=Array.from(new Set(t?.sourceInfo?.sources?.filter(Boolean)??[])),o=Math.max(e,1),c=(({hasSelectedDates:e,cheapestDeal:t,cheapestDealAvailabilityState:a,rateDisplayModel:r,roomsNumber:i})=>e&&t&&"NotAvailable"!==a?{deal:t,rateDisplayModel:r,roomsNumber:i}:null)({hasSelectedDates:a,cheapestDeal:r,cheapestDealAvailabilityState:i,rateDisplayModel:n,roomsNumber:s});return{totalImages:o,hasMultipleImages:o>1,sourceNames:l,showSource:l.length>0,dealCard:c}})({imagesCount:s.length,currentImage:y,hasSelectedDates:v,cheapestDeal:b,cheapestDealAvailabilityState:w,rateDisplayModel:S,roomsNumber:u.length}),[b,w,y,v,S,u.length,s.length]),A=a.reviewsRatingLevel?h(_.Df[a.reviewsRatingLevel]):null,N=a.ratingsCount?h(_.gZ.reviewsCountShort,{ratingsCount:a.ratingsCount}):null,I=(0,x.useMobileMediaQuery)(),C=(0,O.A)("(orientation: landscape)"),R=I&&C,E=(0,g.A)(),D=(0,i.useMemo)(()=>document.getElementById("root"),[]),[M,W]=(0,i.useState)(null),$=(0,i.useRef)(!1),F=()=>W("key"),z=()=>W("swipe"),P=()=>{k.dealCard&&!R&&(0,K.X)({action:"clicked"}),p()};return(0,i.useEffect)(()=>{!k.dealCard||R||$.current||($.current=!0,(0,K.X)({action:"shown",startingPrice:Math.round(k.dealCard.deal.nightlyPrice),currencyCode:k.dealCard.deal.currencyCode}))},[R,k.dealCard]),(0,r.jsx)(eW,{onKeyUp:F,onKeyDown:F,onTouchMove:z,onMouseUp:()=>W("click"),onMouseDown:z,children:(0,r.jsx)(e$,{className:eI,open:!0,close:()=>o(M),slides:s,plugins:R?[eD]:[eE,eD],portal:{root:D},animation:I?eA:eN,controller:{closeOnBackdropClick:!0},index:l,render:{iconError:()=>(0,r.jsx)(m.rVz,{src:eC}),controls:()=>k.dealCard&&I&&!R?(0,r.jsx)(eF,{children:(0,r.jsx)(eh,{viewModel:k.dealCard,onSeeDeals:P})}):null},"header-plugin":{hotelName:e.name,starRating:e.starRating,reviewsRating:a.reviewsRating,reviewsRatingLabel:A,reviewsCountText:N,dealCard:k.dealCard,onSeeDeals:P},"counter-plugin":{images:n,imagesSources:d},on:{view:e=>c(e,M)}
3,styles:{container:{background:E.vars.colors.background.neutral[0],paddingTop:I?void 0:E.vars.spacings["8xl"],paddingBottom:I?void 0:E.vars.spacings["8xl"]},icon:{color:E.vars.colors.text.neutral[8],boxShadow:"none"},slide:{maxHeight:"100%"},button:{filter:"none"}}})})}),eW=(0,v.A)("div")({position:"relative",zIndex:1400}),e$=(0,v.A)(f.Ay)(({theme:e})=>({"& .yarl__slide_image":{width:"100%",maxWidth:"100% !important",height:"100%",maxHeight:"25vh !important",objectFit:"cover"},[(0,x.mobileMediaQuery)(e)]:{"& .yarl__navigation_prev, & .yarl__navigation_next":{top:"50%",transform:"translateY(-50%)",left:"auto",right:"auto",border:`${e.vars.outlines.s} ${e.vars.colors.outline.primary.interactive}`,borderRadius:e.vars.cornerRadiuses.button,backgroundColor:e.vars.colors.background.neutral[0],boxShadow:"none",boxSizing:"content-box",width:"20px",height:"20px",padding:e.vars.spacings.s,filter:"none",color:`${e.vars.colors.text.primary.interactive} !important`},"& .yarl__navigation_prev:hover, & .yarl__navigation_next:hover":{backgroundColor:e.colors.background.secondary.buttonSecondaryHover},"& .yarl__navigation_prev:active, & .yarl__navigation_next:active":{backgroundColor:e.colors.background.secondary.buttonSecondaryPressed},"& .yarl__navigation_prev":{left:e.vars.spacings.s},"& .yarl__navigation_next":{right:e.vars.spacings.s},"& .yarl__navigation_prev svg, & .yarl__navigation_next svg":{width:e.sizing.iconSizing.m,height:e.sizing.iconSizing.m,color:`${e.vars.colors.text.primary.interactive} !important`},"@media (orientation: landscape)":{"& .yarl__slide":{alignItems:"flex-start",paddingTop:e.vars.spacings["5xl"]},"& .yarl__slide_image":{maxHeight:"calc(100vh - 104px) !important"}}},[(0,x.desktopMediaQuery)(e)]:{"& .yarl__slide_image":{width:"auto",height:"auto",maxHeight:"100% !important",objectFit:"contain",minWidth:"max(100%, 50vw)",minHeight:"max(100%, 50vh)"}},"& .yarl__button:focus-visible svg":{outline:e.vars.outlines.m,outlineRadius:e.vars.cornerRadiuses.button,outlineColor:e.vars.colors.outline.primary.focus}})),eF=(0,v.A)("div")(({theme:e})=>({position:"fixed",left:0,right:"16px",bottom:e.vars.spacings["2xl"],top:"auto",width:"100%",maxWidth:`calc(${m.SkE} + 2 * ${e.vars.spacings.l})`,paddingInline:e.vars.spacings.l,boxSizing:"border-box",marginInline:"auto",display:"flex",justifyContent:"flex-end",pointerEvents:"none"})),ez=(0,i.memo)(e=>{let t=(0,s.rn)("mbp-ab-test-hotel-details-fullscreen-gallery"),a=e.hotelSummary.images,{open:g,slides:v,closeGallery:m,imageNumber:x,handleIndexChange:h,imagesSources:f,onSeeDeals:y}=(({hotelSummary:e,checkIn:t,checkOut:a,rooms:r,externalHotelId:s,hotelInfo:g})=>{let{hash:v}=(0,n.zy)(),m=(0,n.Zp)(),{closeFullScreen:x,closeFullScreenAndNavigateToRooms:h,getFullScreenLinkParams:f}=(0,u.b)({hotelInfo:g}),{data:y}=(0,l.I)({enabled:!!t&&!!a&&!!r&&!!s,queryKey:["GET_IMAGE_SOURCES_KEY",t?.toString(),a?.toString(),s,JSON.stringify(r??[])],queryFn:async()=>t&&a?await o.Iu.getHotelSourceLinks(o.bN,{checkIn:t,checkOut:a,rooms:JSON.stringify(r),externalHotelId:s}):{},refetchOnWindowFocus:!1,refetchOnReconnect:!1}),b=(0,i.useMemo)(()=>e.images.map(e=>({src:e?.optimalUrl??""})),[e.images]),{showGallery:w,imageNumber:j}=((e,t)=>{let a;return e&&e.includes(c.t)?{showGallery:!0,imageNumber:((e,t)=>null===e||e<d.imageOrder.first?d.imageOrder.first:"number"==typeof t&&e>=t?d.imageOrder.first:e)(Number.isInteger(a=Number(e.split("-")[1]))?a:null,t)}:{showGallery:!1,imageNumber:d.imageOrder.first}})(v,b.length);return(0,i.useEffect)(()=>{if(!w)return;let e=f(j);`#${e.hash}`!==v&&m(e,{replace:!0})},[v,f,j,m,w]),{open:w,slides:b,closeGallery:x,handleIndexChange:(0,i.useCallback)(({index:e},t)=>{j===e||((0,p.wr)({imageIndex:e,interactionType:t??"click",value:j<e?"slider_next":"slider_prev"}),m(f(e)))},[f,j,m]),imageNumber:j,imagesSources:y,onSeeDeals:h}})(e);return g?"with-deals"!==t?(0,r.jsx)(L,{images:a,closeGallery:m,slides:v,imageNumber:x,handleIndexChange:h,imagesSources:f}):(0,r.jsx)(eM,{hotelSummary:e.hotelSummary,hotelId:e.hotelId,hotelRating:e.hotelRating,images:a,slides:v,closeGallery:m,imageNumber:x,handleIndexChange:h,imagesSources:f,rooms:e.rooms,onSeeDeals:y,hasSelectedDates:!!e.checkIn&&!!e.checkOut}):null})}}]); 4//# sourceMappingURL=sourcemaps/1354.1fc5f9d803ec82ae.39e4f49e8f5e6db3.js.map 5//# debugId=aa94c4f7-210a-511e-b22b-977ca6179df5
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.