1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DpbPo-oB.js","./B3fAB7Is.js","./entry._uIEQ5MY.css"])))=>i.map(i=>d[i]); 2import{_ as jt,v as $t,u as qt,x as Wt,i as zt,y as Xt,z as Qt,B as Jt,A as S,P as Zt,a5 as nt,C as Kt,G as te,H as ee,I as ne,J as oe,S as re,s as ae,o as d,c as b,f as E,K as se,N as ie,d as y,e as o,w as ce,t as le,b as v,h as ot,O as ue,F as me,p as Ee,g as c,Q as pe,m as _e,R as Te,T as ye}from"./B3fAB7Is.js";import{_ as de}from"./Bne8PHnH.js";import{_ as ge,a as Ce}from"./DQV7kaG2.js";import{_ as Oe,a as Ne}from"./Cuf8DDv_.js";import{_ as Se}from"./CiqmGuQD.js";import{_ as ve}from"./CftmI_Qa.js";import{_ as he}from"./zbk9xs_3.js";import{_ as Ae}from"./DglwtL_y.js";import{A as rt}from"./BzRr7eBk.js";import{D as Pe}from"./DuZZKekN.js";import{u as Ie}from"./Cr3cX2VI.js";import{g as Re}from"./CQbb7cgX.js";import{g as be}from"./f0o7lUxp.js";import{u as fe}from"./DrlaVXo0.js";import{u as Le}from"./D5nVHPVQ.js";import{u as we}from"./CiADZmSK.js";import{u as Fe}from"./59fhL7Xo.js";import{u as Ye}from"./BblWiyBG.js";import{u as Ue}from"./BVsbaGU0.js";import{T as Ve}from"./Do7HKM95.js";import"./CQsbh6Hz.js";import"./BkOovHf9.js";import"./ZsJtdPZO.js";import"./TIiLzWSw.js";import"./DZpLDUlP.js";const ke=pe(()=>Te(()=>import("./DpbPo-oB.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(f=>f.default||f)),He={class:"hw-wrapper events-navbar"},Me={class:"hw-wrapper events-hero-section"},Ge={class:"hw-wrapper events-about-section"},De={key:0,class:"hw-wrapper events-list-section"},xe={class:"events-things-to-do-heading"},Be={key:1,class:"hw-wrapper best-properties-list-section"},je={key:2,class:"hw-wrapper events-faq-and-popular-locations-section split-view"},$e={class:"hw-wrapper grab-the-app-section"},qe={class:"hw-wrapper breadcrumbs-section"};ye?.setChannelAttribution(null,"EVENTSCITY");const We={__name:"index",async setup(f){let r,l;const{$url:D,$tracking:g}=$t(),{t:n,locale:at}=qt(),st=Wt(),{useUrl:u}=zt(),{isExtraSmallScreen:it}=Ie(),{useImage:ct}=Ee(),{buildSeo:lt}=Re(),{defineEventSchema:ut,defineLocationSchema:mt,defineFaqSchema:Et}=be(),{buildEventDetailsModel:pt,getEventPageUrlFromRawEvent:_t}=fe(),{getTopPropertiesByCityId:Tt,getCountryTopCities:yt}=Le(),{getCityLocationTranslatedById:dt}=we(),{getEventsByCityNameAndCountryName:gt}=Fe(),{getEventsCityPageTags:Ct}=Ye(),Ot=Xt(),x=Qt(),Nt=x.getFeatureVariables("web_enableOGevents")?.continent_enabled||!1,St=x.getFeatureVariables("web_enableOGevents")?.country_enabled||!1,B="eventscity",p=re.eventsCity,j=st?.params||null,m=Zt,vt=rt.EVENTS.CITY,ht={page:"events-city",linkPaths:rt?.EVENTS?.CITY?.mobile,linkParams:"search"},t=Ue().value?.location;if(!t?.id)throw console.error("### Events city not found"),Jt({statusCode:404,statusMessage:"Events city not found"});const h={continent:{id:t?.continentId,name:t?.continent,urlFriendlyName:t?.urlFriendlyContinent},country:{id:t?.countryId,name:t?.country,urlFriendlyName:t?.urlFriendlyCountry},city:{id:t?.id,name:t?.name,urlFriendlyName:t?.urlFriendlyName}},C=([r,l]=S(()=>gt(j?.city,j?.country)),r=await r,l(),r||{}),$=C?.events&&Array.isArray(C?.events)?C?.events:[],L=([r,l]=S(()=>Tt(m?.key,t?.id)),r=await r,l(),r),At=([r,l]=S(()=>yt(t?.countryId)),r=await r,l(),r||[]),q=new Set,w=[];for(const e of At){if(e?.id===t?.id||e?.urlFriendlyName===t?.urlFriendlyName)continue;const s=e?.urlFriendlyName;if(s){if(q.has(s))continue;q.add(s)}const a={propertyTypeSlug:n(m.slug),urlFriendlyContinent:e.urlFriendlyContinent,urlFriendlyCountry:e.urlFriendlyCountry,urlFriendlyCity:e.urlFriendlyName};w.push({id:e.id,name:e.name,label:e.name,title:e.name,url:u.getCityPageUrl(a)})}const W={mobile:t?.image?.mobile,tablet:t?.image?.tablet,desktop:t?.image?.desktop,heroImage:t?.image?.heroImage},z=u.getCountryPageUrl({propertyTypeSlug:n(m?.slug),urlFriendlyContinent:t?.urlFriendlyContinent,urlFriendlyCountry:t?.urlFriendlyCountry}),Pt=u.getCityPageUrl({propertyTypeSlug:n(m?.slug),urlFriendlyContinent:t?.urlFriendlyContinent,urlFriendlyCountry:t?.urlFriendlyCountry,urlFriendlyCity:t?.urlFriendlyName}),X=u.getCityPageUrl({propertyTypeSlug:n("t_OGEVENTSSLUG"),urlFriendlyContinent:t?.urlFriendlyContinent,urlFriendlyCountry:t?.urlFriendlyCountry,urlFriendlyCity:t?.urlFriendlyName}),It=([r,l]=S(()=>dt(t?.continentId,t?.countryId,t?.id)),r=await r,l(),r),Rt=X,bt=u.generateHrefLangForEventsCity(It),A=new Ve,F=([r,l]=S(()=>Ct(t?.id)),r=await r,l(),r),ft={canonicalUrl:Rt,ogImage:ct.getImage(W?.desktop)||""},Q=c(()=>Array.isArray($)?$.filter(e=>e!==null&&typeof e=="object"):[]),P=c(()=>{const e=n("t_OGEVENTSSLUG");return Q.value.map(s=>{const a=s?.location,T=a&&typeof a=="object"?{...a,continent:h.continent,country:h.country,city:h.city}:{...h},_={...s,location:T},O=_t(_,e);return pt(_,O)}).filter(s=>s!==null)}),J=c(()=>P.value?.map(e=>e.eventId)||[]),Lt=c(()=>P.value?.map(e=>e.schema)||[]),I=C?.totalEventsCount||C?.eventsCount||Q?.value?.length||0,wt=c(()=>{const e=F?.copy||Pe.aboutSection.city,s=/<h2>([\s\S]*?)<\/h2>/i,a=/<h3>([\s\S]*?)<\/h3>/i,T=e.match(s),_=e.match(a),O=e.replace(s,"").replace(a,""),V=T?.[1]?.trim().replace("##LOCATIONNAME##","<span>##LOCATIONNAME##</span>")||"",k=_?.[1]?.trim()||"",H=O?.trim()||"",M=new Date().getFullYear(),N={LO
2CATIONNAME:t?.name,YEAR:M},G={...N,NUMBEROFEVENTSPERLOCATION:I,EVENTSCOUNT:I,PROPCOUNT:t?.totalPropertiesAvailable||t?.numberOfProperties,REVIEWCOUNT:t?.numberOfReviews,REVIEWSCOUNT:t?.numberOfReviews,COUNTRY:t?.country,CHOSENCOUNTRY:t?.country,COUNTRYSEARCHURL:`<a href="${z}" target="_parent" rel="noopener" class="text-link underline bold">`,ENDCOUNTRYSEARCHURL:"</a>",CHOSENCONTINENT:t?.continent,CHOSENCITY:t?.name,CITY:t?.name,PROPERTYTYPE:n(m?.transcode_s),PROPERTYTYPES:n(m?.transcode),SERVERNAME:nt.HOSTELWORLD,ACTIVEFILTER:""};return{title:A.interpolate(V,N),subtitle:A.interpolate(k,N),content:A.interpolate(H,G)}}),Ft=c(()=>X),Yt=c(()=>`${t?.name}, ${t?.country}`),Ut=c(()=>n("t_OGEVENTSMESSAGE",{LOCATIONNAME:[t?.name,t?.country].join(", ")})),Vt=c(()=>_e(it)?2:null),Z={CHOSENCONTINENT:t?.continent,CHOSENCOUNTRY:t?.country,CHOSENCITY:t?.name,CITY:t?.name,COUNTRY:t?.country,COUNTRYSEARCHURL:z,LOCATIONNAME:t?.name,NUMBEROFEVENTSPERLOCATION:I,EVENTSCOUNT:I,PROPCOUNT:t?.totalPropertiesAvailable||t?.numberOfProperties,PROPERTYTYPE:n(m?.transcode_s),PROPERTYTYPES:n(m?.transcode),REVIEWCOUNT:t?.numberOfReviews,REVIEWSCOUNT:t?.numberOfReviews,SERVERNAME:nt.HOSTELWORLD,YEAR:new Date().getFullYear(),ACTIVEFILTER:""};function kt(e){return!e||typeof e!="string"?"":A.interpolate(e,Z,["##","##"])}const K=(()=>{const e=F?.faqContent;if(!e||!Object.keys(e).length)return{};const s={};for(const a of Object.keys(e))s[a]=kt(e[a]);return s})(),i=lt.getMetaData(F,ft,Z,!1,B),Y=c(()=>{const e=Object.keys(K).length>0?K:{},s=[];return Object.keys(e).length>0&&Object.keys(e).forEach(a=>{if(!a.match(/ response$/)&&e[a]){const T=D.processHtmlContent(e[a]),_=D.processHtmlContent(e[`${a} response`]);s.push({header:T?.processedContent||e[a],content:_?.processedContent??e[`${a} response`]??""})}}),s}),U=c(()=>Y?.value?.length>0);function Ht(e){g?.onTrackEvent({action:"FAQ Click",name:p.NAME,occasion_genius_faq:e??"",page_type:p.TYPE,occasion_genius_events:J.value?.join(",")||"",occasion_genius_event_city:t?.name,occasion_genius_event_country:t?.country})}const tt=c(()=>w?.length>0),et=[{label:n("t_HOME"),title:n("t_HOME"),link:u.getStaticBaseURL()},{label:n("t_A11YOGEVENTS"),title:n("t_OGEVENTS"),link:u.getEventsHomeUrl({rootSlug:n("t_OGEVENTSSLUG")})},...Nt?[{label:n("t_A11YOGEVENTSLISTLOCATION",{LOCATIONNAME:t?.continent,PROPERTYTYPE:n("t_OGEVENTS")}),title:n("t_A11YBCTEXTLOCATION",{LOCATIONNAME:t?.continent,PROPERTYTYPE:n("t_OGEVENTS")}),link:u.getEventsContinentPageUrl({rootSlug:n("t_OGEVENTSSLUG"),urlFriendlyContinent:t?.urlFriendlyContinent})}]:[],...St?[{label:n("t_A11YOGEVENTSLISTLOCATION",{LOCATIONNAME:t?.country,PROPERTYTYPE:n("t_OGEVENTS")}),title:n("t_A11YBCTEXTLOCATION",{LOCATIONNAME:t?.country,PROPERTYTYPE:n("t_OGEVENTS")}),link:u.getEventsCountryPageUrl({rootSlug:n("t_OGEVENTSSLUG"),urlFriendlyContinent:t?.urlFriendlyContinent,urlFriendlyCountry:t?.urlFriendlyCountry})}]:[],{label:n("t_A11YOGEVENTSLISTLOCATION",{LOCATIONNAME:t?.name,PROPERTYTYPE:n("t_OGEVENTS")}),title:n("t_A11YBCTEXTLOCATION",{LOCATIONNAME:t?.name,PROPERTYTYPE:n("t_OGEVENTS")}),link:u.getEventsCityPageUrl({rootSlug:n("t_OGEVENTSSLUG"),urlFriendlyContinent:t?.urlFriendlyContinent,urlFriendlyCountry:t?.urlFriendlyCountry,urlFriendlyCity:t?.urlFriendlyName})}];Kt(()=>({htmlAttrs:{lang:at?.value},link:[{rel:"canonical",href:i?.canonicalUrl}].concat(bt)})),te({title:()=>i?.title,ogTitle:()=>i?.ogTitle,description:()=>i?.description,ogDescription:()=>i?.ogDescription,ogUrl:()=>i?.canonicalUrl,ogImage:()=>i?.ogImage,ogImageAlt:()=>i?.ogDescription,ogType:()=>"website",keywords:()=>i?.keywords,robots:()=>"index, follow, maxImagePreview:large",twitterCard:()=>"summary_large_image",twitterTitle:()=>i?.ogTitle,twitterDescription:()=>i?.ogDescription,twitterImage:()=>i?.ogImage,twitterImageAlt:()=>i?.ogDescription});const Mt=et?.map(e=>({name:e?.title,item:e?.link}));ee([ne({"@id":"#hostelworldNavigation",name:"Breadcrumb",itemListElement:Mt}),mt("City",t,i),ut(Lt?.value),Et(U.value?Y?.value:null)]),Ot.setEntryPoint(B.toUpperCase());const Gt=L?.map(e=>e.id)||[],R={page_type:p.TYPE,name:p.NAME,occasion_genius_event_city:t?.name,occasion_genius_event_c
2ountry:t?.country,top_30_properties:Gt.join("|"),occasion_genius_events:J.value?.join("|")||""};function Dt(){g?.onTrackEvent({event_name:p.EVENT,action:"Share Link Clicked",...R})}function xt(e){g?.onTrackEvent({event_name:p.EVENT,action:"Share Link Success",share_og_method:e,...R})}return oe(()=>{const e={view:{event_name:p.NAME,...R},track:{event_name:p.VIEWED,...R}};g?.triggerPageView(e.view),g?.triggerPageEvent(e.track)}),(e,s)=>{const a=ke,T=de,_=ge,O=Oe,V=Ce,k=ae("i18n-t"),H=Se,M=ve,N=he,G=Ae,Bt=Ne;return d(),b(me,null,[E(a,se(ie(ht)),null,16),y("header",He,[E(T,{"show-language-pill":!1})]),y("section",Me,[E(_,{title:o(n)("t_OGEVENTSTOPTITLE"),subtitle:o(Yt),"share-url":o(Ft),"share-message":o(Ut),"share-popup-heading":o(n)("t_OGEVENTS"),onShareOpen:Dt,onShareMethodSelect:xt},null,8,["title","subtitle","share-url","share-message","share-popup-heading"])]),y("section",Ge,[E(O,{image:W}),E(V,{location:o(t),text:o(wt)},null,8,["location","text"])]),o(P)?.length?(d(),b("section",De,[y("h2",xe,[E(k,{keypath:"t_OGEVENTSBESTTHINGSTODOINLOCATION"},{CITYNAME:ce(()=>[y("span",null,le(o(t)?.name),1)]),_:1})]),E(H,{list:o(P)},null,8,["list"])])):v("",!0),o(L)?(d(),b("section",Be,[E(M,{properties:o(L),title:e.$t("t_BESTPROPTYPEBYFILTERINCITY",{PROPERTYTYPE:e.$t(o(m)?.transcode).toLowerCase(),FILTERTEXT:"",CITYNAME:`<span>${o(t)?.name}</span>`}),"view-more":!0,"view-more-url":o(Pt)},null,8,["properties","title","view-more-url"])])):v("",!0),o(U)||o(tt)?(d(),b("section",je,[o(U)?(d(),ot(N,{key:0,content:o(Y),onExpand:Ht},null,8,["content"])):v("",!0),o(tt)?(d(),ot(G,{key:1,"location-name":o(t)?.country,"other-locations":w,"property-type-obj":o(m)},null,8,["location-name","property-type-obj"])):v("",!0)])):v("",!0),y("section",$e,[E(Bt,{links:o(vt)},null,8,["links"])]),y("section",qe,[E(o(ue),{breadcrumbs:et,"max-crumbs-shown":o(Vt),reversed:!1},null,8,["max-crumbs-shown"])])],64)}}},Nn=jt(We,[["__scopeId","data-v-bef7ece6"]]);export{Nn as default}; 3//# sourceMappingURL=DRCpy3SX.js.map
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.