1import{S as xe,a as Le}from"./vendor-vant-BGYutjow.js";import{J as He,c as z,K as a,L as s,M as e,O as u,k as $,_ as Y,a3 as Ie,u as n,a4 as Me,I as he,r as C,d as ne,R as S,x as Re,n as re,o as fe,F as N,N as j,y as q,B as Be,a2 as ae,Q as F,A as _e,a5 as ue,a6 as de,w as ce,$ as Ee,s as me,v as Oe,a7 as ze,a8 as Ae}from"./vendor-vue-DpzrsAq3.js";import{N as ge,F as Pe}from"./Footer-Ba9MpyWI.js";import{e as Ne,p as We,g as je,b as qe}from"./benefits-ChNCpmYN.js";import{c as Fe,o as Ge,e as Ue,w as Ve,k as Xe}from"./facility-icons-u8jyt0Wu.js";import{_ as Z,u as Ce,g as le,m as Ke,n as Je,o as Qe,p as Ye,q as Ze,r as pe,s as et,v as tt,w as st,y as be,x as ot,z as lt}from"./index-Dia4DGJo.js";import{H as nt,E as at}from"./exclusiveOffer-U3uT7u9Y.js";import{s as it}from"./basicData-oZJIq2jK.js";import"./logo-white-BhYdhI73.js";/* empty css */import{B as ct}from"./BrandShowcasePc-M9ngrVTu.js";import{H as rt}from"./HotelCardApp-DOS9nJkB.js";import{L as ut}from"./LeftSideCardApp--FQ59Oq7.js";import"./vendor-libs-DQ_N2il1.js";import"./languageIcon-Cmf9R6g8.js";import"./locationSearchHistory-DBSE4isE.js";import"./home-okJxYHOW.js";import"./recentHotels-CGKVG3b3.js";import"./footer-KLB4aWF6.js";import"./logo-color-Ceh5i-A3.js";import"./common-Db6FqFkG.js";const dt={class:"membership-benefits-pc section-wrapper-box-pc"},ht={class:"benefits-content"},ft={class:"benefits-header"},vt={class:"header-text"},mt={class:"header-text-content"},gt={class:"header-text-main"},pt={class:"main-title"},bt={class:"sub-title"},yt=["href"],wt={class:"benefits-footer join-button-back"},_t={class:"promo-button"},Ct={class:"promo-text"},kt=["href"],$t={class:"rightIconCon"},St={class:"iconBox"},Dt={class:"iconItem"},Tt=["innerHTML"],xt={class:"iconItem"},Lt=["innerHTML"],Ht={class:"iconItem"},It=["innerHTML"],Mt={class:"iconItem"},Rt=["innerHTML"],Bt={class:"iconBox"},Et={class:"iconItem"},Ot=["innerHTML"],zt={class:"iconItem"},At=["innerHTML"],Pt={class:"iconItem"},Nt=["innerHTML"],Wt={class:"iconItem"},jt=["innerHTML"],qt={__name:"MembershipBenefitsPC",props:{membershipData:{type:Object,required:!0,default:()=>({benefits:[]})}},setup(t){const g=He(),{t:w}=Ce(),R=()=>{Ke()},m=()=>{Je()},i=z(()=>`/${le(g)}/member-benefits`),L=z(()=>`https://www.hilton.com/${le(g)==="zh-cn"?"zh-hans":"zh-hant"}/hilton-honors/join/`);return(k,_)=>{const B=Ie,D=Me;return s(),a("section",dt,[e("div",ht,[e("div",ft,[e("div",vt,[e("div",mt,[e("h1",gt,[e("div",pt,u(t.membershipData.greeting),1),e("div",bt,u(t.membershipData.description),1)]),e("a",{href:i.value,class:"more-link",onClick:R},u(t.membershipData.moreLinkText),9,yt)])]),e("div",wt,[e("div",_t,[e("span",Ct,u(t.membershipData.promoText),1)]),e("a",{href:L.value,target:"_blank",class:"join-button",onClick:m},u(t.membershipData.joinButtonText),9,kt)])]),e("div",$t,[$(D,{class:"benefits-carousel-wrapper","auto-play":!1,"indicator-type":"dot","show-arrow":"always"},{default:Y(()=>[$(B,null,{default:Y(()=>[e("div",St,[e("div",Dt,[e("div",{class:"iconItemImg",innerHTML:n(Ne)},null,8,Tt),e("span",null,u(n(w)("home.membershipBenefitsExclusive")),1)]),e("div",xt,[e("div",{class:"iconItemImg",innerHTML:n(We)},null,8,Lt),e("span",null,u(n(w)("home.membershipBenefitsPoints")),1)]),e("div",Ht,[e("div",{class:"iconItemImg",innerHTML:n(je)},null,8,It),e("span",null,u(n(w)("home.membershipBenefitsGift")),1)]),e("div",Mt,[e("div",{class:"iconItemImg",innerHTML:n(Fe)},null,8,Rt),e("span",null,u(n(w)("home.membershipBenefitsOnlineSelectionBeforeCheckIn")),1)])])]),_:1}),$(B,null,{default:Y(()=>[e("div",Bt,[e("div",Et,[e("div",{class:"iconItemImg",innerHTML:n(Ge)},null,8,Ot),e("span",null,u(n(w)("home.membershipBenefitsSelectRoom")),1)]),e("div",zt,[e("div",{class:"iconItemImg",innerHTML:n(Ue)},null,8,At),e("span",null,u(n(w)("home.membershipBenefitsElectronicKey")),1)]),e("div",Pt,[e("div",{class:"iconItemImg",innerHTML:n(Ve)},null,8,Nt),e("span",null,u(n(w)("home.membershipBenefitsFreeWifi")),1)]),e("div",Wt,[e("div",{class:"iconItemImg",innerHTML:n(qe)},null,8,jt),e("span",null,u(n(w)("home.membershipBenefitsExclusiveExperience")),1)])])]),_:1})]),_:1})])])])}}},Ft=Z(qt,[["__scopeId","data-v-fbe77c9d"]]),Gt=["aria-label"],Ut=["href"],Vt={class:"hotel-image-wrapper"},Xt=["src","alt"],Kt=["innerHTML"],Jt={class:"hotel-info"},Qt={class:"hotel-name"},Yt={key:0,class:"hotel-description"},Zt={__name:"CardImgPc",props:{hotel:{type:Object,required:!0},isShowTag:{type:Boolean,default:!0},addressPos:{type:String,default:"top"},isShowDescription:{type:Boolean,default:!0}},emits:["click"],setup(t,{emit:g}){const w=he(),R=le(w.currentRoute.value),m=t,i=C(!1),L=z(()=>{var E;if(!i.value||(E=m.hotel.treatments)!=null&&E.includes("affiliate"))return"";const D=it(m.hotel.brandCode).whiteLogo;if(!D)return"";const H=m.hotel.hotelCode||m.hotel.route||m.hotel.id||m.hotel.brandCode;return Xe(D,`hotel-card-${H}`)}),k=z(()=>`/${R}/hotels/${m.hotel.route}`);ne(()=>{i.value=!0});const _=g,B=()=>{_("click")};return(D,H)=>(s(),a("article",{class:"hotel-card card-source-pc","aria-label":t.hotel.name},[e("a",{href:k.value,onClick:B},[e("div",Vt,[e("img",{src:t.hotel.masterCover.url,alt:t.hotel.masterCover.alt,class:"hotel-image",loading:"lazy",decoding:"async"},null,8,Xt),L.value?(s(),a("div",{key:0,class:"hotel-brand-logo",innerHTML:L.value},null,8,Kt)):S("",!0)]),e("div",Jt,[e("h3",Qt,u(t.hotel.hotelName),1),t.hotel.sellingPoints&&t.hotel.sellingPoints.length>0?(s(),a("p",Yt,u(t.hotel.sellingPoints[0]),1)):S("",!0)])],8,Ut)],8,Gt))}},ye=Z(Zt,[["__scopeId","data-v-27431417"]]),es={class:"city-showcase-panel"},ts=["src","alt"],ss={class:"panel-content"},os={class:"panel-title"},ls={key:0,class:"city-tabs"},ns=["onClick"],as={class:"city-info"},is={class:"city-name"},cs=["innerHTML"],rs=["href"],us=["href"],ds={class:"card-list-wrapper"}
1,hs={key:1,class:"card-list city-content-ssr-only"},fs={key:2,class:"card-progress-bar"},vs={class:"progress-bar-track"},ms={class:"progress-bar-buttons"},gs={__name:"CityShowcasePc",props:{title:{type:String,default:""},exploreButtonText:{type:String,default:""},cities:{type:Array,required:!0},defaultCityId:{type:[String,Number],default:""}},setup(t){var J;const{t:g}=Ce(),w=he(),R=le(w.currentRoute.value),m=z(()=>`/${R}/campaign/destination`),i=t,L=C(),k=C(),_=C(i.defaultCityId||((J=i.cities[0])==null?void 0:J.id)||""),B=C(!1),D=C(!1),H=C(0),E=C(0),U=C(0),V=C(null);Re(()=>{var c;!_.value&&i.cities&&i.cities.length>0&&(_.value=i.defaultCityId||((c=i.cities[0])==null?void 0:c.id)||"")});const ee=z(()=>{var c,f;return((c=i.cities.find(r=>r.id===_.value))==null?void 0:c.pcImgSrc)||((f=i.cities[0])==null?void 0:f.pcImgSrc)||""}),X=c=>{_.value=c,L.value&&(L.value.scrollLeft=0),re(()=>{d()})},O=()=>k.value?Array.isArray(k.value)?k.value[0]:k.value:null,te=z(()=>{const c=O();if(!c)return!1;const{scrollWidth:f,clientWidth:r}=c;return f>r}),Q=()=>{const c=O();if(!c)return 0;const f=c.querySelectorAll(".hotel-card");if(f.length===0)return 0;if(f.length>=2){const r=f[0].getBoundingClientRect(),A=f[1].getBoundingClientRect().left-r.right;return(r.width+A)*2}else if(f.length===1)return f[0].getBoundingClientRect().width*2;return 0},d=()=>{const c=O();if(!c)return;const{scrollLeft:f,scrollWidth:r,clientWidth:y}=c,A=r-y;A>0?U.value=f/A*100:U.value=0},K=()=>{const c=O();if(!c)return;const f=c.scrollLeft,r=Q(),y=Math.max(0,f-r);c.scrollTo({left:y,behavior:"smooth"})},h=()=>{const c=O();if(!c)return;const f=c.scrollLeft,{scrollWidth:r,clientWidth:y}=c,A=r-y,se=Q(),ie=Math.min(A,f+se);c.scrollTo({left:ie,behavior:"smooth"})},x=()=>{V.value&&(cancelAnimationFrame(V.value),V.value=null)},W=c=>{const f=O();f&&(B.value=!0,D.value=!1,H.value=c.pageX-f.offsetLeft,E.value=f.scrollLeft,f.classList.add("dragging"))},I=c=>{const f=O();if(!B.value||!f)return;const y=(c.pageX-f.offsetLeft-H.value)*2;Math.abs(y)>5&&(D.value=!0,c.preventDefault(),f.scrollLeft=E.value-y)},M=()=>{const c=O();c&&(B.value=!1,c.classList.remove("dragging"),setTimeout(()=>{D.value=!1},100))};return ne(()=>{re(()=>{d()})}),fe(()=>{x()}),(c,f)=>(s(),a("div",es,[e("img",{class:"hotel-image",src:ee.value,alt:t.title,loading:"lazy",decoding:"async"},null,8,ts),e("div",ss,[e("h2",os,u(t.title),1),t.cities&&t.cities.length>0?(s(),a("div",ls,[(s(!0),a(N,null,j(t.cities,r=>(s(),a("div",{class:q(["city-item",{active:r.id===_.value}]),key:r.id,onClick:y=>X(r.id)},u(r.destination),11,ns))),128))])):S("",!0),(s(!0),a(N,null,j(t.cities,r=>(s(),a(N,{key:`city-${r.id}`},[r?(s(),a("div",{key:0,class:q(["cityContent section-wrapper-boxL-pc",{"city-content-active":r.id===_.value,"city-content-hidden":r.id!==_.value}])},[e("div",as,[e("div",is,u(r.destination),1),e("p",{class:"city-description",innerHTML:r.summary},null,8,cs),r.pcLink?(s(),a("a",{key:0,href:r.pcLink,target:"_blank",class:"explore-button",onClick:f[0]||(f[0]=y=>n(Qe)())},u(r.buttonText),9,rs)):S("",!0),e("a",{href:m.value,class:"more-link",onClick:f[1]||(f[1]=y=>n(Ye)())},[Be(u(n(g)("home.cityShowcaseMoreLinkText"))+" ",1),$(n(ae),{size:20})],8,us)]),e("div",ds,[r.id===_.value?(s(),a("div",{key:0,class:"card-list",ref_for:!0,ref_key:"cardListRef",ref:k,onScroll:d,onMousedown:W,onMousemove:I,onMouseup:M,onMouseleave:M},[(s(!0),a(N,null,j(r.hotels||[],(y,A)=>(s(),F(ye,{key:`${r.id}-${y.hotelCode||y.route||y.id||A}`,hotel:y,onClick:se=>n(Ze)({propertyCode:y.hotelCode})},null,8,["hotel","onClick"]))),128))],544)):(s(),a("div",hs,[(s(!0),a(N,null,j(r.hotels||[],(y,A)=>(s(),F(ye,{key:`${r.id}-${y.hotelCode||y.route||y.id||A}`,hotel:y},null,8,["hotel"]))),128))])),r.id===_.value&&te.value?(s(),a("div",fs,[e("div",vs,[e("div",{class:"progress-bar-fill",style:_e({width:`${U.value}%`})},null,4)]),e("div",ms,[e("button",{type:"button",class:"progress-bar-button progress-bar-button-left","aria-label":"åå·¦æ»å¨",onClick:K},[$(n(ue))]),e("button",{type:"button",class:"progress-bar-button progress-bar-button-right","aria-label":"å峿»å¨",onClick:h},[$(n(de))])])])):S("",!0)])],2)):S("",!0)],64))),128))])]))}},ps=Z(gs,[["__scopeId","data-v-e4e9798f"]]),bs={class:"customized-exclusive-pc section-wrapper-box-pc"},ys={class:"header-section"},ws={class:"main-title"},_s={class:"subtitle"},Cs={class:"cards-container"},ks=["onMouseenter"],$s=["href"],Ss=["innerHTML"],Ds={class:"action-arrow","aria-hidden":"true"},we=600,Ts=200,xs={__name:"CustomizedExclusivePc",props:{title:{type:String,default:""},subtitle:{type:String,default:""},categories:{type:Array,required:!0,default:()=>[]},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},defaultActiveIndex:{type:Number,default:0}},setup(t){const g=t,w=z(()=>g.categories||[]),R=h=>{const x=w.value.length;return x===0?0:h>=0&&h<x?h:Math.floor(x/2)},m=C(R(g.defaultActiveIndex)),i=C(null);let L=null,k=null,_=!1,B=null,D=null;const H=()=>{B!==null&&(clearTimeout(B),B=null),D!==null&&(clearTimeout(D),D=null)},E=(h,x={})=>{const{immediate:W=!1}=x,I=w.value.length;if(!(I===0||h<0||h>=I)){if(W){H(),m.value=h,i.value=h;return}if(h===m.value){i.value=h;return}H(),i.value=null,B=window.setTimeout(()=>{m.value=h,D=window.setTimeout(()=>{i.value=h},we)},Ts)}},U=()=>{H(),D=window.setTimeout(()=>{i.value=m.value},we)},V=()=>{O(),k!==null&&(clearTimeout(k),k=null),H()},ee=()=>{if(_)return;const h=w.value.length;if(h===0)return;const x=(m.value+1)%h;E(x)},X=()=>
1{!g.autoplay||L!==null||_||(L=window.setInterval(()=>{ee()},g.interval))},O=()=>{L!==null&&(window.clearInterval(L),L=null)},te=h=>{_=!0,O(),E(h),k!==null&&(clearTimeout(k),k=null)},Q=()=>{_=!1,k!==null&&clearTimeout(k),k=setTimeout(()=>{g.autoplay&&!_&&X()},2e3)},d=h=>h?h.replace(/([,ï¼])\s*/g,"$1<br />"):"",K=(h,x)=>{const W=w.value.length===1?"100%":`calc((100% - 6.79rem) / (${w.value.length} - 1))`;return{backgroundImage:`url(${h.imgSrc})`,width:W}};return ce(()=>g.autoplay,h=>{h&&!_?X():O()}),ce(()=>g.defaultActiveIndex,h=>{E(R(h),{immediate:!0})}),ce(()=>w.value.length,()=>{E(R(m.value),{immediate:!0})}),ne(()=>{U(),g.autoplay&&!_&&X()}),fe(()=>{V()}),(h,x)=>{const W=Ee("css-vars");return s(),a("div",bs,[e("div",ys,[e("h2",ws,u(t.title),1),e("p",_s,u(t.subtitle),1)]),e("div",Cs,[(s(!0),a(N,null,j(w.value,(I,M)=>me((s(),a("div",{key:I.id||M,class:q(["card-item",{active:M===m.value}]),onMouseenter:J=>te(M),onMouseleave:Q},[e("a",{href:I.pcLink||"#",target:"_blank"},[e("div",{class:q(["card-overlay",{"overlay-transitioning":M===m.value}])},[me(e("span",{class:"overlay-text"},u(I.subTitle),513),[[Oe,M!==m.value||i.value!==M]])],2),e("div",{class:q(["card-content",{"content-visible":M===i.value}])},[e("h3",{class:q(["card-title",{"title-visible":M===i.value}]),innerHTML:d(I.title)},null,10,Ss),I.pcLink?(s(),a("div",{key:0,class:q(["card-action",{"action-visible":M===i.value}]),onClick:x[0]||(x[0]=(...J)=>n(pe)&&n(pe)(...J))},[e("span",{class:q(["action-text",{"text-transitioned":M===m.value&&i.value===M}])},u(I.linkText||I.subTitle),3),e("span",Ds,[$(n(ae),{size:20})])],2)):S("",!0)],2)],8,$s)],42,ks)),[[W,K(I),"card-item"]])),128))])])}}},Ls=Z(xs,[["__scopeId","data-v-28dff1ee"]]),Hs="/assets/meetings-events-pc1-6cz0weBW.jpg",Is="/assets/meetings-events-pc2-yGqIPwix.jpg",Ms={class:"meetings-events section-wrapper-box-pc"},Rs={class:"meetings-events__content"},Bs={class:"meetings-events__intro"},Es={key:0,class:"intro-label"},Os={class:"intro-title"},zs={key:1,class:"intro-description"},As=["aria-label"],Ps=["href","onClick"],Ns=["src","alt"],Ws={class:"card-content"},js={class:"card-title"},qs={class:"card-info"},Fs={class:"card-subtitle"},Gs={__name:"MeetingsEventsPc",props:{label:{type:String,default:""},title:{type:String,required:!0},description:{type:String,default:""},backgroundImage:{type:String,default:""},cards:{type:Array,default:()=>[]}},setup(t){const g={wedding:Hs,event:Is},w=R=>{R.type==="wedding"?et():R.type==="event"&&tt()};return(R,m)=>(s(),a("section",Ms,[e("div",Rs,[e("div",Bs,[t.label?(s(),a("p",Es,u(t.label),1)):S("",!0),e("h2",Os,u(t.title),1),m[0]||(m[0]=e("div",{class:"line"},null,-1)),t.description?(s(),a("p",zs,u(t.description),1)):S("",!0)]),t.cards.length?(s(),F(n(nt),{key:0,class:"meetings-events__cards",gap:32},{default:Y(()=>[(s(!0),a(N,null,j(t.cards,i=>(s(),a("article",{key:i.id,class:"event-card","aria-label":`${i.title||""}`},[e("a",{href:i.link,target:"_blank",onClick:L=>w(i)},[e("img",{src:g[i.type]||i.image,alt:i.title,loading:"lazy",decoding:"async"},null,8,Ns),e("div",Ws,[e("h3",js,u(i.title),1),e("div",qs,[e("p",Fs,u(i.subtitle),1),$(n(ae),{size:20})])])],8,Ps)],8,As))),128))]),_:1})):S("",!0)])]))}},Us=Z(Gs,[["__scopeId","data-v-2110feef"]]),Vs="/assets/footerPc-AZ22OMvI.png",Xs={class:"home-pc"},Ks={class:"hero-section banner-section"},Js={class:"hero-carousel-wrapper"},Qs=["src","alt","loading"],Ys={key:0,class:"hero-carousel-controls"},Zs=["disabled"],eo={class:"hero-carousel-pagination"},to=["disabled"],so={class:"search-section"},oo={class:"search-hero-section"},lo={key:1,class:"exclusive-offers-section"},no={class:"section-container"},ao={class:"section-title cardTitle card-title-margin"},io={class:"offers-carousel-wrapper section-wrapper-box-pc"},co={class:"offers-carousel-wrapper-main"},ro={class:"offers-group"},uo={key:4,class:"new-hotels-section"},ho={class:"section-container"},fo={class:"section-title cardTitle"},vo={class:"section-subtitle cardSubtitle card-subtitle-margin"},mo={class:"hotels-scroll-wrapper"},go={class:"hotels-scroll-container"},po={class:"hotels-list-horizontal"},bo={key:0,class:"first-card-wrapper-horizontal"},yo={key:0,class:"hotels-progress-bar section-wrapper-box-pc"},wo={class:"progress-bar-track"},_o={class:"progress-bar-buttons"},Co=["href"],ko={class:"back-img-section"},$o=["src"],So={__name:"HomePC",props:{heroData:{type:Object,required:!0,default:()=>({images:[]})},searchData:{type:Object,required:!0,default:()=>({destination:"",keyword:"",checkInDate:"",checkOutDate:"",rooms:1,adults:1,children:0})},membershipData:{type:Object,default:null},exclusiveOffersData:{type:Object,default:null},cityShowcaseData:{type:Object,default:null},customizedExclusiveData:{type:Object,default:null},newHotelsData:{type:Object,default:null},meetingsEventsData:{type:Object,default:null},brandShowcaseData:{type:Object,default:null}},setup(t){const g=t,w=he(),R=le(w.currentRoute.value),m=C(null),i=C(null),L=()=>
1{if(typeof window>"u")return null;if(i.value&&document.body.contains(i.value))return i.value;const o=document.querySelector(".app-content");return i.value=o,o},k=()=>typeof window>"u"?null:L()||window,_=(o,l)=>{if(!o||typeof window>"u")return 0;if(!l||l===window){const v=window.scrollY??document.documentElement.scrollTop??0;return o.getBoundingClientRect().top+v}const p=o.getBoundingClientRect(),b=l.getBoundingClientRect();return p.top-b.top+l.scrollTop},B=()=>{if(typeof document>"u"||!m.value)return;const o=k();if(!o)return;const b=_(m.value,o)-110;o===window?window.scrollTo({top:b,behavior:"smooth"}):o.scrollTo({top:b,behavior:"smooth"})},D=z(()=>{let o=[];return Array.isArray(g.heroData)?o=g.heroData:g.heroData&&Array.isArray(g.heroData.images)&&(o=g.heroData.images),o.filter(l=>l&&l.pcImgSrc)}),H=C(null),E=C(1),U=z(()=>D.value.length),V=z(()=>E.value>1),ee=z(()=>E.value<U.value),X=()=>{H.value&&H.value.prev()},O=()=>{H.value&&H.value.next()},te=o=>{E.value=o+1},Q=o=>{lt(),o.pcLink&&window.open(o.pcLink,"_blank")},d=C(null),K=C(5),h=C(null),x=C(!1),W=C(0),I=C(0),M=z(()=>{if(!g.newHotelsData||!Array.isArray(g.newHotelsData.hotels)||g.newHotelsData.hotels.length<=1)return[];const o=g.newHotelsData.hotels.slice(1),l=[];for(let p=0;p<o.length;p+=3)l.push(o.slice(p,p+3));return l}),J=z(()=>{if(!d.value)return!1;const{scrollWidth:o,clientWidth:l}=d.value;return o>l}),c=()=>{if(!d.value)return;const{scrollLeft:o,scrollWidth:l,clientWidth:p}=d.value,b=l-p;b>0?K.value=o/b*100<5?5:o/b*100:K.value=5},f=()=>{h.value&&(cancelAnimationFrame(h.value),h.value=null)},r=()=>{if(!d.value)return 0;const l=d.value.querySelector(".hotels-list-horizontal");if(!l)return 0;const p=l.querySelector(".first-card-wrapper-horizontal"),b=l.querySelectorAll(".small-cards-group");if(!p&&b.length===0)return 0;let v=0;if(p&&b.length>0){const T=p.getBoundingClientRect(),oe=b[0].getBoundingClientRect().left-T.right;v=T.width+oe}else if(b.length>=2){const T=b[0].getBoundingClientRect(),oe=b[1].getBoundingClientRect().left-T.right;v=T.width+oe}else b.length===1&&(v=b[0].getBoundingClientRect().width);return v*2},y=()=>{if(!d.value)return;const o=d.value.scrollLeft,l=r(),p=Math.max(0,o-l);d.value.scrollTo({left:p,behavior:"smooth"})},A=()=>{if(!d.value)return;const o=d.value.scrollLeft,{scrollWidth:l,clientWidth:p}=d.value,b=l-p,v=r(),T=Math.min(b,o+v);d.value.scrollTo({left:T,behavior:"smooth"})},se=o=>{if(!d.value)return;x.value=!0;const l=d.value.getBoundingClientRect();W.value=o.pageX-l.left,I.value=d.value.scrollLeft,d.value.style.cursor="grabbing",d.value.style.userSelect="none"},ie=o=>{if(!x.value||!d.value)return;o.preventDefault();const l=d.value.getBoundingClientRect(),b=(o.pageX-l.left-W.value)*2;d.value.scrollLeft=I.value-b},ke=()=>{d.value&&(x.value=!1,d.value.style.cursor="grab",d.value.style.userSelect="")},$e=()=>{d.value&&(x.value=!1,d.value.style.cursor="grab",d.value.style.userSelect="")};ne(()=>{re(()=>{c(),P.value})}),fe(()=>{f()});const P=C(null),ve=()=>{if(!P.value)return 0;const o=P.value,l=o.querySelector(".offer-card-wrapper");if(!l)return 0;const p=l.getBoundingClientRect(),b=p.width,v=o.querySelector(".offer-card-wrapper:nth-child(2)");let T=0;return v&&(T=v.getBoundingClientRect().left-p.right),b+T},Se=()=>{},De=()=>{if(!P.value)return;const o=P.value.scrollLeft,l=ve(),p=Math.max(0,o-l);P.value.scrollTo({left:p,behavior:"smooth"})},Te=()=>{if(!P.value)return;const o=P.value.scrollLeft,{scrollWidth:l,clientWidth:p}=P.value,b=l-p,v=ve(),T=Math.min(b,o+v);P.value.scrollTo({left:T,behavior:"smooth"})};return(o,l)=>{const p=xe,b=Le;return s(),a("div",Xs,[$(ge,{"sticky-target":".more-destination-icon",isShowKeyword:!0,searchData:t.searchData},null,8,["searchData"]),e("section",Ks,[e("div",Js,[$(b,{ref_key:"heroCarouselRef",ref:H,class:"hero-carousel",autoplay:5e3,touchable:!0,"show-indicators":!1,onChange:te},{default:Y(()=>[(s(!0),a(N,null,j(D.value,(v,T)=>(s(),F(p,{key:T,onClick:G=>Q(v)},{default:Y(()=>[e("img",{src:v.pcImgSrc,alt:v.imgAlt,class:q(["hero-carousel-img",{"hero-carousel-img-pointer":v.pcLink}]),loading:T===0?"eager":"lazy",decoding:"async"},null,10,Qs)]),_:2},1032,["onClick"]))),128))]),_:1},512),D.value.length>1?(s(),a("div",Ys,[e("button",{type:"button",class:"hero-carousel-arrow hero-carousel-arrow-left",disabled:!V.value,onClick:X},[$(n(ue))],8,Zs),e("span",eo,u(E.value)+"/"+u(D.value.length),1),e("button",{type:"button",class:"hero-carousel-arrow hero-carousel-arrow-right",disabled:!ee.value,onClick:O},[$(n(de))],8,to)])):S("",!0)]),e("div",so,[e("div",oo,[$(ge,{theme:"light","force-sticky":!0,isS
1howKeyword:!0,isShowHeader:!1,searchData:t.searchData,special:!0},null,8,["searchData"])])]),e("div",{class:"more-destination-icon",onClick:B},[$(n(ze),{size:20})])]),e("div",{ref_key:"homeMainRef",ref:m,class:"homeMain"},[t.membershipData?(s(),F(Ft,{key:0,"membership-data":t.membershipData},null,8,["membership-data"])):S("",!0),t.exclusiveOffersData.offers.length>0?(s(),a("section",lo,[e("div",no,[e("h2",ao,u(t.exclusiveOffersData.title),1),e("div",io,[e("div",co,[e("div",{class:"offers-scroll-container",ref_key:"offersScrollRef",ref:P,onScroll:Se},[e("div",ro,[(s(!0),a(N,null,j(t.exclusiveOffersData.offers,(v,T)=>(s(),a("div",{key:T,class:"offer-card-wrapper"},[$(at,{"background-image":v.imgSrc,"img-alt":v.imgAlt,badge:v.tags,title:v.title,subtitle:v.subTitle,"button-text":v.linkText,"link-url":v.pcLink,onCampaignGalleryClick:l[0]||(l[0]=G=>n(st)())},null,8,["background-image","img-alt","badge","title","subtitle","button-text","link-url"])]))),128))])],544),t.exclusiveOffersData&&t.exclusiveOffersData.offers&&t.exclusiveOffersData.offers.length>3?(s(),a("button",{key:0,type:"button",class:"carousel-arrow-pc carousel-arrow-pc-left",onClick:De},[$(n(Ae))])):S("",!0),t.exclusiveOffersData&&t.exclusiveOffersData.offers&&t.exclusiveOffersData.offers.length>3?(s(),a("button",{key:1,type:"button",class:"carousel-arrow-pc carousel-arrow-pc-right",onClick:Te},[$(n(ae))])):S("",!0)])])])])):S("",!0),t.cityShowcaseData.cities.length>0?(s(),F(ps,{key:2,title:t.cityShowcaseData.title,cities:t.cityShowcaseData.cities,"default-city-id":t.cityShowcaseData.defaultCityId},null,8,["title","cities","default-city-id"])):S("",!0),t.customizedExclusiveData.categories.length>0?(s(),F(Ls,{key:3,title:t.customizedExclusiveData.title,subtitle:t.customizedExclusiveData.subtitle,categories:t.customizedExclusiveData.categories,autoplay:t.customizedExclusiveData.autoplay,interval:t.customizedExclusiveData.interval,"default-active-index":t.customizedExclusiveData.defaultActiveIndex},null,8,["title","subtitle","categories","autoplay","interval","default-active-index"])):S("",!0),t.newHotelsData.hotels.length>0?(s(),a("section",uo,[e("div",ho,[e("h2",fo,u(t.newHotelsData.title),1),e("p",vo,u(t.newHotelsData.subtitle),1),e("div",mo,[e("div",go,[e("div",{class:"hotels-scroll-content",ref_key:"hotelsScrollRef",ref:d,onScroll:c,onMousedown:se,onMousemove:ie,onMouseup:ke,onMouseleave:$e},[e("div",po,[t.newHotelsData.hotels.length>0?(s(),a("div",bo,[$(rt,{hotel:t.newHotelsData.hotels[0],"field-map":t.newHotelsData.fieldMap,"address-pos":"bottom","is-show-tag":!0,"is-show-description":!1,"opening-desc":!0,"is-show-button":!0,"is-show-detail-button":!0,onCardDigitalClick:l[1]||(l[1]=v=>n(be)({propertyCode:t.newHotelsData.hotels[0].hotelCode}))},null,8,["hotel","field-map"])])):S("",!0),(s(!0),a(N,null,j(M.value,(v,T)=>(s(),a("div",{key:`group-${T}`,class:"small-cards-group"},[(s(!0),a(N,null,j(v,(G,oe)=>(s(),a("div",{key:`hotel-${G.hotelCode}-${oe}`,class:"small-card-wrapper-horizontal"},[$(ut,{hotel:G,isShowPc:!0,"is-show-description":!1,"field-map":t.newHotelsData.fieldMap,onCardDigitalClick:Do=>n(be)({propertyCode:G.hotelCode})},null,8,["hotel","field-map","onCardDigitalClick"])]))),128))]))),128))])],544)])]),J.value?(s(),a("div",yo,[e("div",wo,[e("div",{class:"progress-bar-fill",style:_e({width:`${K.value}%`})},null,4)]),e("div",_o,[e("button",{type:"button",class:"progress-bar-button progress-bar-button-left","aria-label":"åå·¦æ»å¨",onClick:y},[$(n(ue))]),e("button",{type:"button",class:"progress-bar-button progress-bar-button-right","aria-label":"å峿»å¨",onClick:A},[$(n(de))])])])):S("",!0),e("a",{class:"explore-button explore-button-pc explore-button-custom",href:`/${n(R)}/campaign/new-openings`,onClick:l[2]||(l[2]=v=>n(ot)())},u(t.newHotelsData.exploreButtonText),9,Co)])])):S("",!0),t.meetingsEventsData?(s(),F(Us,{key:5,label:t.meetingsEventsData.label,title:t.meetingsEventsData.title,description:t.meetingsEventsData.description,"background-image":t.meetingsEventsData.backgroundImage,cards:t.meetingsEventsData.cards,"action-text":t.meetingsEventsData.actionText}
1,null,8,["label","title","description","background-image","cards","action-text"])):S("",!0),t.brandShowcaseData?(s(),F(ct,{key:6,title:t.brandShowcaseData.title,subtitle:t.brandShowcaseData.subtitle,categories:t.brandShowcaseData.categories,brands:t.brandShowcaseData.brands,"featured-card":t.brandShowcaseData.featuredCard},null,8,["title","subtitle","categories","brands","featured-card"])):S("",!0),e("div",ko,[e("img",{src:n(Vs),alt:"FooterPc",loading:"lazy",decoding:"async"},null,8,$o)]),$(Pe)],512)])}}},Xo=Z(So,[["__scopeId","data-v-984e3581"]]);export{Xo as 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.