1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2530],{18187:(e,t,l)=>{l.d(t,{Ay:()=>b});var r=l(37876),a=l(14232);l(82851);var i=l(12684),n=l(33679),d=l(15039),s=l.n(d),o=l(65915),c=l(77446),u=l(86649),h=l(22853),m=l(21645),p=l(67293),x=l(37978);let v=e=>{let[t,l]=(0,a.useState)({}),{query:i}=(0,m.rd)(),{convertCurrency:d,selectedCurrency:o}=(0,h.Yw)(),{title:c,fieldScDescriptionText:v,fieldDisplayTitle:y,fieldSecondaryTitle:f,fieldAddress:g={},fieldCountryName:j,widePrice:N,entityUrl:b,body:C,offerBodySummary:A,type:k,springboardCard:S,nid:I}=e;S&&S.entity&&S.entity.body&&S.entity.body.summary&&S.entity.body.summary;let{rateShown:T,rateDisplay:O,rateDescription:L}=(0,p.A)(t,null==i?void 0:i.arrivalDate,null==i?void 0:i.departureDate,d,o);async function E(){let e=await (0,x.A)({nids:[I],startDate:null==i?void 0:i.arrivalDate,endDate:null==i?void 0:i.departureDate,promo:null==i?void 0:i.promoCode,rateCode:null==i?void 0:i.rateCode});(null==e?void 0:e.results)&&(null==e?void 0:e.results[I])&&(e.results[I].title=c,e.results[I].nid=I,l(e.results[I]))}(0,a.useEffect)(()=>{I&&"NodeProperty"===k||(null==k?void 0:k.targetId)==="property"?E():l({})},[I,i]);let{locality:w,addressLine1:_,countryCode:D,administrativeArea:F}=g;return(0,r.jsxs)("div",{className:s()("property-data",{"wide-price":N}),children:[(0,r.jsxs)("div",{className:"property-price",children:[O&&(0,r.jsx)("h2",{className:s()({duration:!T}),children:O}),L&&(0,r.jsx)("p",{className:"duration",children:L})]}),(0,r.jsxs)("div",{className:"property-location",children:[(0,r.jsx)("h2",{className:"name",children:(0,r.jsx)(n.A,{href:b&&b.path||"#",legacyBehavior:!0,children:y||c})}),!y&&S&&S.entity&&(0,r.jsx)("h2",{className:"name",children:S.entity.title}),f&&(0,r.jsx)("h2",{className:"name",children:f}),"NodeProperty"===k?(0,r.jsxs)("p",{children:[_?"".concat(_,", "):""," ",w?"".concat(w,", "):""," ",F?"".concat(F,","):""," ",j&&(0,r.jsx)(n.A,{href:D?"/search?country=".concat(D):"#",className:"region-link",legacyBehavior:!0,children:j})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(r.Fragment,{children:C&&(0,r.jsx)(r.Fragment,{children:(0,u.Ay)(C.summary)})}),(0,r.jsx)(r.Fragment,{children:A&&(0,r.jsx)(r.Fragment,{children:(0,u.Ay)(A.value)})})]})]})]})};var y=l(58103),f=l(37220);let g=e=>{var t,l,a,n;let{updateQueryParams:d,handleUrlChange:o,paramsObject:u,pdpMilestonePush:h,bookButtonTrackingEvents:m}=(0,y.t)(),{isLoggedIn:p}=(0,f.vL)(),{componentKey:x,entityUrl:g,cta:j,grid:N=!1,fieldImgMasonry:b,backgroundImage:C,url:A,widePrice:k,fieldImgMasthead:S,fieldImgMastheads:I,disableBookingLinks:T,__typename:O,fieldScLinkedNode:L,...E}=e,w="",_="MORE INFO",D="#",F="#";switch(I&&(null==I?void 0:I.length)>0&&(null==(l=I[0])||null==(t=l.derivative)?void 0:t.url)&&(w=null==(n=I[0])||null==(a=n.derivative)?void 0:a.url),(null==S?void 0:S.url)?w=S.url:L&&L.entity&&L.entity.fieldImgMasthead&&L.entity.fieldImgMasthead.derivative&&(w=L.entity.fieldImgMasthead.derivative.url),b&&b.url&&(w=b.url),S&&S.derivative&&(w=S.derivative.url),N&&b&&b.url&&(w=b.url),O){case"NodeOffer":_="VIEW OFFER";break;case"NodeExperience":_="VIEW EXPERIENCE";break;case"NodeDestination":_="VIEW GUIDE";break;case"NodeSpringboardCard":E.fieldScCta1LinkToNode&&L.entity&&L.entity.path&&L.entity.path.alias&&(D=L.entity.path.alias),!E.fieldScCta1LinkToNode&&E.fieldScCta1LinkToOtherNode&&E.fieldScCta1LinkToOtherNode.entity&&E.fieldScCta1LinkToOtherNode.entity.path&&E.fieldScCta1LinkToOtherNode.entity.path.alias&&(D=E.fieldScCta1LinkToOtherNode.entity.path.alias),E.fieldScCta1LinkToNode||E.fieldScCta1LinkToOtherNode||(D="https://"+E.fieldScCta1OrGoToUrl),E.fieldScCta2LinkToNode&&E.fieldScCta2LinkToNode.entity&&E.fieldScCta2LinkToNode.entity.path&&E.fieldScCta2LinkToNode.entity.path.alias&&(F=E.fieldScCta2LinkToNode.entity.path.alias),!E.fieldScCta2LinkToNode&&E.fieldScCta2OrGoToUrl&&(F="https://"+E.fieldScCta2OrGoToUrl);break;case"NodeWhereNextArticlePage":_="VIEW ARTICLE";break;default:_="MORE INFO"}return(0,r.jsx)("div",{className:s()("callout property"),style:{backgroundImage:"url(".concat(w||"/assets/images/logo/logo-preferredhotels-main.png",")")},children:(0,r.jsx)("div",{className:"callout-body price",children:(0,r.jsxs)(i.A,{className:"grid-container",children:[(0,r.jsx)(i.A.Column,{computer:k?12:8,mobile:8,tablet:8,children:(0,r.jsx)(v,{type:O,springboardCard:L,...E,entityUrl:g,widePrice
1:k})}),(0,r.jsx)(i.A.Column,{computer:k?4:8,mobile:8,tablet:8,children:(0,r.jsx)("div",{className:"property-cta",children:"NodeProperty"===O?(0,r.jsx)(c.U,{additionalClickHandler:m,className:"booking-btn ph-btn-default property-card__book-button",variant:"primary",propertyData:E,propertyCode:(null==E?void 0:E.fieldItemCode)||"",handleRouteChange:e=>o(e,!0),arrivalDate:u.arrivalDate,departureDate:u.departureDate,iata:u.iata,promoCode:u.promoCode,numberOfRooms:u.numberOfRooms,numberOfAdults:u.numberOfAdults,numberOfChildren:u.numberOfChildren,isLoggedIn:p,UBEPrefix:"/book/hotel/",sendToPhiber:(null==E?void 0:E.fieldSendToPhiber)==="1"||(null==E?void 0:E.fieldSendToPhiber)===!0,focusOnResidence:!1,inquiryUrl:"/inquire/"}):(0,r.jsxs)(r.Fragment,{children:[E&&E.path&&E.path.alias&&(0,r.jsx)("a",{className:"ph-btn",href:E.path.alias,children:_}),E&&"NodeSpringboardCard"===O&&(0,r.jsx)("a",{className:"ph-btn",href:D,children:E.fieldScCta1ButtonText?E.fieldScCta1ButtonText:"MORE INFO"}),E&&"NodeSpringboardCard"===O&&E.fieldScAddSecondCta&&(0,r.jsx)("a",{style:{marginLeft:"1rem"},className:"ph-btn",href:F,children:E.fieldScCta2ButtonText?E.fieldScCta2ButtonText:"MORE INFO"})]})})})]})})},x)},j=e=>{var t,l,a,i;let{title:d,body:c,entityUrl:h,fieldImgMasthead:m,fieldImgMastheads:p,id:x,showHorizontalLine:v=!0,type:y,fieldItemCode:f,hidePara:j,fieldImgMasonry:N={},mastheadImage:b,fieldDisplayTitle:C,offerBodySummary:A,offerTagLine:k,usesTravelCurious:S}=e;if(!y||void 0===y.targetId)return(0,r.jsx)(r.Fragment,{});let I=y.targetId,T="default-img-false",O=d;C&&(O=C);let L="";c&&(L=A?A.value:c.summary);let E=k||null,w="where_next_article_page"==I?"View Article":"page"==I?"More Info":"springboard"==I?"View Details":"bulletin"==I?"Read More":"property"!==I?"View Hotels":"Book Now",_=f&&"offer"!==I&&"experience"!==I?"".concat("https://www.phgsecure.com/IBE/brandRedirect.ashx","?panel=false&propertyCode=").concat(f):h&&h.path||"";L&&(L=L.replace(/<img .*?>|(<style[\w\W]+style>)|style="[a-zA-Z0-9:;\.\s\(\)\-\,]*"|<\/?(?!(?:p)\b)[a-z](?:[^>"']|"[^"]*"|'[^']*')*>/g,""));let D=L&&!j?(0,r.jsx)("div",{className:"callout-para",dangerouslySetInnerHTML:{__html:L}}):null;if((null==y?void 0:y.targetId)==="property")return(0,r.jsx)(g,{grid:!0,...e,cta:{link:_,text:w}});let F="";return N&&void 0!==N.url?F=N.url:p&&(null==p?void 0:p.length)>0&&(null==(l=p[0])||null==(t=l.derivative)?void 0:t.url)?F=null==(i=p[0])||null==(a=i.derivative)?void 0:a.url:m&&m.derivative&&void 0!==m.derivative.url?F=m.derivative.url:m&&m.portrait&&e.type&&e.type.targetId&&("offer"==e.type.targetId||"experience"==e.type.targetId)?F=m.portrait.url:(F="/assets/images/logo/logo-preferredhotels-main.png",T="default-img-true"),(0,r.jsx)("div",{className:s()("callout",x,T,{[v]:v}),style:{backgroundImage:"url('".concat(F,"')")},children:(0,r.jsxs)("div",{className:"callout-body",children:[O?(0,r.jsx)("h2",{className:"callout-title",children:(0,r.jsx)(n.A,{href:h&&h.path||"#",children:(0,u.Ay)(O)})}):null,E?(0,r.jsx)("div",{className:"callout-offerTagLine",children:(0,u.Ay)(E)}):(0,r.jsx)("div",{children:D}),(0,r.jsx)(o.A,{link:_,text:w})]})})},N=[{component:e=>{let{gridItems:t=[]}=e,[l,a,n]=t;return(0,r.jsxs)(i.A,{className:"grid-container",children:[(0,r.jsx)(i.A.Column,{computer:10,mobile:16,tablet:8,children:(0,r.jsx)(j,{...l,id:"first"})}),(0,r.jsx)(i.A.Column,{computer:6,mobile:16,tablet:8,children:(0,r.jsxs)(i.A,{children:[(0,r.jsx)(i.A.Column,{width:16,children:(0,r.jsx)(j,{...a,id:"second",hidePara:!0})}),(0,r.jsx)(i.A.Column,{width:16,children:(0,r.jsx)(j,{...n,id:"third",hidePara:!0})})]})})]})},items:3},{component:e=>{let{gridItems:t=[]}=e,[l,a,n]=t;return(0,r.jsxs)(i.A,{columns:3,className:"grid-container",doubling:!0,stackable:!0,children:[(0,r.jsx)(i.A.Column,{children:(0,r.jsx)(j,{...l,id:"first"})}),(0,r.jsx)(i.A.Column,{children:(0,r.jsx)(j,{...a,id:"second"})}),(0,r.jsx)(i.A.Column,{children:(0,r.jsx)(j,{...n,id:"third"})})]})},items:3},{component:e=>{let{gridItems:t=[]}=e,[l]=t;return(0,r.jsx)(i.A,{className:"grid-container one-column-grid",children:(0,r.jsx)(i.A.Column,{children:(0,r.jsx)(j,{...l})})})},items:1},{component:e=>{let{gridItems:t=[]}=e,[l,a]=t;return(0,r.jsxs)(i.A,{className:"grid-container",children:[(0,r.jsx)(i.A.Column,{computer:6,mobile:16,tablet:8,children:(0,r.jsx)(j,{...l,id:"first"})}),(0,r.jsx)(i.A.Column,{computer:10,mobile:16,tablet:8,children:(0,r.jsx)(j,{...a,id:"second",widePrice
1:!0})})]})},items:2}],b=e=>{let{nodes:t}=e,l=[];for(let e=0,a=0,i=t.length,n=N.length;e<i;){a>=n&&(a=0);let i=N[a];a+=1;let d=t.slice(e,i.items+e);l.push((0,r.jsx)(i.component,{gridItems:d},e)),e+=i.items}return l}},52530:(e,t,l)=>{l.d(t,{A:()=>i});var r=l(37876);l(14232),l(65915);var a=l(18187);l(44404);let i=e=>(0,r.jsx)("div",{className:"hub-page",children:(0,r.jsxs)("div",{className:"hub-page-grid",children:[(0,r.jsx)("div",{className:"hub-title",dangerouslySetInnerHTML:{__html:e.title}}),(0,r.jsx)("div",{className:"hub-body",dangerouslySetInnerHTML:{__html:e.body}}),(0,r.jsx)(a.Ay,{nodes:e.nodes})]})})}}]);
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.