PageSourceSearch

https://www.livetheworld.com/_next/static/chunks/2755-e264555115fa5e74.js

js livetheworld.com collected 2026-10-02 14:48:24 UTC 127,348 bytes, 15 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2755],{57954:function(t,i){"use strict";i.Z={src:"/_next/static/media/left-quote-mark.b36180d8.svg",height:20,width:20,blurWidth:0,blurHeight:0}},36880:function(t,i){"use strict";i.Z={src:"/_next/static/media/right-quote-mark.856ca033.svg",height:20,width:20,blurWidth:0,blurHeight:0}},29131:function(t,i,r){"use strict";r.d(i,{AI:function(){return g},Kd:function(){return w},NO:function(){return f},Rt:function(){return y},Vi:function(){return x},Xx:function(){return _},fu:function(){return h},hG:function(){return d},hs:function(){return b},kU:function(){return m},ks:function(){return v},nd:function(){return p}});var n=r(85893);r(67294);var l=r(87379),a=r(86939),o=r(64156),s=r(95778),c=r(25675),u=r.n(c);let d=l.ZP.div.withConfig({componentId:"sc-a1449f2-0"})(["z-index:998;position:fixed;left:0;width:50%;top:50px;background:",";transform:",";transition:all 500ms ease-in-out;"],a.COLOR.PAPER_00,t=>t.opened?"":"translateX(-50vw)"),p=l.ZP.div.withConfig({componentId:"sc-a1449f2-1"})(["cursor:pointer;position:absolute;top:",";left:",";transition:all 500ms ease-in-out;height:61px;width:39px;background:#ffffff;border-radius:0px 10px 10px 0px;align-items:center;display:flex;justify-content:center;z-index:11;"],t=>
1t.$landingPage?"Calc(190px - 90px)":"190px",t=>t.$landingPage?"75vw":0),g=(0,l.ZP)(u()).withConfig({componentId:"sc-a1449f2-2"})(["width:10px;height:20px;"]),m=(0,l.ZP)(t=>{let{top:i,left:r,margin:l,bottom:a,modalInCenter:o,borderTopLeftRadius:s,borderTopRightRadius:c,...u}=t;return(0,n.jsx)("div",{...u})}).withConfig({componentId:"sc-a1449f2-3"})(["width:",";height:100%;top:",";left:",";margin:",";bottom:",";transform:",";transition:all 500ms ease-in-out;position:absolute;background:#ffffff;border-top-left-radius:20px;border-top-right-radius:20px;backdrop-filter:blur(4px);z-index:",";"],t=>t.mobile?"100%":"375px",t=>{let{top:i}=t;return i},t=>{let{left:i}=t;return i},t=>{let{margin:i}=t;return i},t=>{let{bottom:i}=t;return i},t=>t.opened?"":"translateY(1000px)",t=>t.z_index?t.z_index:"110");l.ZP.img.withConfig({componentId:"sc-a1449f2-4"})(["height:15px;width:15px;"]),l.ZP.div.withConfig({componentId:"sc-a1449f2-5"})(["position:absolute;right:18px;top:15px;cursor:pointer;"]);let h=l.ZP.div.withConfig({componentId:"sc-a1449f2-6"})(["width:94px;height:2px;background-color:#192f54;opacity:1;"]),y=l.ZP.div.withConfig({componentId:"sc-a1449f2-7"})(["cursor:pointer;display:flex;justify-content:center;align-items:center;margin-top:15px;margin-bottom:10px;"]);l.ZP.div.withConfig({componentId:"sc-a1449f2-8"})(["position:absolute;width:100%;height:30px;display:flex;justify-content:center;align-items:center;cursor:pointer;"]),(0,l.ZP)(t=>{let{error:i,...r}=t;return(0,n.jsx)(o.S,{...r})}).withConfig({componentId:"sc-a1449f2-9"})(["border-color:",";"],t=>{let{error:i}=t;return i?"#FC6B43":"#DEE6EE"}),l.ZP.label.withConfig({componentId:"sc-a1449f2-10"})(["margin-bottom:5px;font-family:",";font-weight:normal;font-size:13px;line-height:20px;color:#758298;"],a.g5.MULISH),l.ZP.div.withConfig({componentId:"sc-a1449f2-11"})(["margin-top:8px;display:flex;flex-direction:column;"]),l.ZP.h2.withConfig({componentId:"sc-a1449f2-12"})(["text-align:center;font-family:Poppins,sans-serif;color:",";font-size:24px;font-weight:800;line-height:44px;margin-top:15px;"],a.COLOR.MIDNIGHT_100),l.ZP.form.withConfig({componentId:"sc-a1449f2-13"})(["margin-bottom:15px;"]),l.ZP.a.withConfig({componentId:"sc-a1449f2-14"})([""]);let v=l.ZP.div.withConfig({componentId:"sc-a1449f2-15"})(["text-align:right;align-items:center;cursor:pointer;font-family:",";font-size:12px;font-weight:800;text-transform:uppercase;flex-wrap:nowrap;white-space:nowrap;"],a.g5.OPENSANS),b=(0,l.ZP)(s.kq).withConfig({componentId:"sc-a1449f2-16"})(["position:absolute;top:65px;width:40px;padding:0;color:",";border-color:",";display:",";&:hover{color:",";background-color:",";border-color:",";box-shadow:0px 4px 15px rgba(25,47,84,0.2);}"],a.COLOR.MIDNIGHT_100,a.COLOR.MIDNIGHT_100,t=>t.integratedViewOpen?"flex":"none",a.COLOR.PAPER_00,a.COLOR.MIDNIGHT_100,a.COLOR.MIDNIGHT_100),x=l.ZP.label.withConfig({componentId:"sc-a1449f2-17"})(["position:absolute;top:24.5%;left:calc(50% - 70px);width:140px;z-index:8;"]),f=l.ZP.div.withConfig({componentId:"sc-a1449f2-18"})(["width:70%;margin-left:15%;margin-top:0.5%;position:absolute;display:flex;justify-content:space-between;user-select:none;align-items:center;height:100%;"]),w=l.ZP.p.withConfig({componentId:"sc-a1449f2-19"})(["margin:0px;opacity:1;font-size:16px;color:white;font-weight:700;@media (max-width:","){font-size:14px;}"],a.dp.mobileM),_=l.ZP.div.withConfig({componentId:"sc-a1449f2-20"})(["right:",";"],t=>t.$isMapView?"55%":"45%");l.ZP.button.withConfig({componentId:"sc-a1449f2-21"})(["color:white;font-family:",";font-size:14px;font-weight:800;display:flex;flex-direction:column;justify-content:center;align-items:center;width:75px;height:40px;background:",";border-radius:25px;border:transparent;z-index:8;"],a.g5.OPENSANS,t=>t.active?"#F69175":"#FAC7B9")},94269:function(t,i,r){"use strict";r.r(i),r.d(i,{default:function(){return iA}});var n=r(85893),l=r(67294),a=r(45007),o=r(25806),s=r(17563),c=r(70148),u=r(87762),d=r(6158),p=r.n(d),g=r(81410),m=r(9669),h=r.n(m),y=r(24403),v=r(99245),b=r.n(v),x=r(83465),f=r.n(x),w=r(91296),_=r.n(w),C=r(1852),j=r(61335);r(3076);var k=r(12943),S=r(22222);let A=(0,S.P1)([t=>t.city.list,t=>t.city.currentSlug],(t,i)=>{let r=t.findIndex(t=>t.slug===i);return t[r]});var z=r(97392);let I=(0,S.P1)([t=>t.province.list,t=>t.province.currentSlug],(t,i)=>{let r=t.findIndex(t=>t.slug===i);return t[r]});(0,S.P1)([t=>t.province.detailedContentProvinces],t=>t?.length?t?.map(t=>{let{name:i,id:r,header_menu_image:n,slug:l}=t;return{title:i,id:r,image:n?.url||z.Z,slug:l}}):null);var L=r(29935);let M=t=>t.regions.region;var T=r(64752),$=r(51948),P=r(46102),E=r(6987),O=r(82403),N=r(26837),R=r(73359),B=r(96878),Z=r(36512);let F=t=>(t&&!t.pageNumber?(R.h.dispatch(D()),R.h.dispatch(q(t))):(t=R.h.getState().stories.searchParams).pageNumber=R.h.getState().stories?.paginationObj?.pageNumber?Number(R.h.getState().stories.paginationObj.pageNumber)+1:1,{type:B.MY,payload:Z.bl.getRequest
1("api/frontend/articles/paginated",t,{}).then(t=>({...t}))}),G=t=>({type:B.O8,payload:Z.bl.getRequest(`/api/frontend/articles/all?country=${t}&isItinerary=false`,{}).then(t=>({...t}))}),D=()=>t=>{t({type:B.oc})},q=t=>i=>{i({type:B.Ki,payload:t})},V=t=>i=>{i({type:B.RB,payload:t})},U=t=>i=>{i({type:B.ij,payload:t})};var H=r(95778),Y=r(86939);r(25816);var X={src:"/_next/static/media/NoImageMapPoint.6352651a.png",height:1280,width:1024,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAAQlBMVEXc5OMmUlppc2lrg3U5VFl8cmXj6ukDRFUwLizU3txyalm6x8JRZljH1dBQXE82Y2+Lo5CTYl6XhXefoqaNeWyAnosiKynPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMUlEQVR4nCXBCRIAEAwEsKUt6j7//1UzJMDnnBZVJMp0Omy1cQuirDkE4YExjZnhnwsluAFt8FpuwAAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},K=r(11920);let W=t=>(t&&!t.pageNumber?(R.h.dispatch(J()),R.h.dispatch(ee(t))):(t=R.h.getState().itineraries.searchParams).pageNumber=R.h.getState().itineraries.paginationObj?.pageNumber?Number(R.h.getState().itineraries.paginationObj.pageNumber)+1:1,{type:K.V,payload:Z.bl.getRequest("api/frontend/itineraries/paginated",t,{}).then(t=>({...t}))}),Q=t=>({type:K.sg,payload:Z.bl.getRequest(`/api/frontend/itineraries/all?country=${t}`,{}).then(t=>({...t}))}),J=()=>t=>{t({type:K.Qm})},ee=t=>i=>{i({type:K.iv,payload:t})},et=t=>i=>{i({type:K.zR,payload:t})};p().workerClass=g.Z,Y.jU.MARKER,Y.jU.MARKER_ACTIVE,Y.jU.MARKER_FAVORITE,Y.jU.MARKER_FAVORITE_ACTIVE,Y.jU.MARKER_BUCKET_LIST,Y.jU.MARKER_BUCKET_LIST_ACTIVE,Y.jU.MARKER_TRIP,Y.jU.MARKER_TRIP_ACTIVE,Y.jU.MARKER_STORY,Y.jU.MARKER_ITINERARY,(0,a.$j)(t=>({activityMarkerOpen:(0,k.Ug)(t),isExploreDrawerOpen:(0,L.L)(t),cities:t.city.list,provinces:t.province.list,allActivities:(0,k.w4)(t),filteredActivities:(0,k.CO)(t),region:M(t),currentActivity:(0,k.Nv)(t),sideMenuOpen:t.hamburgerMenu.isOpen,getFiltersLabels:(0,E.k)(t),getFiltersKeywords:(0,E.X)(t),includeDimmedBackground:t.dimmedBackground.includeDimmedBackground,isMapSourceSet:t.global.isMapSourceSet,currentCountry:t.country.currentCountry,enabledCountries:t.country.enabled,user:t.auth.user,currentProvince:I(t),currentCity:A(t),integratedViewOpen:t.global.integratedViewOpen,currentActivityDetailed:t.activity.currentActivity,currentSlug:t.activity.currentSlug,clickedCityOrProvinceId:t.global.clickedCityOrProvinceId,activeNavTab:t.global.activeNavTab,detailedContentCities:t.city.detailedContentCities,detailedContentProvinces:t.province.detailedContentProvinces,enabled:t.country.enabled,email:t.global.email,currentCityMapbox:t.city.currentCityMapbox,userTrips:t.trips.userTrips,tripFilter:t.searchFilter.trip,currentHoveredActivity:t.activity.currentHoveredActivity,isMapView:t.global.isMapView,storiesList:t.stories.list,itinerariesList:t.itineraries.list,currentStoryCoordinates:t.stories.currentStoryCoordinates,currentChosenItinerary:t.itineraries.currentChosenItinerary,currentStory:t.stories.currentStory}),t=>({setIsExploreDrawerOpen:i=>t((0,O.Qr)(i)),setActivityMarkerOpen:i=>t((0,T.vb)(i)),setCurrentActivitySlug:i=>t((0,T.Ro)(i)),setCurrentHoveredActivity:i=>t((0,T.H4)(i)),setMapSourceStatus:i=>t((0,O.sL)(i)),setCurrentCitySlug:i=>t((0,$.oz)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),setSwitchCountry:i=>t((0,O._n)(i)),setActiveNavTab:i=>t((0,O.Lx)(i)),resetCurrentActivity:()=>t((0,T.t9)()),setCurrentProvinceSlug:i=>t((0,P.YM)(i)),setCurrentCityMapbox:i=>t((0,$.OC)(i)),addActivityToTrip:i=>t((0,N.Hn)(i)),deleteActivityFromTrip:i=>t((0,N.tz)(i)),getUserTrips:()=>t((0,N.FG)()),setCurrentStoryCoordinates:i=>t(V(i)),setCurrentStory:i=>t(U(i)),fetchStoriesPaginated:i=>t(F(i)),fetchItinerariesPaginated:i=>t(W(i)),setCurrentItinerary:i=>t(et(i))}))(t=>{let{longitude:i,latitude:r,filteredActivities:a,onActivityClick:o,onMarkerClick:c,queryParams:u,currentActivity:d,region:g,sideMenuOpen:m,activityMarkerOpen:v,isExploreDrawerOpen:x,setIsExploreDrawerOpen:w,setActivityMarkerOpen:k,setCurrentActivitySlug:S,getFiltersLabels:A,getFiltersKeywords:z,zoomLevel:I,includeDimmedBackground:L,setCurrentHoveredActivity:M,isMapSourceSet:T,setMapSourceStatus:$,setSwitchCountry:P,popUpWidth:E,popUpHeight:O,router:N,smallMap:R=!1,currentCountry:B,enabledCountries:F,showEnabled:G=!1,setCurrentCitySlug:D,integratedViewOpen:q,currentActivityDetailed:V,setIntegratedViewOpen:U,currentSlug:K,clickedCityOrProvinceId:W,setActiveNavTab:Q,activeNavTab:J,detailedContentCities:ee,detailedContentProvinces:et,enabled:ei,allActivities:er,resetCurrentActivity:en,email:el,currentCityMapbox:ea,setCurrentProvinceSlug:eo,setCurrentCityMapbox:es,onCountrySwitch:ec=()=>{},userTrips:eu,tripFilter:ed,addActivityToTrip:ep,deleteActivityFromTrip:eg,getUserTrips:em,currentHoveredActivity:eh,isMapView:ey,entity_type:ev,country_slug:eb,entity_slug:ex,guideState:ef,currentProvince:ew,currentCity:e_,storiesList:eC,itinerariesList:ej,cities:ek,currentStoryCoordinates:eS,setCurrentStoryCoordinates:eA,setCurrentStory:ez,currentChosenItinerary:eI,currentStory:eL,fetchStoriesPaginated:eM,fetchItinerariesPaginated:eT,setCurrentItinerary:e$,isLessThanLaptop:eP,provinces:eE}=t,eO=navigator.userAgent.includes("ltw_screenshot_app"),[eN,eR]=(0,l.useState)(!1),eB=[{slug:"georgia",center:{lng:43.3576595,lat:42.3208914}
1,zoom:eO?7.5:7,zoomMobile:6.1},{slug:"turkey",center:{lng:28.96380043029785,lat:41.01300048828125},zoom:eO?8.5:8,zoomMobile:7.5},{slug:"belgium",center:{lng:4.5333312,lat:50.8999964},zoom:eO?7.5:7,zoomMobile:6.1},{slug:"netherlands",center:{lng:5.1886424160206275,lat:51.976099477743816},zoom:eO?7.75:7.35,zoomMobile:6.1},{slug:"czech-republic",center:{lng:14.444290186957344,lat:50.07466501658008},zoom:eO?10.5:10,zoomMobile:10},{slug:"slovenia",center:{lng:14.9955,lat:46.1512},zoom:eO?7.5:7.35,zoomMobile:6},{slug:"luxembourg",center:{lng:6.102247,lat:49.74034},zoom:eO?8.5:8.35,zoomMobile:10},{slug:"spain",center:{lng:-.4147263,lat:39.4703603},zoom:eO?8.25:8,zoomMobile:10},{slug:"portugal",center:{lng:-9.1713899,lat:38.7381688},zoom:eO?8:7.75,zoomMobile:10},{slug:"italy",center:{lng:12.5674,lat:41.8719},zoom:eO?9.5:9.25,zoomMobile:10},{slug:"hungary",center:{lng:19.031245757289696,lat:47.502877},zoom:eO?8:7.75,zoomMobile:10},{slug:"poland",center:{lng:19.1451,lat:51.9194},zoom:eO?8:7.75,zoomMobile:6},{slug:"japan",center:{lng:137.9765625,lat:36.65415573120117},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"paraguay",center:{lng:-58.16934585571289,lat:-23.316593170166016},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"indonesia",center:{lng:114.00997924804688,lat:-.19967399537563324},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"isle-of-man",center:{lng:-4.559114933013916,lat:54.19367980957031},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"iraq",center:{lng:44.17497634887695,lat:33.0955810546875},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"mexico",center:{lng:-102.50969696044922,lat:23.933591842651367},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"nicaragua",center:{lng:-85.03195190429688,lat:12.844353675842285},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"myanmar",center:{lng:96.51698303222656,lat:21.177576065063477},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"sweden",center:{lng:14.520858764648438,lat:59.67497253417969},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"saudi-arabia",center:{lng:44.54819107055664,lat:24.12628173828125},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"maldives",center:{lng:73.09101867675781,lat:-.6107479929924011},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"latvia",center:{lng:24.927066802978516,lat:56.85401153564453},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"mongolia",center:{lng:103.06755065917969,lat:46.83492660522461},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"hong-kong",center:{lng:114.16609954833984,lat:22.42118263244629},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"peru",center:{lng:-75.04585266113281,lat:-6.869969844818115},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"honduras",center:{lng:-86.597900390625,lat:14.822356224060059},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"iceland",center:{lng:-18.10590171813965,lat:64.98418426513672},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"algeria",center:{lng:2.9999825954437256,lat:28.00002670288086},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"jersey",center:{lng:-2.135838508605957,lat:49.22145462036133},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"new-zealand",center:{lng:172.83441162109375,lat:-41.500083923339844},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"israel",center:{lng:34.85947799682617,lat:30.81242561340332},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"lithuania",center:{lng:23.904937744140625,lat:55.33676528930664},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"kyrgyzstan",center:{lng:74.72409057617188,lat:41.508934020996094},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"serbia",center:{lng:20.793994903564453,lat:44.2306022644043},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"moldova",center:{lng:28.465003967285156,lat:47.20221710205078},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"albania",center:{lng:20.06507682800293,lat:41.13994598388672},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"liechtenstein",center:{lng:9.552864074707031,lat:47.141204833984375},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"lebanon",center:{lng:35.895355224609375,lat:33.922210693359375},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"finland",center:{lng:25.920915603637695,lat:63.24677658081055},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"jordan",center:{lng:36.941627502441406,lat:31.166704177856445},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"brazil",center:{lng:-53.20000076293945,lat:-10.333333015441895},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"united-states-of-america",center:{lng:-99.01834106445313,lat:39.503570556640625},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"switzerland",center:{lng:8.230965614318848,lat:46.801239013671875},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"french-guiana",center:{lng:-52.999996185302734,lat:4.003988265991211},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"uruguay",center:{lng:-56.0201530456543,lat:-32.875553131103516},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"uzbekistan",center:{lng:63.95280838012695,lat:41.32373046875},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"nepal",center:{lng:83.93660736083984,lat:28.260921478271484},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"romania",center:{lng:24.98456573486328,lat:45.83976745605469},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"tunisia",center:{lng:9.400137901306152,lat:33.84394073486328},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"namibia",center:{lng:17.323110580444336,lat:-23.233549118041992},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"vietnam",center:{lng:108.25662231445313,lat:13.423394203186035},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"azerbaijan",center:{lng:47.78725051879883,lat:40.39363098144531},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"bangladesh",center:{lng:90.25627899169922,lat:23.874309539794922},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"turkmenistan",center:{lng:59.392459869384766,lat:39.376380920410156},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"united-arab-emirates",center:{lng:53.999481201171875,lat:24.000247955322266},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"slovakia",center:{lng:19.484806060791016,lat:48.70747756958008},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"puerto-rico",center:{lng:-66.36221313476563,lat:18.21738624572754},zoom:eO?6.75:6.5,zoomMobile:5}
1,{slug:"russia",center:{lng:99.09856414794922,lat:61.66702651977539},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"tajikistan",center:{lng:70.8156509399414,lat:38.628173828125},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"argentina",center:{lng:-64.96728515625,lat:-34.996498107910156},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"thailand",center:{lng:101.01837921142578,lat:15.131789207458496},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"australia",center:{lng:134.49017333984375,lat:-25.72804832458496},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"guernsey",center:{lng:-2.5822348594665527,lat:49.45662307739258},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"cyprus",center:{lng:33.1451301574707,lat:34.982303619384766},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"estonia",center:{lng:25.837797164916992,lat:58.68366241455078},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"somalia",center:{lng:49.08341598510742,lat:8.367676734924316},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"bosnia-and-herzegovina",center:{lng:17.785192489624023,lat:44.168304443359375},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"canada",center:{lng:-96.60791015625,lat:62.57421112060547},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"ecuador",center:{lng:-79.36669921875,lat:-1.3397667407989502},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"el-salvador",center:{lng:-88.8673324584961,lat:13.732715606689453},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"colombia",center:{lng:-72.9088134765625,lat:4.099916934967041},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"chile",center:{lng:-71.31877136230469,lat:-31.761337280273438},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"gabon",center:{lng:11.689970016479492,lat:-.8999695181846619},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"belarus",center:{lng:28.049463272094727,lat:53.541934967041016},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"costa-rica",center:{lng:-84.19512939453125,lat:9.979021072387695},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"armenia",center:{lng:44.67366409301758,lat:40.76962661743164},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"egypt",center:{lng:29.87411880493164,lat:26.502248764038086},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"dominican-republic",center:{lng:-70.30280303955078,lat:19.097402572631836},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"germany",center:{lng:10.380807876586914,lat:51.09198760986328},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"guadeloupe",center:{lng:-61.56868362426758,lat:16.25288200378418},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"ireland",center:{lng:-7.979459762573242,lat:52.865196228027344},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"ukraine",center:{lng:31.39693832397461,lat:49.01005935668945},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"bolivia",center:{lng:-64.99122619628906,lat:-17.056869506835938},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"kazakhstan",center:{lng:66.77808380126953,lat:48.101295471191406},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"france",center:{lng:2.4583749771118164,lat:46.62480926513672},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"austria",center:{lng:14.14098834991455,lat:47.58707046508789},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"croatia",center:{lng:16.428129196166992,lat:45.14022445678711},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"bulgaria",center:{lng:25.235071182250977,lat:42.75815963745117},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"macedonia",center:{lng:21.701047897338867,lat:41.600555419921875},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"denmark",center:{lng:8.984903335571289,lat:55.932193756103516},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"greece",center:{lng:23.952844619750977,lat:38.148033142089844},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"morocco",center:{lng:-7.336248397827148,lat:31.172821044921875},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"iran",center:{lng:54.56435012817383,lat:32.64752960205078},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"taiwan",center:{lng:121,lat:24},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"korea",center:{lng:127.83287048339844,lat:36.438228607177734},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"guatemala",center:{lng:-90.35707092285156,lat:15.69590663909912
11},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"malaysia",center:{lng:114.7044677734375,lat:3.602454900741577},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"syria",center:{lng:39.04941177368164,lat:34.64018630981445},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"south-africa",center:{lng:25.087142944335938,lat:-28.996320724487305},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"pakistan",center:{lng:68.81533813476563,lat:29.399974822998047},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"sri-lanka",center:{lng:80.71378326416016,lat:7.55549430847168},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"philippines",center:{lng:121.42166900634766,lat:15.947406768798828},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"united-kingdom",center:{lng:-2.5505640506744385,lat:53.94383239746094},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"norway",center:{lng:10.738969802856445,lat:59.913330078125},zoom:eO?6.75:6.5,zoomMobile:5},{slug:"india",center:{lng:79.36368560791016,lat:22.352508544921875},zoom:eO?6.75:6.5,zoomMobile:5}],eZ=(0,l.useRef)(eC),eF="marker";eF.toLowerCase(),eF.toLowerCase(),Math.random().toString(36).substring(2,9),Math.random().toString(36).substring(2,9);let eG=(0,l.useRef)(null),[eD,eq]=(0,l.useState)(),[eV,eU]=(0,l.useState)(!1),[eH,eY]=(0,l.useState)(null),[eX,eK]=(0,l.useState)([]),[eW,eQ]=(0,l.useState)(!1),[eJ,e0]=(0,l.useState)(!1),[e1,e5]=(0,l.useState)(!1),[e6,e2]=(0,l.useState)([]),[e4,e7]=(0,l.useState)(!1),[e9,e3]=(0,l.useState)(null),[e8,te]=(0,l.useState)(null),tt=async function(t,i){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e5(!1);let n=eu.filter(t=>"bucket_list"===t.type),l=eu.filter(t=>"custom"===t.type).map(t=>t),a=eu.filter(t=>"favorite"===t.type),o=n[0]?.activities.filter(i=>i.slug===t),s=l.map(t=>t.activities).flat(1).map(i=>i.slug===t),c=l.map(t=>t.routes).flat(1).map(t=>t.step).flat(1).map(t=>null!==t.activity?t.activity:null!==t.poi?t.poi:null).filter(t=>null!==t).map(i=>i.slug===t),u=a[0]?.activities.filter(i=>i.slug===t);u?.length?(r?i.setFilter("favorite-activity-current-clicked",["==",["get","slug"],t]):i.setFilter("favorite-activity-current",["==",["get","slug"],t]),i.setFilter("current-point",!1),i.setFilter("current-clicked-point",!1),i.setFilter("bucket_list-activity-current-clicked",!1),i.setFilter("custom-activity-current-clicked",!1),i.setFilter("bucket_list-activity-current",!1),i.setFilter("custom-activity-current",!1)):t&&o?.length?(r?i.setFilter("bucket_list-activity-current-clicked",["==",["get","slug"],t]):i.setFilter("bucket_list-activity-current",["==",["get","slug"],t]),i.setFilter("current-point",!1),i.setFilter("current-clicked-point",!1),i.setFilter("favorite-activity-current-clicked",!1),i.setFilter("custom-activity-current-clicked",!1),i.setFilter("favorite-activity-current",!1),i.setFilter("custom-activity-current",!1)):t&&(s?.includes(!0)||c?.includes(!0))&&!o?.length&&!u?.length?(r?i.setFilter("custom-activity-current-clicked",["==",["get","slug"],t]):i.setFilter("custom-activity-current",["==",["get","slug"],t]),i.setFilter("current-point",!1),i.setFilter("current-clicked-point",!1),i.setFilter("favorite-activity-current-clicked",!1),i.setFilter("bucket_list-activity-current-clicked",!1),i.setFilter("favorite-activity-current",!1),i.setFilter("bucket_list-activity-current",!1)):t&&(i.setFilter("current-point",!1),r&&(i.getLayer("current-clicked-point")?(i.setFilter("current-clicked-point",["==",["get","slug"],t]),i.getLayer("current-point")&&i.setFilter("current-point",!1)):(i.setFilter("current-point",["==",["get","slug"],t]),i.getLayer("current-clicked-point")&&i.setFilter("current-clicked-point",!1))),r&&(i.getLayer("favorite-activity-current")&&i.setFilter("favorite-activity-current",!1),i.getLayer("bucket_list-activity-current")&&i.setFilter("bucket_list-activity-current",!1),i.getLayer("custom-activity-current")&&i.setFilter("custom-activity-current",!1),i.getLayer("favorite-activity-current-clicked")&&i.setFilter("favorite-activity-current-clicked",!1),i.getLayer("bucket_list-activity-current-clicked")&&i.setFilter("bucket_list-activity-current-clicked",!1),i.getLayer("custom-activity-current-clicked")&&i.setFilter("custom-activity-current-clicked",!1)))},ti=eB.filter(t=>t.slug===B)[0].center;eB.filter(t=>t.slug===B)[0].zoom,eB.filter(t=>t.slug===B)[0].zoomMobile,ti.lng,ti.lat;
1let tr=new(p()).Popup({closeButton:!1}),[tn,tl]=(0,l.useState)(!1),[ta,to]=(0,l.useState)(!1),ts=(0,C.useMediaQuery)({query:`(max-width: ${Y.dp.tablet})`});(0,l.useEffect)(()=>{ts&&to(ts)},[]),(0,l.useEffect)(()=>{eP&&tl(eP)},[]),(0,l.useEffect)(()=>{$(!1)},[]),(0,l.useEffect)(()=>{let t=(0,s.parse)(u);if(er?.length&&eE?.length&&t?.province&&eD){let i=eE.filter(i=>i.slug===t.province)[0];i&&setTimeout(function(){eD.easeTo({center:[i.longitude,i.latitude],zoom:9,padding:{left:.5*window.innerWidth,bottom:50}})},300)}},[eE,eD,er]),(0,l.useEffect)(()=>{let t=(0,s.parse)(u);if(er?.length&&ek?.length&&t?.city&&eD){let i=ek.filter(i=>i.slug===t.city)[0];i&&setTimeout(function(){eD.easeTo({center:[i.longitude,i.latitude],zoom:11,padding:{left:.5*window.innerWidth,bottom:110}})},300)}},[ek,eD,er]),(0,l.useEffect)(()=>{if(a.length&&eD&&T){let t=eu.filter(t=>"favorite"===t.type),i=eu.filter(t=>"bucket_list"===t.type),r=eu.filter(t=>"custom"===t.type);if(t[0]?.activities.length){let i=t[0].activities.map(t=>t.slug);eD.setFilter("favorite-activities",["in","
1slug",...i])}if(i[0]?.activities.length){let t=i[0].activities.map(t=>t.slug);eD.setFilter("bucket_list-activities",["in","slug",...t])}if(r.length){let t=r.map(t=>t.activities).flat(1).map(t=>t.slug),i=r.map(t=>t.routes).flat(1).map(t=>t.step).flat(1).map(t=>null!==t.activity?t.activity:null!==t.poi?t.poi:null).filter(t=>null!==t).map(t=>t.slug),n=t.concat(i);eD.setFilter("custom-activities",["in","slug",...n])}eD&&(d||eh)&&(tt(d?.slug,eD,!0),!e1&&eh&&tt(eh,eD))}},[ed,eu,T,eD,a,ep,eg,em,d,M,eh,e0,e5]);let tc=(0,l.useCallback)(()=>3===J||4===J?[]:a.filter(t=>t.longitude&&t.latitude).map(t=>({type:"Activity",properties:{activity:t,id:t.id,slug:t.slug},geometry:{type:"point",coordinates:[t.longitude,t.latitude]}})),[a,J]),tu=(0,l.useCallback)(()=>3!==J?(eA(null),[]):eC.map(t=>({type:"feature",properties:{id:t.id,title:t.title,subtitle:t.subtitle,url:t.url,slug:t.cities[0]?.slug?t.cities[0]?.slug:t.provinces[0]?.slug?t.provinces[0]?.slug:t.countries[0]?.slug,type:"story",image:t.thumbnail?.url,iconSize:[25,25],city:t.cities[0]?.slug||null,province:t.provinces[0]?.slug||null,country:t.countries[0]?.slug||null,articleId:t.articleId?.id||null},geometry:{type:"Point",coordinates:[t?.longitude?t.longitude:t.cities[0]?.longitude?t.cities[0]?.longitude:t.provinces[0]?.longitude?t.provinces[0]?.longitude:t.countries[0]?.longitude,t?.latitude?t.latitude:t.cities[0]?.latitude?t.cities[0]?.latitude:t.provinces[0]?.latitude?t.provinces[0]?.latitude:t.countries[0]?.latitude]}})),[eC,J]),td=(t,i)=>{if(i.length){var r=[];for(let t of i)t?.longitude&&t?.latitude&&r.push([t.longitude,t.latitude]);var n=r.reduce(function(t,i){return t.extend(i)},new(p()).LngLatBounds(r[0],r[0]));t.fitBounds(n,{padding:50,maxZoom:10})}};(0,l.useEffect)(()=>{if(eD){let t=document.querySelector(".mapboxgl-ctrl-top-right");document.querySelector("#switch-view-type-label")&&t&&(0===J?t.classList.remove("locationbutton-mapview-cities-provinces","locationbutton-listview-cities-provinces","locationbutton-mapview-stories-itineraries","locationbutton-listview-stories-itineraries"):1===J||2===J?t.classList.remove("locationbutton-mapview-stories-itineraries","locationbutton-mapview-activities","locationbutton-listview-stories-itineraries"):(3===J||4===J)&&t.classList.remove("locationbutton-mapview-cities-provinces","locationbutton-listview-cities-provinces","locationbutton-mapview-activities"),ey&&(3===J||4===J)?(t.classList.add("locationbutton-mapview-stories-itineraries"),t.classList.remove("locationbutton-listview-stories-itineraries")):ey||3!==J&&4!==J||(t.classList.remove("locationbutton-mapview-stories-itineraries"),t.classList.add("locationbutton-listview-stories-itineraries")),ey&&(1===J||2===J)?(t.classList.remove("locationbutton-listview-cities-provinces"),t.classList.add("locationbutton-mapview-cities-provinces")):ey||1!==J&&2!==J||(t.classList.add("locationbutton-listview-cities-provinces"),t.classList.remove("locationbutton-mapview-cities-provinces")),ey&&0===J?t.classList.add("locationbutton-mapview-activities"):ey||0!==J||t.classList.remove("locationbutton-mapview-activities"))}},[eD,ey,J]);let tp=(0,l.useCallback)(t=>{if(4!==J)return e$(null),[];{let i;return i=ej[t]?.cities?.length?ej[t].cities:ej[t]?.provinces?.length?ej[t].provinces:ej[t]?.countries,i?.filter(t=>t?.longitude&&t?.latitude).map(t=>({type:"stop-point",properties:{item:t,id:t.id,title:t.name,slug:t.slug,iconSize:[25,25],image:t?.image?.url||X,type:"stop"},geometry:{type:"point",coordinates:[t.longitude,t.latitude]}}))}},[ej,J]);(0,l.useEffect)(()=>{if(ej.length){let t=[];ej.forEach((i,r)=>{t=i?.cities?.length?[...t,i.cities]:i.provinces?.length?[...t,i.provinces]:[...t,i?.countries]}),e2(t=t.flat(1).map(t=>({type:"stop-point",properties:{item:t,id:t.id,title:t.name,slug:t.slug,iconSize:[25,25],image:t?.image?.url||X,type:"stop"},geometry:{type:"point",coordinates:[t.longitude,t.latitude]}})))}},[ej]),(0,l.useEffect)(()=>{eD&&(ej?.length&&e6?.length?ej.forEach((t,i)=>{for(let i of e6)if(document.getElementById(`stop-${t.id}-${i.properties.id}`)||4!==J)4!==J&&ej.forEach((t,i)=>{for(let i of e6){let r=document.getElementById(`stop-${t.id}-${i.properties.id}`);r&&r.remove()}});else{let r=document.createElement("div");r.id=`stop-${t.id}-${i.properties.id}`;let n=i.properties.iconSize[0],l=i.properties.iconSize[1];r.className="marker-itinerary-stop",r.style.backgroundImage=`url(${i.properties.image})`,r.style.width=`${n}px`,r.style.height=`${l}
1px`,r.style.backgroundSize="100%",new(p()).Marker(r).setLngLat(i.geometry.coordinates).addTo(eD)}e6.forEach((i,r)=>{eD.getLayer(`line-${t.id}-${r}`)&&eD.setLayoutProperty(`line-${t.id}-${r}`,"visibility",4===J?"visible":"none")})}):ej?.length&&e6?.length&&4!==J&&ej.forEach((t,i)=>{for(let i of e6){let r=document.getElementById(`stop-${t.id}-${i.properties.id}`);r&&r.remove()}e6.forEach((i,r)=>{eD.getLayer(`line-${t.id}-${r}`)&&eD.setLayoutProperty(`line-${t.id}-${r}`,"none")})}))},[eD,ej,J,e6]);let tg=(t,i,r)=>{if(r.length)for(let[n,l]of r.entries()){let l=n===r.length-1?0:n+1,a=[r[n].longitude,r[n].latitude],o=[r[l].longitude,r[l].latitude],s={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:[a,o]}}]},c=(0,j.TE$)(a,o,{units:"miles"}),u=(0,j.H2w)(a,o),d=(0,j.mY0)(u,c/5,20,{units:"miles"}),p=(0,j.Y2u)((0,j.TuJ)([a,d.geometry.coordinates,o]));s.features[0].geometry.coordinates=p.geometry.coordinates,t.getSource(`line-${i.id}-${n}`)||(t.addSource(`line-${i.id}-${n}`,{type:"geojson",data:s}),t.addLayer({id:`line-${i.id}-${n}`,source:`line-${i.id}-${n}`,type:"line",layout:{visibility:"visible"},paint:{"line-width":2,"line-color":"#FC6B43"}}))}},tm=(0,l.useCallback)(function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!T&&t)return[];let i=f()(F),r=i.find(t=>t.slug===B);return r?(r.activities_count=a.length,i.filter(t=>t.longitude&&t.latitude).map(t=>({type:"Country",properties:{...t},geometry:{type:"point",coordinates:[t.longitude,t.latitude]}}))):[]},[F,a,T,B]),th=(0,l.useCallback)(t=>{if(t&&g&&g.zone){let{zone:{latitude:i,longitude:r}}=g;if(!b()(i)&&!b()(r)){let n=[[r.max,i.max],[r.min,i.min]];t.fitBounds(n,{padding:80})}}},[g]),ty=async()=>{if(!eD)return;await k(!1),await S(null),await M(null),eD.setFilter("current-clicked-point",!1),eD.setFilter("favorite-activity-current-clicked",!1),eD.setFilter("bucket_list-activity-current-clicked",!1),eD.setFilter("custom-activity-current-clicked",!1);let t=document.querySelector("#markerPopup"),i=document.getElementsByClassName("mapboxgl-popup-tip");if(document.getElementsByClassName("marker-popup-description"),t&&i){for(t.remove();i.length>0;)i[0].parentNode.removeChild(i[0]);tr.setHTML(null)}};(0,l.useEffect)(()=>(Z.Nd.on("onTabClick",t=>{0===J&&ea&&tv()}),()=>Z.Nd.remove("onTabClick")),[eD,J]),(0,l.useEffect)(()=>{ty()},[W]);let tv=async()=>{if(!eD)return;await k(!1),await S(null),await en(),await M(null),await U(0),eD.setFilter("current-clicked-point",!1),eD.setFilter("favorite-activity-current-clicked",!1),eD.setFilter("bucket_list-activity-current-clicked",!1),eD.setFilter("custom-activity-current-clicked",!1);let t=document.querySelector("#markerPopup"),i=document.getElementsByClassName("mapboxgl-popup-tip");if(document.getElementsByClassName("marker-popup-description"),t&&i){for(t.remove();i.length>0;)i[0].parentNode.removeChild(i[0]);tr.setHTML(null)}},tb=(t,i)=>t.some(t=>i.includes(t));(0,l.useEffect)(()=>{if(K){let t=er.filter(t=>t.slug===K);if(!t.length)return;let i=t[0]?.labels.map(t=>t.slug);A.length&&i.length&&!tb(i,A)&&tv()}},[B,A,z]),(0,l.useEffect)(()=>{e4&&e9&&eD&&eC?.length&&tx(eD)},[eC,eD,e4,e9]);let tx=(0,l.useCallback)(async t=>{if(!t)return;let i=eC.filter(t=>t.id===e9)[0];i&&(eM({country:i?.countries[0]?.slug,city:i?.cities[0]?.slug,province:i?.provinces[0]?.slug,pageNumber:0,pageSize:20,articleId:i?.id}),ez(i),eA([i?.longitude,i?.latitude]),document.getElementById(`markerPopupStory-${i?.id}`)||tn||new(p()).Popup({closeButton:!1}).setLngLat([i?.longitude,i?.latitude]).setHTML(tC(i?.title,i?.id,i?.image?.url||i?.thumbnail?.url,i?.url)).addTo(t),e7(!0)),e7(!1),e3(null)},[eC,e9,e4]);(0,l.useEffect)(()=>{_()(i=>{t(i)},500);let t=t=>{if(t){var i=t.lat,r=t.lng,n=`https://api.mapbox.com/geocoding/v5/mapbox.places/${r},${i}.json?access_token=pk.eyJ1Ijoiam9yaXN2YW5oZXJwIiwiYSI6ImNtaWVwZXp6NTA0MTUzZXM5MHNwM2J4MXgifQ.t6Ja5WiUFalYaeTlflt1bw&types=country`;h().get(n).then(t=>{let{data:i}=t;i.features?.length&&i.features[0].place_type?.length&&"country"===i.features[0].place_type[0]&&P(i.features[0].place_name)}).catch(t=>{throw y.Tb(t),t})}};eD||eV||eU(!0)},[eD,d,o,c,tr,v,k,x,w,a,u,tc,th,eK,eV,eU,G,Q,U,ep,eg,ed,eu,em,eh,M,ej,eC,J,eZ]);let tf=(0,l.useCallback)(async t=>{if(t.stopPropagation(),R){if(d.id!==V.id){if(eP){let t=new URLSearchParams({});t.set("map",!0),N.push({pathname:`/activities/${B}/${d.slug}`,query:t.toString()})}else N.push({pathname:`/activities/${B}/${d.slug}`})}}else Z.cp.emit({GA:!0,SIB:!0},"activity_marker-click_marker_popup",{activitySlug:d?.slug,email:el}),1!==q&&((null===d||K!==V?.slug)&&await U(1),K===d?.slug&&await U(1),x||(eP&&Z.cp.emit({GA:!0},"sidebar-click_to_open_sidebar-click_to_open_sidebar"),await w(!0),await Q(0),U(1)),o({activity:er.find(t=>{let{slug:i}=t;return i===K}),fetchActivityDetail:!0})),(1===J||2===J||3===J)&&(await Q(0),1!==q&&U(1))},[K,q,x,Q,J,ee,et,R,d,er,en,S]),tw=t=>{let i=t?.images?t.images[0]?.url:t?.image;return`
2      <div id="markerPopup" style="display: flex; flex-direction: column; width: ${E||eP?"105":"125"}px; cursor: pointer; z-index: 9999 !important;">
3        <img src=${i||null} alt="activity image" style="width: ${E||eP?"105":"125"}px; height: ${O||eP?"105":"125"}px; border-top-left-radius: 10px; border-top-right-radius: 10px; object-fit: cover; display:${i?"flex":"none"}" />
4         <span class="marker-popup-description">${t?.name}</span>
5      </div>
6    `},t_=t=>`
7      <div id="markerPopup" style="display: flex; flex-direction: column; width: ${E||eP?"105":"125"}px; cursor: pointer; z-index:9999;">
8         <span class="marker-popup-description">${t?.name}</span>
9      </div>
10    `,tC=(t,i,r,n)=>`
11      <div class="story-marker-popup" id=markerPopupStory-${i} style="display: flex; flex-direction: column; width: ${E||eP?"105":"125"}px; cursor: pointer;">
12             <img src=${r||null} alt="activity image" style="width: ${E||eP?"105":"125"}px; height: ${O||eP?"105":"125"}px; border-top-left-radius: 10px; border-top-right-radius: 10px; object-fit: cover; display:${r?"flex":"none"}" />
13         <span class="marker-popup-description"> <a href=${n}>${t}</a></span>
14      </div>
15    `;(0,l.useEffect)(()=>{let t=document.querySelector("#markerPopup"),i=document.getElementsByClassName("mapboxgl-popup-tip");if(t&&d&&(x||d?.id!==eH?.id)||t&&!d&&!eh)for(t.remove(),tr.setHTML(null);i.length>0;)i[0].parentNode.removeChild(i[0]);if(d&&(v&&!R&&!tn||R)){let t=tw(d),i=[d?.longitude,d?.latitude],r=document.getElementById("markerPopup");d&&(!r||d?.id!==eH?.id)&&eD&&(eY(d),tr.setLngLat(i).setHTML(t).addTo(eD))}setTimeout(function(){let t=document.getElementById("markerPopup");if(t){let i=t.cloneNode(!0);t.parentNode.replaceChild(i,t),i.addEventListener("click",tf)}},300)},[x,eh,d,V,v,k,eD,tr,tf]),(0,l.useEffect)(()=>{if(eL&&eS&&eD){let t=document.querySelector(".story-marker-popup"),i=document.getElementsByClassName("mapboxgl-popup-tip");if(t)for(t.remove(),tr.setHTML(null);i?.length>0;)i[0].parentNode.removeChild(i[0]);document.getElementById(`markerPopupStory-${eL?.id}`)||eP||null===eS[0]||null===eS[1]||new(p()).Popup({closeButton:!1}).setLngLat(eS).setHTML(tC(eL?.title,eL?.id,eL?.image||eL?.thumbnail?.url,eL?.url)).addTo(eD)}},[eL,eD,eS]);let tj=()=>{let t=eD.getSource("countryCounts");a?.length&&F?.length&&t?t.setData({type:"ActivityCollection",features:tm(!1)}):a?.length&&F?.length&&!t&&function t(){let i=eD.getSource("countryCounts");i?i.setData({type:"CountryCountsCollection",features:tm(!1)}):setTimeout(t,150)}()};(0,l.useEffect)(()=>{if(eD){let t=eD.getSource("activities");t?(t.setData({type:"ActivityCollection",features:tc()}),T||$(!0),d&&R&&!v&&!eW&&(eQ(!0),k(!0),tt(d.slug,eD,!0)),tj()):a?.length&&!t&&function t(){let i=eD.getSource("activities");i?(i.setData({type:"ActivityCollection",features:tc()}),T||$(!0),d&&R&&!v&&(k(!0),tt(d.slug,eD,!0)),tj()):setTimeout(t,150)}()}},[a,tc,eD,v,eW,eQ,F,x,k]),(0,l.useEffect)(()=>{if(eD){let t=eD.getSource("stories");t?t.setData({type:"FeatureyCollection",features:tu()}):eC?.length&&!t&&function t(){let i=eD.getSource("stories");i?i.setData({type:"FeatureCollection",features:tu()}):setTimeout(t,150)}()}},[eC,tu,eD]),(0,l.useEffect)(()=>{4===J&&eD&&ej?.length&&ej.forEach((t,i)=>{let r=eD.getSource(`itineraries-${i}`);r?r.setData({type:"FeatureCollection",features:tp(i)}):ej.forEach((t,i)=>{eD.addSource(`itineraries-${i}`,{type:"geojson",data:{type:"FeatureCollection",features:tp(i)},cluster:!0,clusterMaxZoom:0,clusterRadius:40}),eD.addLayer({id:`unclustered-points-itineraries-${i}`,type:"symbol",source:`itineraries-${i}`,interactive:!0,layout:{"icon-image":"markerItinerary","icon-size":.25,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-keep-upright":!0},paint:{"icon-opacity":0}}),tg(eD,ej[i],ej[i].cities.length?ej[i].cities:ej[i].provinces.length?ej[i].provinces:ej[i].countries.length),eD.on("mouseenter",`unclustered-points-itineraries-${i}`,t=>{if(eP||document.getElementById("markerPopup"))return;let i=JSON.parse(t.features[0].properties.item),r=t_(i),n=[i?.longitude,i?.latitude],[l,a]=n,o=eD.getBounds(),s=o?._sw?.lat,c=o?._ne?.lat;o?._sw?.lng,o?._ne?.lng,tr=new(p()).Popup({closeButton:!1,anchor:a<(s+c)/2?"bottom":"top"}),4===J&&tr.setLngLat(n).setHTML(r).addTo(eD)}),eD.on("mouseleave",`unclustered-points-itineraries-${i}`,t=>{tr.remove()}),eD.on("click",`unclustered-points-itineraries-${i}`,t=>{eT({country:ej[i]?.countries[0]?.slug,city:ej[i]?.cities[0]?.slug,province:ej[i]?.provinces[0]?.slug,pageNumber:0,pageSize:20,itineraryId:ej[i]?.is_from_detailed_itinerary?null:ej[i]?.id,articleId:ej[i]?.is_from_detailed_itinerary?ej[i]?.id:null}),e$(ej[i])})})})},[ej,eD,J]),(0,l.useEffect)(()=>
15{if(!eD||!B)return;let t=eB.find(t=>t.slug===B);setTimeout(()=>{let{activity:i}=(0,s.parse)(u);d||ea||i||eD.easeTo({center:[t.center.lng,t.center.lat],zoom:ta?t.zoomMobile:t.zoom,padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?ey?.2*window.innerHeight:.5*window.innerHeight:R?110:0}})},100)},[eD,J,B]),(0,l.useEffect)(()=>{let t=t=>{let i=eD.getZoom();return"city"===t?eO?12:11.5:"province"===t?eO?9.5:8.5:12.5>i?12.5:i};if(eD&&(ea||e_||ew)){let i,r;ea?(i=ea.longitude,r=ea.latitude):ew?(i=ew.longitude,r=ew.latitude):e_&&(i=e_.longitude,r=e_.latitude),(ea||e_)&&i&&r?setTimeout(()=>{eD.easeTo({center:[i,r],zoom:t("city"),padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?x?ey?.2*window.innerHeight:.5*window.innerHeight:50:R?110:0}})},100):ew&&i&&r&&setTimeout(()=>{eD.easeTo({center:[i,r],zoom:t("province"),padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?x?ey?.2*window.innerHeight:.5*window.innerHeight:50:R?110:0}})},100)}},[eD,ea,B,x,eP,R,e_,ew,eS]),(0,l.useEffect)(()=>
15{eS?.length&&null!==eS[0]&&null!==eS[1]&&setTimeout(()=>{eD.easeTo({center:[eS[0],eS[1]],zoom:13,padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?x?ey?.2*window.innerHeight:.5*window.innerHeight:50:R?110:0}})},100)},[eS,eD]),(0,l.useEffect)(()=>{eI&&eD&&td(eD,eI?.cities?.length?eI.cities:eI?.provinces?.length?eI.provinces:eI.countries)},[eI,eD]);let tk=()=>{if(er?.length){if(eD&&d){let t,i;t=d.longitude,i=d.latitude,t&&i&&v&&(d&&eD.getLayer("current-clicked-point")&&tt(d.slug,eD,!0),eD.easeTo({center:[t,i],zoom:(t=>{let i=eD.getZoom();return"city"===t?11.5:"province"===t?8.5:12.5>i?12.5:i})("actvity"),padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?x&&!ey?425:175:R?110:0}}))}else!x||!eD||e_||ew||d||V||eD.easeTo({center:eD.getCenter().wrap(),zoom:eD.getZoom(),padding:{left:eP||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?ey?.2*window.innerHeight:.5*window.innerHeight:R?110:0}})}};return(0,l.useEffect)(()=>{if(er?.length&&eD){let{activity:t}=(0,s.parse)(u);if((t||ex)&&!eW){let i=er.find(i=>i.slug===t),r=er.find(t=>t.slug===ex)||i;r&&(eQ(!0),k(!0),tt(r.slug,eD,!0),S(r.slug),eD.easeTo({center:[r.longitude,r.latitude],zoom:12.5,padding:{left:eP||!x||R||eO?0:.5*window.innerWidth,bottom:eP&&!R?x?ey?.2*window.innerHeight:.5*window.innerHeight:275:R?110:0}}))}}},[er,eD]),(0,l.useEffect)(()=>{er?.length&&tk()},[er]),(0,l.useEffect)(()=>{tk()},[eD,d,v,x,V]),(0,l.useEffect)(()=>{m||window.dispatchEvent(new Event("resize"))},[eD,m]),(0,n.jsxs)(n.Fragment,{children:[L&&(0,n.jsx)(H.N9,{}),m&&eP&&(0,n.jsx)(H.AD,{}),(0,n.jsx)("div",{className:"map-wrapper",ref:eG})]})});var ei=r(76608),er=r(1216),en=r(58533),el=r(16143),ea=r(29208),eo=r.n(ea),es=r(61482),ec=r(79838),eu=r(99011),ed=r(84691),ep=r(59220);r(97316);var eg=r(63569),em=r(64541),eh=r(57954),ey=r(36880),ev=r(97872),eb=r(43795),ex=r(46998),ef=r(83892);r(45697);let ew=t=>{let{activity:i,currentHoveredActivity:r,router:o,setIntegratedViewOpen:c,currentSlug:u,email:d,currentCountry:p,setSwitchCountry:g,userTrips:m,fetchActivitiesPaginated:h,setCurrentActivitySlug:y,setActivityMarkerOpen:v,addActivityToTrip:b,deleteActivityFromTrip:x,user:w,isLessThanLaptop:_}=t,[C,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{m?.length&&m.map((t,r)=>{"favorite"===t.type&&(t.activities.map(t=>t?.id==i.id).includes(!0)?j(!0):j(!1))})},[b,x,m,C,i]);let k=(0,a.v9)(t=>t.searchFilter.trip,a.wU);if(!i)return"No content found";let{name:S,description_short:A,local_name:z,id:I,anecdotes:L,slug:M}=i,T=L?.filter(t=>t.featured),$=async t=>{t.stopPropagation(),Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_activities-click_read_more",{activitySlug:i.slug,email:d}),Z.cp.emit({GA:!0},"GA4_activity_click",{type:"button",cta_text:"read_more",activity_slug:M,location_on_page:"list_view",destination_name:p}),_&&h({country:p,activity:i.slug,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:m&&k?.length?k.toString():null})},P=t=>{Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_activities-click_activity",{activitySlug:`${i.slug}`,email:d}),_?o.push({pathname:`/activities/${p}/${i?.slug}`}):(y(i.slug),v(!0))},{query:E}=s.parseUrl(window.location.search);return(0,n.jsxs)(ep.b1,{activity:i,$currentHoveredActivity:r,smallerthanlaptop:_,children:[(0,n.jsxs)("div",{className:_?"mobile-activity-left-side":"desktop-activity-left-side",children:[i?.images?.length&&i?.images?.length>1?(0,n.jsx)(ec.Z,{item:i,width:"150px",height:"150px",heightMobile:"115px",mapdrawer:!0,lazyLoadCarousel:!0,multipleActivitiesBanner:!0,isLessThanLaptop:_,onSlideImageClick:()=>{Z.cp.emit({GA:!0},"sidebar_-_activities-click_image",{activitySlug:i.slug,email:d}),_&&o.push({pathname:`/activities/${p}/${i?.slug}`})},clickableimages:!0}):(0,n.jsx)(n.Fragment,{children:i?.images?.length?(0,n.jsx)(ep.zB,{src:i?.images?.length?_?i?.images[0]?.small:i?.images[0]?.url:ef.Z,alt:i?.images?.length&&i?.images[0]?.alternativeText?i?.images[0]?.alternativeText||`${i?.name} Image`:""}):(0,n.jsx)(el.AL,{src:ef.Z,alt:i?.images?.length&&i?.images[0]?.alternativeText?i?.images[0]?.alternativeText||`${i?.name} Image`:"",style:{height:"150px",width:"100%",objectFit:"cover",borderRadius:"10px"}})}),T?.length&&T[0]?.text?(0,n.jsx)(H.on,{children:"Local Tip"}):null,(0,n.jsx)(eu.Z,{activitiesList:!0,activitySlug:M,activityId:I,router:o,isLessThanLaptop:_})]}),(0,n.jsxs)("div",{onClick:t=>P(t),className:_?"mobile-activity-right-side":"desktop-activity-right-side",children:[(0,n.jsx)(ep.Pz,{src:C?ex.Z:eb.Z,width:20,height:20,onClick:()=>(0,ev.VV)({userTrips:m,id:i.id,deleteActivityFromTrip:x,addActivityToTrip:b,user:w,router:o,e:e})}),(0,n.jsxs)(ep.Kw,{children:[(0,n.jsxs)(ep.uX,{children:[S," "]}),(0,n.jsx)("br",{}),(0,n.jsx)(ep.RU,{children:z||""})]}),(0,n.jsxs)(ep.fO,{featuredAnecdote:T?.length&&T[0].text?1:0,children:[(()=>{if(T?.length&&T[0]?.text)return(0,n.jsxs)(H.pu,{children:[(0,n.jsx)(H.Sd,{left:!0,src:eh.Z,alt:"quotation mark"}),T[0].text.substr(0,125).trim(),"...",(0,n.jsx)(H.Sd,{right:!0,src:ey.Z,alt:"quotation mark"})]});if(A?.length&&(!T?.length||!T[0].text)){let t=f()(A);return t=(t=(t=t.replaceAll("###","")).replaceAll("##","")).replaceAll("#",""),(0,n.jsxs)(H.pu,{children:[t.substr(0,150).trim(),"... "]})}})(),(0,n.jsx)(ep.JX,{onClick:t=>$(t),children:(0,n.jsxs)(H.xv,{as:ed.Z,href:_?`/activities/${p}/${i?.slug}`:`/activities/${p}/${i?.slug}?map=true${E.labels?`&labels=${E.labels}`:""}`,children:[" ","Read more"]})})]}),T?.length&&T[0].text?(0,n.jsxs)(eg.QV,{children:[(T[0].user?.avatar?.thumbnail||T[0].user?.avatar?.url)&&(0,n.jsx)(eg.OU,{src:T[0].user?.avatar?.thumbnail||T[0].user?.avatar?.url,alt:"user avatar"}),(T[0].caption||T[0].user?.anecdote_caption)&&(0,n.jsx)(eg.Qe,{children:`- ${T[0].caption?T[0].caption:T[0].user?.anecdote_caption}`})]}):(0,n.jsx)(es.Z,{labels:eo()(i,"labels",[]),numberOfLabels:_?4:2,multipleActivitiesView:!0})]})]},I)},e_=t=>{let{activity:i,currentActivity:r,currentHoveredActivity:l,activityId:a,setCurrentHoveredActivity:o,setA
15ctivityMarkerOpen:s,setCurrentActivitySlug:c,isLazyLoaded:u,setIntegratedViewOpen:d,fetchActivityById:p,currentActivityIndex:g,user:m,router:h,setCurrentCitySlug:y,loading:v,activitiesTab:b,email:x,currentCountry:f,userTrips:w,i:_,setSwitchCountry:C,isLessThanLaptop:j,fetchActivitiesPaginated:k,addActivityToTrip:S,deleteActivityFromTrip:A}=t;return(0,n.jsx)(ep.ge,{className:"explore-list-modal-wrapper",smallerthanlaptop:j,$isLazyLoaded:u,children:i||r?(0,n.jsx)(ew,{activity:i,currentActivity:r,isLessThanLaptop:j,currentHoveredActivity:l,activityId:a,currentActivityIndex:g,user:m,router:h,setIntegratedViewOpen:d,loading:v,fetchActivityById:p,activitiesTab:b,setCurrentActivitySlug:c,setCurrentHoveredActivity:o,setActivityMarkerOpen:s,setCurrentCitySlug:y,email:x,currentCountry:f,userTrips:w,i:_,setSwitchCountry:C,fetchActivitiesPaginated:k,addActivityToTrip:S,deleteActivityFromTrip:A},i?.id):(0,n.jsx)(el.$j,{})})};e_.defaultProps={currentActivity:null};let eC=(0,Z.ep)([em.N1]);var ej=(0,a.$j)(t=>({currentHoveredActivity:t.activity.currentHoveredActivity,currentSlug:t.activity.currentSlug,currentActivity:(0,k.Nv)(t),currentActivityIndex:(0,k.MA)(t),user:t.auth.user,cities:t.city.list,loading:eC(t.loading),email:t.global.email,currentCountry:t.country.currentCountry,userTrips:t.trips.userTrips}),t=>({setCurrentHoveredActivity:i=>t((0,T.H4)(i)),setActivityMarkerOpen:i=>t((0,T.vb)(i)),setCurrentActivitySlug:i=>t((0,T.Ro)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),fetchActivityById:i=>t((0,T.gl)(i)),setSwitchCountry:i=>t((0,O._n)(i)),fetchActivitiesPaginated:i=>t((0,T.ly)(i)),addActivityToTrip:i=>t((0,N.Hn)(i)),deleteActivityFromTrip:i=>t((0,N.tz)(i))}))(e_),ek=r(79827),eS=r(26151);r(87231),r(11163);let eA=(0,Z.ep)([em.cY]),ez=(0,Z.uR)([em.cY]);var eI=(0,a.$j)(t=>({activity:(0,k.Nv)(t),activityPaginationObj:t.activity.paginationObj,activities:t.activity.list,activitiesLazyLoaded:(0,k.ti)(t),currentCountry:t.country.currentCountry,integratedViewOpen:t.global.integratedViewOpen,currentActivity:t.activity.currentActivity,loading:eA(t.loading),error:ez(t.error),activeNavTab:t.global.activeNavTab}),t=>({setCurrentActivitySlug:i=>t((0,T.Ro)(i)),clearFilters:()=>t((0,eS.K5)()),fetchActivitiesPaginated:i=>t((0,T.ly)(i))}))(t=>{let{activities:i,activitiesLazyLoaded:r,integratedViewOpen:a,currentActivity:o,router:c,loading:u,error:d,clearFilters:p,activeNavTab:g,currentCountry:m,fetchActivitiesPaginated:h,activityPaginationObj:y,isLessThanLaptop:v}=t,{instantItemsArray:b,dividedItemsArray:x}=r,[f,w]=(0,l.useState)(!1);(0,l.useEffect)(()=>{v&&w(v)},[v]),(0,l.useEffect)(()=>{b=r.instantItemsArray,x=r.dividedItemsArray},[i,r]);let{query:_}=s.parseUrl(window.location.search),C=()=>{h()},j=(0,l.useMemo)(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(en.Z,{dataLength:i.length,next:C,hasMore:!y||i?.length<y.totalItems,loader:(0,n.jsx)(el.$j,{}),endMessage:(0,n.jsx)("p",{style:{textAlign:"center",paddingTop:"25px"},children:(0,n.jsx)("b",{children:"Yay! You have seen it all"})}),scrollableTarget:"nearbyBannerContainer",children:[b?.length&&b.map((t,i)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ej,{activitiesTab:!0,activity:t,onClickClose:()=>{},isLessThanLaptop:v,isLazyLoaded:!1,router:c,i:i},`${t?.id}${t?.type}`)})),x?.map((t,i)=>n.jsx(er.ZP,{scrollContainer:"#nearbyBannerContainer",offset:500,placeholder:n.jsx(el.$j,{}),overflow:!0,once:!0,children:n.jsx(n.Fragment,{children:t.map((t,i)=>n.jsxs(n.Fragment,{children:[" ",n.jsx(ej,{activitiesTab:!0,activity:t,onClickClose:()=>{},isLessThanLaptop:v,isLazyLoaded:!0,router:c},`${t?.id}${t?.type}`)]}))})},`${t[0].id}*`))]})}),[i,r]);return u&&!i.length||u&&!y?(0,n.jsx)(el.$j,{}):!i?.length&&!_.activity||d[em.cY]||d[em.N1]?(0,n.jsx)(el.Bc,{clearFilters:p,router:c,activeNavTab:g,currentCountry:m}):1===a||_.activity?1===a?(0,n.jsx)(ek.Z,{activity:o,integratedActivityView:!0,detailedPage:!1,isLessThanLaptop:v,clearFilters:p,router:c}):(0,n.jsx)(el.$j,{}):(0,n.jsx)(n.Fragment,{children:j})}),eL=r(87379);let eM=eL.ZP.div.withConfig({componentId:"sc-2e505f8b-0"})(["width:100%;background:",";display:flex;flex-direction:column;justify-content:space-around;border-radius:10px;padding:20px 15px;margin-bottom:-10px;@media (max-width:","){padding:10px;width:100%;max-width:none;margin-bottom:0;}&:hover{box-shadow:4px 6px 15px #d9e7ec;}"],Y.COLOR.PAPER_00,Y.dp.laptop),eT=eL.ZP.div.withConfig({componentId:"sc-2e505f8b-1"})(["@media (max-width:","){width:100%;max-width:none;}"],Y.dp.laptop),e$=eL.ZP.div.withConfig({componentId:"sc-2e505f8b-2"})(["font-family:",";font-weight:800;font-size:16px;line-height:0.9;text-transform:uppercase;color:",";padding:15px 30px 5px 0px;"],Y.g5.MULISH,Y.COLOR.SLATE_100),eP=eL.ZP.span.withConfig({componentId:"sc-2e505f8b-3"})(["overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;font-family:",";font-weight:normal;font-size:14px;line-height:20px;color:",";max-height:80px;@media (min-width:","){font-size:16px;}"],Y.g5.OPENSANS,Y.COLOR.MIDNIGHT_75,Y.dp.laptopL),eE=eL.ZP.a.withConfig({componentId:"sc-2e505f8b-4"})(["cursor:pointer;font-family:",";font-size:14px;font-weight:800;color:",";text-transform:uppercase;&:hover{color:",";}"],Y.g5.OPENSANS,Y.COLOR.ORANGE_100,Y.COLOR.SLATE_100),eO=eL.ZP.div.withConfig({componentId:"sc-2e505f8b-5"})(["display:flex;justify-content:center;width:100%;top:100px;right:10px;z-index:10;background:",";border-radius:5px;cursor:pointer;padding:10px;height:auto !important;@media (max-width:","){height:334px;}@media (min-width:",") and (max-width:","){height:275px;}@media (min-width:","){height:250px;}@media (min-width:","){height:200px;}"],Y.COLOR.PAPER_00,Y.dp.laptop,Y.dp.tablet,Y.dp.laptop,Y.dp.laptop,Y.dp.laptopL),eN=eL.ZP.div.withConfig({componentId:"sc-2e505f8b-6"})(["width:100%;height:150px;position:relative;"]),eR=t=>{let{cityOrProvince:i,isLessThanLaptop:r,activeNavTab:l,resetCurrentProvinceSlug:a,resetCurrentCitySlug:o,resetCurrentActivity:s,setCurrentActivitySlug:c,integratedViewOpen:u,setIntegratedViewOpen:d,setCurrentCitySlug:p,setClickedCityorProvinceSlug:g,setCurrentProvinceSlug:m,email:h,currentCityMapbox:y,setCurrentCityMapbox:v,activities:b,detailedContentCities:x,provinces:f,setCitiesByDistance:w,setProvincesByDistance:_,currentCountry:C,fetchActivitiesPaginated:j,router:k}=t;if(!i)return"No content found";let{name:S,description:A,detailed_content:z}=i,I=async t=>{y&&await v(null),1===l?(Z.cp.emit({GA:!0},"sidebar_-_cities-click_read_more",{citySlug:i.slug,email:h}),Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"button",cta_text:"read_more",content_type:"cities",content_title:i.slug}),t.stopPropagation()):2===l&&(Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_regions-click_read_more",{provinceSlug:i.slug,email:h}),Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"button",cta_text:"read_more",content_type:"provinces",content_title:i.slug}),t.stopPropagation(),document.getElementById("nearbyBannerContainer").scrollTop=0)},L=async t=>{y&&await v(null),1===l?(await s(),await c(null),await a(),p(i.slug),Z.
15cp.emit({GA:!0,SIB:!0},"sidebar_-_cities-click_city",{citySlug:i.slug,email:h}),j({country:C,city:i.slug,pageNumber:0,pageSize:20})):2===l&&(await s(),await c(null),await o(),m(i.slug),Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_regions-click_region",{provinceSlug:i.slug,email:h}),j({country:C,province:i.slug,pageNumber:0,pageSize:20}))},M=t=>{window.checkForDrag=t.clientX},T=(t,r)=>{let n=t.clientX;n<window.checkForDrag+6&&n>window.checkForDrag-6&&(1===l?Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"list",content_type:"cities",content_title:i.slug}):2===l&&Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"list",content_type:"provinces",content_title:i.slug}))};return(0,n.jsxs)(eM,{smallerthanlaptop:r,$cityOrProvince:i,onClick:t=>L(t),onMouseDown:t=>M(t),onMouseUp:t=>T(t),children:[(0,n.jsx)(eN,{smallerthanlaptop:r,children:(0,n.jsx)(ec.Z,{item:i,slidesPerView:"auto",width:"150px",height:"150px",mapdrawer:!0,lazyLoadCarousel:!0,isLessThanLaptop:r,clickableimages:i?.detailed_content})}),(0,n.jsxs)(eT,{children:[(0,n.jsx)(e$,{children:S}),(0,n.jsxs)(eP,{children:[`${A?.substr(0,100).trim()}... `,z&&(0,n.jsx)(eE,{as:ed.Z,href:1===l?`/${C}/${i?.province?.slug}/${i?.slug}`:2===l?`/${C}/${i.slug}`:"",onClick:t=>I(t),children:"Read more"})]})]})]},i?.id)};var eB=(0,a.$j)(t=>({currentCitySlug:t.city.currentSlug,activeNavTab:t.global.activeNavTab,currentActivity:t.activity.currentActivity,currentActivitySlug:t.activity.currentSlug,currentProvinceSlug:t.province.currentSlug,integratedViewOpen:t.global.integratedViewOpen,detailedContentProvinces:t.province.detailedContentProvinces,detailedContentCities:t.city.detailedContentCities,email:t.global.email,currentCityMapbox:t.city.currentCityMapbox,activities:t.activity.list,provinces:t.province.list,currentCountry:t.country.currentCountry}),t=>({setCurrentCitySlug:i=>t((0,$.oz)(i)),resetCurrentActivity:()=>t((0,T.t9)()),setCurrentActivitySlug:i=>t((0,T.Ro)(i)),setCurrentProvinceSlug:i=>t((0,P.YM)(i)),resetCurrentCitySlug:()=>t((0,$.tX)()),resetCurrentProvinceSlug:i=>t((0,P.Qf)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),setClickedCityorProvinceSlug:i=>t((0,O.aB)(i)),setProvincesByDistance:i=>t((0,P.sg)(i)),setCitiesByDistance:i=>t((0,$.ky)(i)),setCurrentCityMapbox:i=>t((0,$.OC)(i)),fetchActivitiesPaginated:i=>t((0,T.ly)(i))}))(t=>{let{isLazyLoaded:i,router:r,cityOrProvince:l,setCurrentCitySlug:a,resetCurrentActivity:o,setCurrentActivitySlug:s,activeNavTab:c,setCurrentProvinceSlug:u,resetCurrentCitySlug:d,resetCurrentProvinceSlug:p,setIntegratedViewOpen:g,integratedViewOpen:m,setClickedCityorProvinceSlug:h,detailedContentProvinces:y,detailedContentCities:v,setCitiesByDistance:b,setProvincesByDistance:x,loading:f,email:w,currentCityMapbox:_,setCurrentCityMapbox:C,activities:j,provinces:k,currentCountry:S,isLessThanLaptop:A,fetchActivitiesPaginated:z}=t;return(0,n.jsx)(eO,{className:"explore-list-modal-wrapper",children:l&&!f?(0,n.jsx)(eR,{cityOrProvince:l,isLessThanLaptop:A,router:r,activeNavTab:c,resetCurrentProvinceSlug:p,resetCurrentCitySlug:d,resetCurrentActivity:o,setCurrentActivitySlug:s,integratedViewOpen:m,setIntegratedViewOpen:g,setCurrentCitySlug:a,setClickedCityorProvinceSlug:h,setCurrentProvinceSlug:u,detailedContentProvinces:y,detailedContentCities:v,setCitiesByDistance:b,setProvincesByDistance:x,email:w,currentCityMapbox:_,setCurrentCityMapbox:C,activities:j,provinces:k,currentCountry:S,fetchActivitiesPaginated:z},l?.id):(0,n.jsx)(el.$j,{})})}),eZ=r(75604),eF=r(78045);let eG=(0,Z.ep)([eZ.O,eF.PC]),eD=(0,Z.uR)([eZ.O,eF.PC]);var eq=(0,a.$j)(t=>({loading:eG(t.loading),error:eD(t.error),cities:t.city.list,currentSlug:t.city.currentSlug,currentCountry:t.country.currentCountry,citiesByDistance:t.city.citiesByDistance,detailedContentCities:t.city.detailedContentCities,integratedViewOpen:t.global.integratedViewOpen,currentNeighbourhood:t.neighbourhood.currentNeighbourhood,guideState:t.global.guideState}),t=>({}))(t=>{let{currentSlug:i,citiesByDistance:r,detailedContentCities:a,integratedViewOpen:o,router:s,loading:c,error:u,currentCountry:d,currentNeighbourhood:p,isLessThanLaptop:g}=t,{instantItemsArray:m,dividedItemsArray:h}=r,[y,v]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{g&&v(g)},[g]),(0,l.useEffect)(()=>{m=r.instantItemsArray,h=r.dividedItemsArray},[i,a,r]),u[eZ.O])?(0,n.jsx)(el.Bc,{router:s,currentCountry:d}):c?(0,n.jsx)(el.$j,{}):2!==o?m?.length||h?.length?(0,n.jsxs)(n.Fragment,{children:[m?.length&&m.map((t,i)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(eB,{cityOrProvince:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!1,router:s},`${t?.id}${t?.type}`)})),h?.map((t,i)=>n.jsx(er.ZP,{scrollContainer:"#nearbyBannerContainer",offset:500,placeholder:n.jsx(el.$j,{}),overflow:!0,once:!0,children:n.jsx(n.Fragment,{children:t.map((t,i)=>n.jsx(n.Fragment,{children:n.jsx(eB,{cityOrProvince:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!0,router:s},`${t?.id}${t?.type}`)}))})},`${t[0].id}*`))]}):(0,n.jsx)(el.dJ,{router:s,currentCountry:d}):void 0}),eV=r(8350);let eU=(0,Z.ep)([eV.vd]),eH=(0,Z.uR)([eV.vd]);var eY=(0,a.$j)(t=>({loading:eU(t.loading),error:eH(t.error),currentSlug:t.province.currentSlug,provincesByDistance:t.province.provincesByDistance,detailedContentProvinces:t.province.detailedContentProvinces,integratedViewOpen:t.global.integratedViewOpen,currentCountry:t.country.currentCountry}),t=>({}))(t=>{let{router:i,currentSlug:r,provincesByDistance:a,integratedViewOpen:o,detailedContentProvinces:s,loading:c,error:u,currentCountry:d,isLessThanLaptop:p}=t,[g,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>{p&&m(p)},[p]);let{instantItemsArray:h,dividedItemsArray:y}=a;return((0,l.useEffect)(()=>{h=a.instantItemsArray,y=a.dividedItemsArray},[r,s]),u[eV.vd])?(0,n.jsx)(el.Bc,{router:i,currentCountry:d}):c?(0,n.jsx)(el.$j,{}):3!==o?h?.length||y?.length?(0,n.jsxs)(n.Fragment,{children:[h?.length&&h.map((t,r)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(eB,{cityOrProvince:t,onClickClose:()=>{},isLessThanLaptop:p,isLazyLoaded:!1,router:i},`${t?.id}${t?.type}`)})),y?.map((t,r)=>n.jsx(er.ZP,{scrollContainer:"#nearbyBannerContainer",offset:500,placeholder:n.jsx(el.$j,{}),overflow:!0,once:!0,children:n.jsx(n.Fragment,{children:t.map((t,r)=>n.jsxs(n.Fragment,{children:[" ",n.jsx(eB,{cityOrProvince:t,onClickClose:()=>{},isLessThanLaptop:p,isLazyLoaded:!0,router:i},`${t?.id}${t?.type}`)]}))})},`${t[0].id}*`))]}):(0,n.jsx)(el.dJ,{router:i,currentCountry:d}):void 0}),eX=r(29131),eK=t=>
15{let{children:i,onClose:r,includeDimmedBackground:l=!1,position:a,modalInCenter:o,mobile:s=0,opened:c=!0}=t,{top:u,left:d,margin:p,bottom:g}=a;return(0,n.jsxs)("div",{children:[l&&(0,n.jsx)(H.AD,{}),(0,n.jsx)(eX.kU,{opened:c?1:0,top:u,left:d,bottom:g,margin:p,modalInCenter:o,mobile:s,borderTopLeftRadius:"30px",borderTopRightRadius:"30px",z_index:8,children:i})]})};let eW=t=>{let i,{story:r,isLessThanLaptop:l,setCurrentStoryCoordinates:a,setCurrentStory:o}=t;if(!r)return"No content found";let{url:s,id:c,intro:u,title:d,subtitle:p,thumbnail:g,image:m,slug:h}=r;return(0,n.jsxs)(ep.b1,{onClick:()=>{a([r?.longitude?r.longitude:r.cities[0]?.longitude?r.cities[0]?.longitude:r.provinces[0]?.longitude?r.provinces[0]?.longitude:r.countries[0]?.longitude,r?.latitude?r.latitude:r.cities[0]?.latitude?r.cities[0]?.latitude:r.provinces[0]?.latitude?r.provinces[0]?.latitude:r.countries[0]?.latitude]),o({id:r.id,title:r.title,url:r.url,slug:r.cities[0]?.slug?r.cities[0]?.slug:r.provinces[0]?.slug?r.provinces[0]?.slug:r.countries[0]?.slug,type:"story",image:r?.thumbnail?.url||r?.image?.url,iconSize:[25,25]})},story:!0,smallerthanlaptop:l,children:[(0,n.jsx)("div",{className:l?"mobile-activity-left-side":"desktop-activity-left-side",children:(0,n.jsx)(ep.Sl,{src:g?.url?g.url:m?m?.url:null,alt:"travel destination"})}),(0,n.jsxs)("div",{className:l?"mobile-activity-right-side":"desktop-activity-right-side",children:[(0,n.jsxs)(ep.Kw,{children:[(0,n.jsxs)(ep.uX,{children:[d," "]}),(0,n.jsx)("br",{})]}),(0,n.jsxs)(ep.fO,{children:[(i=null,u&&(i=(i=(i=(i=f()(u)).replaceAll("###","")).replaceAll("##","")).replaceAll("#","")),(0,n.jsx)(H.pu,{children:i?function(t){let i=t?.split("**");return(0,n.jsxs)("span",{children:[i?.[0],(0,n.jsx)("strong",{children:i?.[1]}),i?.[2]]})}(i):p?`${p?.substr(0,125).trim()}...`:""}))," ",(0,n.jsx)(ep.JX,{children:(0,n.jsx)("a",{className:"read-more",href:`/post/${h}`,children:(0,n.jsx)(H.xv,{onClick:()=>{Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"button",cta_text:"read_more",content_type:"stories",content_title:d,link_url:`/post/${h}`})},children:"Read more"})})})," "]})]})]},c)};var eQ=(0,a.$j)(t=>({}),t=>({setCurrentStoryCoordinates:i=>t(V(i)),setCurrentStory:i=>t(U(i))}))(t=>{let{story:i,isLazyLoaded:r,user:l,router:a,loading:o,email:s,currentCountry:c,i:u,setSwitchCountry:d,isLessThanLaptop:p,setCurrentStoryCoordinates:g,setCurrentStory:m}=t;return(0,n.jsx)(ep.ge,{className:"explore-list-modal-wrapper",smallerthanlaptop:p,$isLazyLoaded:r,children:i?(0,n.jsx)(eW,{story:i,isLessThanLaptop:p,user:l,router:a,loading:o,email:s,currentCountry:c,i:u,setSwitchCountry:d,setCurrentStoryCoordinates:g,setCurrentStory:m},i?.id):(0,n.jsx)(el.$j,{})})});let eJ=t=>t.stories.paginationObj,e0=(0,S.P1)([t=>t.stories.list,eJ],(t,i)=>{let r;return r=i?.length?f()(i):f()(t),(0,ev.iX)(r)});(0,S.P1)([eJ],t=>{let i=[];return t?.length&&(i=f()(t)),(0,ev.iX)(i)});let e1=(0,Z.ep)([B.MY,B.O8]),e5=(0,Z.uR)([B.MY,B.O8]);var e6=(0,a.$j)(t=>({storiesPaginationObj:t.stories.paginationObj,stories:t.stories.list,storiesLazyLoaded:e0(t),loading:e1(t.loading),error:e5(t.error),activeNavTab:t.global.activeNavTab}),t=>({fetchStoriesPaginated:i=>t(F(i))}))(t=>{let{stories:i,storiesLazyLoaded:r,router:a,loading:o,error:s,activeNavTab:c,currentCountry:u,fetchStoriesPaginated:d,storiesPaginationObj:p,isLessThanLaptop:g}=t,{instantItemsArray:m,dividedItemsArray:h}=r,[y,v]=(0,l.useState)(!1);(0,l.useEffect)(()=>{g&&v(g)},[g]),(0,l.useEffect)(()=>{m=r.instantItemsArray,h=r.dividedItemsArray},[i,r]);let b=()=>{d()},x=(0,l.useMemo)(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(en.Z,{dataLength:i.length,next:b,hasMore:!p||i?.length<p.totalItems,loader:(0,n.jsx)(el.$j,{}),endMessage:(0,n.jsx)("p",{style:{textAlign:"center",paddingTop:"25px"},children:(0,n.jsx)("b",{children:"Yay! You have seen it all"})}),scrollableTarget:"nearbyBannerContainer",children:[m?.length&&m.map((t,i)=>(0,n.jsx)("div",{children:(0,n.jsx)(eQ,{storiesTab:!0,story:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!1,router:a,i:i},`${t?.id}${t?.type}`)},`${t?.id}${t?.type}`)),h?.map((t,i)=>n.jsx(er.ZP,{scrollContainer:"#nearbyBannerContainer",offset:500,placeholder:n.jsx(el.$j,{}),overflow:!0,once:!0,children:n.jsx(n.Fragment,{children:t.map((t,i)=>n.jsxs("div",{children:[" ",n.jsx(eQ,{storiesTab:!0,story:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!0,router:a},`${t?.id}`)]},`${t?.id}`))})},`${t[0].id}*`))]})}),[i,r]);return!o||i?.length&&p?.length?!i?.length&&!p?.length||s[B.MY]||s[B.O8]?(0,n.jsx)(el.Bc,{message:i?.length&&p?.length?"Looks like something went wrong or you wandered too far away ...":"We don't have stories yet for this country...",title:i?.length&&p?.length?"Whoops!":"Sorry!",router:a,activeNavTab:c,currentCountry:u,buttonText:"See activities"}):(0,n.jsx)(n.Fragment,{children:x}):(0,n.jsx)(el.$j,{})}),e2=r(16592);let e4=t=>{let i,r,{itinerary:l,isLessThanLaptop:a,setCurrentItinerary:o}=t;if(!l)return"No content found";let{url:s,id:c,intro:u,title:d,subtitle:p,thumbnail:g,image:m}=l;return(0,n.jsxs)(ep.b1,{story:!0,smallerthanlaptop:a,onClick:()=>o(l),children:[(0,n.jsx)("div",{className:a?"mobile-activity-left-side":"desktop-activity-left-side",children:(0,n.jsx)(ep.Sl,{src:g?.url?g.url:m?m?.url:null,alt:"travel destination"})}),(0,n.jsxs)("div",{className:a?"mobile-activity-right-side":"desktop-activity-right-side",children:[(0,n.jsxs)(ep.Kw,{children:[(0,n.jsxs)(ep.uX,{children:[d," "]}),(0,n.jsx)("br",{})]}),(0,n.jsxs)(ep.fO,{children:[(i=null,u&&(i=(i=(i=(i=f()(u)).replaceAll("###","")).replaceAll("##","")).replaceAll("#","")),r=i?`${i.substr(0,125).trim()}...`:p?`${p?.substr(0,125).trim()}...`:"",(0,n.jsx)(H.pu,{children:r})),(0,n.jsx)(ep.JX,{children:(0,n.jsx)(H.xv,{onClick:()=>{Z.cp.emit({GA:!0},"GA4_carousel_item_click",{type:"button",cta_text:"read_more",content_type:"stories",content_title:d,link_url:s})},as:e2.Z,to:s,children:"Read more"})})]})]})]},c)};var e7=(0,a.$j)(t=>({}),t=>({fetchItinerariesPaginated:i=>t(W(i)),setCurrentItinerary:i=>t(et(i))}))(t=>{let{itinerary:i,isLazyLoaded:r,user:l,router:a,loading:o,email:s,currentCountry:c,i:u,setSwitchCountry:d,isLessThanLaptop:p,fetchItinerariesPaginated:g,setCurrentItinerary:m}=t;return(0,n.jsx)(ep.ge,{className:"explore-list-modal-wrapper",smallerthanlaptop:p,$isLazyLoaded:r,children:i?(0,n.jsx)(e4,{itinerary:i,isLessThanLaptop:p,user:l,router:a,loading:o,email:s,currentCountry:c,i:u,setSwitchCountry:d,fetchItinerariesPaginated:g,setCurrentItinerary:m},i?.id):(0,n.jsx)(el.$j,{})})});let e9=(0,S.P1)([t=>t.itineraries.list,t=>t.itineraries.paginationObj],(t,i)=>{let r;return r=i?.length?f()(i):f()(t),(0,ev.iX)(r)}),e3=(0,Z.ep)([K.V,K.sg]),e8=(0,Z.uR)([K.V,K.sg]);var te=(0,a.$j)(t=>({itinerariesPaginationObj:t.itineraries.paginationObj,itineraries:t.itineraries.list,itinerariesLazyLoaded:e9(t),loading:e3(t.loading),error:e8(t.error),activeNavTab:t.global.activeNavTab}),t=>({fetchItinerariesPaginated:i=>t(W(i))}))(t=>{let{itineraries:i,itinerariesLazyLoaded:r,router:a,loading:o,error:s,activeNavTab:c,currentCountry:u,fetchItinerariesPaginated:d,itinerariesPaginationObj:p,isLessThanLaptop:g}=t,{instantItemsArray:m,dividedItemsArray:h}=r;(0,l.useEffect)(()=>{m=r.instantItemsArray,h=r.dividedItemsArray},[i,r]);let y=()=>{d()},v=(0,l.useMemo)(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(en.Z,{dataLength:i?.length,next:y,hasMore:!p||i?.length<p.totalItems,loader:(0,n.jsx)(el.$j,{}),endMessage:(0,n.jsx)("p",{style:{textAlign:"center",paddingTop:"25px"},children:(0,n.jsx)("b",{children:"Yay! You have seen it all"})}),scrollableTarget:"nearbyBannerContainer",children:[m?.length&&m.map((t,i)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(e7,{itinerariesTab:!0,itinerary:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!1,router:a,i:i},`${t?.id}${t?.type}`)})),h?.map((t,i)=>n.jsx(er.ZP,{scrollContainer:"#nearbyBannerContainer",offset:500,placeholder:n.jsx(el.$j,{}),overflow:!0,once:!0,children:n.jsx(n.Fragment,{children:t.map((t,i)=>n.jsxs(n.Fragment,{children:[" ",n.jsx(e7,{storiesTab:!0,itinerary:t,onClickClose:()=>{},isLessThanLaptop:g,isLazyLoaded:!0,router:a},`${t?.id}`)]}))})},`${t[0].id}*`))]})}),[i,r]);return!o||i?.length&&p?.length?!i?.length&&!p?.length||s[K.V]||s[K.sg]?(0,n.jsx)(el.Bc,{message:i?.length&&p?.length?"Looks like something went wrong or you wandered too far away ...":"We don't have itineraries yet for this country...",title:!i?.length||p?.length?"Sorry!":"Whoops!",buttonText:"See activities",router:a,activeNavTab:c,currentCountry:u}):(0,n.jsx)(n.Fragment,{children:v}):(0,n.jsx)(el.$j,{})}),tt=r(37827),ti=(0,a.$j)(t=>({isExploreDrawerOpen:(0,L.L)(t),activeNavTab:t.global.activeNavTab,enabledCountries:(0,tt.op)(t),currentCountry:(0,tt.Id)(t),activities:t.activity.list,integratedViewOpen:t.global.integratedViewOpen,cities:t.city.list,provinces:t.province.list,detailedContentCities:t.city.detailedContentCities,currentCityMapbox:t.city.currentCityMapbox,openSessionFeedbackModal:t.feedback.openSessionFeedbackModal}),t=>({setCurrentActivitySlug:i=>t((0,T.Ro)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),setCitiesByDistance:i=>t((0,$.ky)(i)),setProvincesByDistance:i=>t((0,P.sg)(i)),setCurrentCityMapbox:i=>t((0,$.OC)(i)),setGuideState:i=>t((0,O.Bq)(i))}))(t=>{let{router:i,onClose:r,opened:a=!0,isExploreDrawerOpen:c,activeNavTab:u,integratedViewOpen:d,setIntegratedViewOpen:p,setCurrentActivitySlug:g,setCitiesByDistance:m,currentCountry:h,setProvincesByDistance:y,provinces:v,detailedContentCities:b,activities:x,enabledCountries:w,currentCityMapbox:_,isLessThanLaptop:C}=t,[j,k]=(0,l.useState)(!1),[S,A]=(0,l.useState)(!1);(0,l.useEffect)(()=>{C&&A(C)},[C]),(0,l.useEffect)(()=>{k(!0)},[]),(0,l.useEffect)(()=>
15{if(x&&null!==_){let t=f()(v);if(!t)return;y((0,ev.VK)(_,t));let i=f()(b);m((0,ev.VK)(_,i))}},[_]),(0,l.useEffect)(()=>{j&&(document.getElementById("nearbyBannerContainer").scrollTop=0)},[u,d]),(0,l.useEffect)(()=>{if(j&&!x)return},[h]);let z=()=>(0,n.jsx)(eI,{router:i,isLessThanLaptop:C}),I=()=>(0,n.jsx)(eq,{isLessThanLaptop:C,router:i}),L=()=>(0,n.jsx)(eY,{isLessThanLaptop:C,router:i}),M=()=>(0,n.jsx)(e6,{currentCountry:h,isLessThanLaptop:C,router:i}),T=()=>(0,n.jsx)(te,{currentCountry:h,isLessThanLaptop:C,router:i}),$=async(t,r)=>{let{activeIndex:n}=r,{query:l}=s.parseUrl(window.location.search);if(0===n){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Activities"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_text:"Activities",section:"tab_menu",link_url:`/explore/activities/${h}`});let t=new URLSearchParams({});l.labels&&t.set("labels",l.labels),l.keyword&&t.set("keyword",l.keyword),i.push({pathname:`/explore/activities/${h}`,query:t.toString()})}else if(1===n){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Cities"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_text:"Cities",section:"tab_menu",link_url:`/explore/cities/${h}`});let t=new URLSearchParams({});l.labels&&t.set("labels",l.labels),l.keyword&&t.set("keyword",l.keyword),i.push({pathname:`/explore/cities/${h}`,query:t.toString()})}else if(2===n){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Regions"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_text:"Provinces",section:"tab_menu",link_url:`/explore/provinces/${h}`});let t=new URLSearchParams({});l.labels&&t.set("labels",l.labels),l.keyword&&t.set("keyword",l.keyword),i.push({pathname:`/explore/provinces/${h}`,query:t.toString()})}else if(3===n){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Stories"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_text:"Stories",section:"tab_menu",link_url:`/explore/stories/${h}`});let t=new URLSearchParams({});l.labels&&t.set("labels",l.labels),l.keyword&&t.set("keyword",l.keyword),i.push({pathname:`/explore/stories/${h}`,query:t.toString()})}else if(4===n){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Itineraries"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_text:"Itineraries",section:"tab_menu",link_url:`/explore/itineraries/${h}`});let t=new URLSearchParams({});l.labels&&t.set("labels",l.labels),l.keyword&&t.set("keyword",l.keyword),i.push({pathname:`/explore/itineraries/${h}`,query:t.toString()})}0===n&&1===d&&0===u&&p(0),Z.Nd.dispatch("onTabClick",{index:n})},P=(0,l.useMemo)(()=>{let t=[{menuItem:(0,n.jsx)(ei.Z.Item,{children:(0,n.jsx)("h1",{className:"tab-title",children:"Activities"})},"tab 1"),render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1,children:z()})},{menuItem:(0,n.jsx)(ei.Z.Item,{children:(0,n.jsx)("h1",{className:"tab-title",children:"Cities"})},"tab 2"),render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1,children:I()})},{menuItem:(0,n.jsx)(ei.Z.Item,{children:(0,n.jsx)("h1",{className:"tab-title",children:"Regions"})},"tab 3"),render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1,children:L()})},{menuItem:(0,n.jsx)(ei.Z.Item,{children:(0,n.jsx)("h1",{className:"tab-title",children:"Stories"})},"tab 4"),render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1,children:M()})},{menuItem:(0,n.jsx)(ei.Z.Item,{children:(0,n.jsx)("h1",{className:"tab-title",children:"Itineraries"})},"tab 5"),render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1,children:T()})}];return(0,n.jsx)(o.Z,{id:"explore-drawer-tab",menu:{secondary:!0,pointing:!0},panes:t,activeIndex:u,onTabChange:$})},[u,h]),E=()=>{let t=new URLSearchParams({}),{query:r}=s.parseUrl(window.location.search);r.labels&&t.set("labels",r.labels);let n=1===u?"cities":2===u?"provinces":"activities";i.push({pathname:`/explore/${n}/${h}`,query:t.toString()}),0===u?(Z.cp.emit({GA:!0},"sidebar_-_activities-click_all_activities-click_all_activities","Click all activities"),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_function:"See all activities",section:"integrated_view",link_url:`/explore/${n}/${h}`})):1===u?(Z.cp.emit({GA:!0},"sidebar_-_cities-click_all_cities-click_all_cities","Click all cities"),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_function:"See all cities",section:"integrated_view",link_url:`/explore/${n}/${h}`})):2===u&&(Z.cp.emit({GA:!0},"sidebar_-_regions-click_all_regions-click_all_regions","Click all regions"),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",cta_function:"See all provinces",section:"integrated_view",link_url:`/explore/${n}/${h}`}))},O=()=>(0,n.jsxs)(n.Fragment,{children:[!S&&(0,n.jsx)("div",{className:"activities-header",children:(0,n.jsxs)(eX.hs,{integratedViewOpen:d,onClick:E,children:[1===d&&0===u&&(0,n.jsx)(eX.ks,{className:"gg-chevron-left",integratedActivityView:!0,onClick:E}),2===d&&1===u&&(0,n.jsx)(eX.ks,{className:"gg-chevron-left",integratedCityView:!0,onClick:E}),3===d&&2===u&&(0,n.jsx)(eX.ks,{className:"gg-chevron-left",IntegratedProvinceView:!0,onClick:E})]})}),(0,n.jsx)("div",{className:C?"content-mobile":"content-desktop",id:"nearbyBannerContainer",children:P})]});return C&&c?(0,n.jsxs)(eK,{mobile:1,position:{top:"30%",left:"0",margin:"0 auto"},onClose:r,opened:a?1:0,children:[(0,n.jsx)(eX.Rt,{className:"noSelect",integratedViewOpen:d,children:(0,n.jsx)(eX.fu,{})}),O()]}):(0,n.jsx)(eX.hG,{id:"explore-drawer-wrapper",opened:a?1:0,children:O()})}),tr=r(27541),tn={src:"/_next/static/media/AngleArrowLeft.1944ef09.svg",height:12,width:8,blurWidth:0,blurHeight:0},tl=t=>{let{onClick:i,opened:r=0,landingPage:l}=t;return(0,n.jsx)(eX.nd,{id:"explore-drawer-btn-wrapper",opened:r?1:0,className:r&&!l?"opened":"",onClick:i,$landingPage:l,children:(0,n.jsx)(eX.AI,{src:r?tn:tr.Z,alt:"toggle nearby activities banner"})})},ta=r(56027);r(58785),r(36997),r(5152);var to=r(72041),ts=(0,a.$j)(t=>({allActivities:(0,k.w4)(t),isExploreDrawerOpen:(0,L.L)(t),currentCountry:t.country.currentCountry,currentSlug:t.activity.currentSlug,integratedViewOpen:t.global.integratedViewOpen,isBot:t.global.isBot}),t=>({setIsExploreDrawerOpen:i=>t((0,O.Qr)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i))}))(t=>{let{onCountryClick:i,onActivityClick:r,currentActivityDetailRef:l,isLessThanLaptop:a,allActivities:o,currentCountry:s,router:c,isExploreDrawerOpen:u,setIsExploreDrawerOpen:d,integratedViewOpen:p,isBot:g,setIntegratedViewOpen:m,currentSlug:h,entity_type:y,country_slug:v,entity_slug:b,guideState:x}=t;(0,to.O)()&&navigator.userAgent.includes("ltw_screenshot_app");let f=t=>{Z.cp.emit({GA:!0},t?"sidebar-click_to_open_sidebar-click_to_open_sidebar":"sidebar-click_to_close_sidebar-click_to_close_sidebar",t?"Click to open sidebar":"Click to close sidebar")},w=()=>{f(!u),d(!u),1===p&&m(!m)};return(0,n.jsx)("div",{style:{height:"100vh"},children:(()=>
15{if(o?.length)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ti,{router:c,opened:u?1:0,onClose:()=>{f(!1),d(!1),m(0)},currentActivityDetailRef:l,isLessThanLaptop:a}),(0,n.jsx)(tl,{opened:u?1:0,onClick:w}),(0,n.jsx)(ta.Z,{onCountryClick:i})]})})()})}),tc=r(72873),tu=r(693),td=r(25675),tp=r.n(td);let tg=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-0"})(["display:flex;"]),tm=eL.ZP.img.withConfig({componentId:"sc-fa2c7456-1"})(["text-indent:-9999px;border-radius:10px;height:125px;width:125px;min-height:125px;min-width:125px;max-height:125px;max-width:125px;object-fit:cover;pointer-events:none;margin:auto 0px;@media (max-width:","){height:100px;width:100px;}@media (min-width:","){height:200px;width:200px;}@media (min-width:","){height:150px;width:150px;}"],Y.dp.mobileM,Y.dp.mobileXL,Y.dp.tablet),th=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-2"})(["display:block;font-family:",";font-weight:normal;line-height:20px;width:calc(100% - 125px);margin-top:5px;padding:20px 15px 0px 15px;"],Y.g5.MULISH),ty=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-3"})(["overflow-wrap:break-word;text-align:left;font-family:",";font-weight:bold;font-size:16px;margin-bottom:4px;color:",";@media (min-width:","){font-size:20px;}"],Y.g5.MULISH,Y.COLOR.MIDNIGHT_100,Y.dp.mobileXL),tv=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-4"})(["color:",";line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;font-size:14px;@media (min-width:","){font-size:16px;}"],Y.COLOR.MIDNIGHT_50,Y.dp.mobileXL),tb=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-5"})([""]),tx=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-6"})(["background:white;padding:12px;min-height:15vh;margin:0 10px 10px;display:flex;align-content:space-between;justify-content:space-between;border-radius:10px;@media (max-width:","){padding:8px;padding-top:14px;}"],Y.dp.mobileM),tf=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-7"})(["width:100%;height:150px;background:white;display:flex;margin:0 10px 10px;border-radius:10px;"]);eL.ZP.img.withConfig({componentId:"sc-fa2c7456-8"})(["z-index:99;align-self:flex-start;cursor:pointer;"]);let tw=(0,eL.ZP)(tp()).withConfig({componentId:"sc-fa2c7456-9"})(["z-index:99;cursor:pointer;height:20px;width:20px;cursor:pointer;position:absolute;top:17px;left:120px;"]),t_=eL.ZP.div.withConfig({componentId:"sc-fa2c7456-10"})([""]);var tC=r(37722),tj=t=>{let{title:i,description_short:r,image_url:a,alt_text:o,slug:s,router:c,isLessThanLaptop:u,anecdotes:d,labels:p,email:g,country:m,id:h,destinationName:y,user:v,addActivityToTrip:b,deleteActivityFromTrip:x,userTrips:f}=t,[w,_]=(0,l.useState)(!1);(0,l.useEffect)(()=>{(0,ev.iy)({userTrips:f,id:h,setIsFavourite:_})},[b,x,f,w,h]);let j=(0,C.useMediaQuery)({query:`(min-width: ${Y.dp.mobileXL})`}),k=(0,C.useMediaQuery)({query:"(max-height: 750px)"}),S=d?.filter(t=>t.featured),A=t=>{u&&c.push({pathname:`/activities/${m}/${s}`})};return(0,n.jsxs)(tx,{children:[(0,n.jsxs)(tg,{onClick:t=>A(t),children:[(0,n.jsxs)(t_,{children:[(0,n.jsx)(tm,{"data-src":a,className:"swiper-lazy",alt:o}),(0,n.jsx)(tw,{src:w?ex.Z:eb.Z,onClick:()=>(0,ev.VV)({userTrips:f,id:h,deleteActivityFromTrip:x,addActivityToTrip:b,user:v,router:c})})]}),(0,n.jsxs)(th,{children:[(0,n.jsx)(ty,{children:i}),(0,n.jsxs)(tv,{children:[(()=>{if(S?.length&&S[0]?.text)return(0,n.jsxs)(H.pu,{children:[(0,n.jsx)(H.Sd,{left:!0,src:eh.Z,alt:"quotation mark"}),S[0]?.text.substr(0,70).trim(),"...",(0,n.jsx)(H.Sd,{right:!0,src:ey.Z,alt:"quotation mark"})]});if(r?.length&&(!S?.length||!S[0]?.text)){let t="";return t=j?r.length>120?r.substring(0,67)+"...":r:r.length>70?r.substring(0,67)+"...":r,(0,n.jsxs)(H.pu,{children:[t," "]})}})()||"","\xa0",(0,n.jsx)(tC.SQ,{onClick:t=>{Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_activities-click_read_more",{activitySlug:s,email:g}),Z.cp.emit({GA:!0},"GA4_activity_click",{type:"button",cta_text:"read_more",activity_slug:s,location_on_page:"list_view",destination_name:y})},children:(0,n.jsxs)(H.xv,{as:ed.Z,href:`/activities/${m}/${s}`,children:["READ MORE"," "]})})]}),!k&&(0,n.jsx)(n.Fragment,{children:S?.length&&S[0]?.text?(0,n.jsxs)(eg.QV,{children:[(S[0]?.user?.avatar?.thumbnail||S[0]?.user?.avatar?.url)&&(0,n.jsx)(eg.OU,{src:S[0]?.user?.avatar?.thumbnail||S[0]?.user?.avatar?.url,alt:"user avatar"}),(S[0]?.caption||S[0]?.user?.anecdote_caption)&&(0,n.jsx)(eg.Qe,{children:`- ${S[0]?.caption?S[0]?.caption:S[0]?.user?.anecdote_caption}`})]}):(0,n.jsx)(es.Z,{labels:p||[],numberOfLabels:2,multipleActivitiesView:!0})})]})]}),S?.length&&S[0]?.text?(0,n.jsx)(H.on,{top:"0px",left:"10px",children:"Local Tip"}):null,(0,n.jsx)(eu.Z,{integratedActivity:!1,detailedActivity:!1,recommendedNearby:!0,activitySlug:s,activityId:h,router:c,right:"15px",top:"5px",fontSize:"12px",isLessThanLaptop:u})]})},tk=r(14666);let tS=(0,Z.ep)([em.dJ]),tA=(0,Z.ep)([tk.lb,tk.LL]);var tz=(0,a.$j)(t=>({loadingFavourites:tA(t.loading),loading:tS(t.loading),user:t.auth.user,currentActivity:t.activity.currentActivity,activities:t.activity.list,activityPaginationObj:t.activity.paginationObj,currentCountry:t.country.currentCountry,email:t.global.email,userTrips:t.trips.userTrips}),t=>({fetchActivitiesPaginated:i=>t((0,T.ly)(i)),addActivityToTrip:i=>t((0,N.Hn)(i)),deleteActivityFromTrip:i=>t((0,N.tz)(i))}))(t=>{let{activities:i,loading:r,inactive:l=!1,user:a,router:o,currentActivity:s,activityPaginationObj:c,currentCountry:u,fetchActivitiesPaginated:d,email:p,loadingFavourites:g,userTrips:m,addActivityToTrip:h,deleteActivityFromTrip:y}=t,v=t=>{if(!t?.description_short)return"";let i=f()(t?.description_short);return(i=(i=i.replaceAll("###","")).replaceAll("##","")).replaceAll("#","")};return!r&&i?(0,n.jsx)(tb,{inactive:l,children:(0,n.jsx)(tu.Z,{isLessThanLaptop:!0,id:"activities-mobile-list",swiperSlides:(()=>
15{if(!i||!i.length)return null;let t=[];return c&&(t=i.map((t,i)=>(0,n.jsx)(tc.o,{tag:"li",children:(0,n.jsx)(tj,{isLessThanLaptop:!0,id:t?.id,title:t?.name,description_short:v(t),image_url:(0,ev.Jn)(t?.images[0],!0)||ef.Z,alt_text:t?.images[0]?t?.images[0].alternativeText:"carousel image",link:`https://www.livetheworld.com/activities/${u}/${t?.slug}`,isFavorite:t?.isFavorite,user:a,slug:t?.slug,router:o,country:u,anecdotes:t?.anecdotes,labels:t?.labels,email:p,destinationName:t?.cities[0]?.name,userTrips:m,addActivityToTrip:h,deleteActivityFromTrip:y,loading:g},t?.id)},i))),(c&&i.length<c.totalItems||!c)&&t.push((0,n.jsx)(tc.o,{tag:"li",children:(0,n.jsxs)(tf,{children:[" ",(0,n.jsx)(el.$j,{autoMargin:!0})]})},i.length+1)),t})(),slidesPerView:1,centeredSlides:!1,navigation:!0,onSlideChange:t=>{if(i[t.activeIndex]){let r=new URLSearchParams({});r.set("map",!0),o.push({pathname:`/activities/${u}/${i[t.activeIndex].slug}`,query:r.toString()})}c&&t.activeIndex>=i.length-2&&i.length<c.totalItems&&d()},spaceBetween:0,freeMode:!1})}):""});let tI=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-0"})(["display:flex;"]),tL=eL.ZP.img.withConfig({componentId:"sc-1ef19a2d-1"})(["text-indent:-9999px;border-radius:10px;height:125px;width:125px;object-fit:cover;pointer-events:none;@media (min-width:","){height:200px;width:200px;}"],Y.dp.mobileXL),tM=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-2"})(["display:block;font-family:",";font-weight:normal;line-height:20px;width:calc(100% - 125px);padding:18px 5px 0px 5px;"],Y.g5.MULISH),tT=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-3"})(["overflow-wrap:break-word;text-align:left;font-family:",";font-weight:bold;font-size:16px;margin-bottom:4px;color:",";@media (min-width:","){font-size:20px;}"],Y.g5.MULISH,Y.COLOR.MIDNIGHT_100,Y.dp.mobileXL),t$=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-4"})(["color:",";line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;font-size:14px;@media (min-width:","){font-size:16px;}"],Y.COLOR.MIDNIGHT_50,Y.dp.mobileXL),tP=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-5"})([""]),tE=eL.ZP.div.withConfig({componentId:"sc-1ef19a2d-6"})(["background:white;padding:12px;min-height:15vh;margin:0 10px;display:flex;justify-content:center;align-items:center;border-radius:10px;"]);var tO=t=>{let{title:i,description:r,image_url:l,alt_text:a,slug:o,activeNavTab:s,detailed_content:c,currentCountry:u,tempCity:d}=t,p=(0,C.useMediaQuery)({query:`(min-width: ${Y.dp.mobileXL})`});return(0,n.jsx)(tE,{children:(0,n.jsxs)(tI,{children:[(0,n.jsx)(tL,{"data-src":l,className:"swiper-lazy",alt:a}),(0,n.jsxs)(tM,{children:[(0,n.jsx)(tT,{children:i}),(0,n.jsxs)(t$,{children:[(()=>{if(r?.length){let t="";return t=p?r.length>120?r.substring(0,117)+"...":r:r.length>70?r.substring(0,67)+"...":r,(0,n.jsxs)(H.pu,{children:[t," "]})}})()||"","\xa0",c?(0,n.jsx)(tC.SQ,{onClick:t=>{1===s?Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_cities-click_read_more",{activitySlug:o}):2===s&&Z.cp.emit({GA:!0,SIB:!0},"sidebar_-_regions-click_read_more",{activitySlug:o})},children:(0,n.jsxs)(H.xv,{as:ed.Z,href:2===s?`/${u}/${o}`:`/${u}/${d?.province?.slug}/${d?.slug}`,children:["READ MORE"," "]})}):null]})]})]})})};let tN=(0,Z.ep)([em.dJ]);var tR=(0,a.$j)(t=>({loading:tN(t.loading),user:t.auth.user,currentActivity:t.activity.currentActivity,activities:t.activity.list,citiesByDistance:t.city.citiesByDistance,activeNavTab:t.global.activeNavTab,provincesByDistance:t.province.provincesByDistance,currentCitySlug:t.city.currentSlug,currentProvinceSlug:t.province.currentSlug,currentCountry:t.country.currentCountry}),t=>({setCurrentCitySlug:i=>t((0,$.oz)(i)),resetCurrentCitySlug:()=>t((0,$.tX)()),setCurrentProvinceSlug:i=>t((0,P.YM)(i)),resetCurrentProvinceSlug:()=>t((0,P.Qf)()),setClickedCityorProvinceSlug:i=>t((0,O.aB)(i))}))(t=>{let{activities:i,loading:r,inactive:a=!1,user:o,router:s,isLessThanLaptop:c,citiesByDistance:u,activeNavTab:d,setCurrentCitySlug:p,resetCurrentCitySlug:g,setCurrentProvinceSlug:m,resetCurrentProvinceSlug:h,setClickedCityorProvinceSlug:y,provincesByDistance:v,currentCitySlug:b,currentProvinceSlug:x,currentCountry:f,topOrderCity:w,topOrderProvince:_}=t,[C,j]=(0,l.useState)([]),[k,S]=(0,l.useState)(null),[A,z]=(0,l.useState)(null);(0,l.useEffect)(()=>
15{if(1===d&&u){let t=[];u?.instantItemsArray?.length&&u.instantItemsArray.forEach(i=>{t.push(i)}),u?.dividedItemsArray?.length&&u.dividedItemsArray.forEach(i=>{i.forEach(i=>{t.push(i)})}),j(t)}else if(2===d&&v){let t=[];v?.instantItemsArray?.length&&v.instantItemsArray.forEach(i=>{t.push(i)}),v?.dividedItemsArray?.length&&v.dividedItemsArray.forEach(i=>{i.forEach(i=>{t.push(i)})}),j(t)}},[u,v,d]),(0,l.useEffect)(()=>{1===d&&S(w),2===d&&z(_)},[]);let I=async t=>{let i=null;1===d&&C[t.activeIndex]&&(S(i=C[t.activeIndex]),await h(),await g(),p(i.slug),y(i.slug)),2===d&&C[t.activeIndex]&&(z(i=C[t.activeIndex]),await g(),await h(),m(i.slug),y(i.slug))};return!r&&i?(0,n.jsx)(tP,{inactive:a,children:(0,n.jsx)(tu.Z,{isLessThanLaptop:!0,id:"cities-provinces-mobile-list",swiperSlides:C&&C.length?C.map((t,i)=>(0,n.jsx)(tc.o,{tag:"li",children:(0,n.jsx)(tO,{tempCity:k,tempProvince:A,activeNavTab:d,isLessThanLaptop:c,id:t?.id,title:t?.name,description:t?.description,image_url:t?.header_menu_image?.url||(0,ev.Jn)(t?.images[0],c)||ef.Z,alt_text:t?.header_menu_image?.alternativeText||t?.images[0]?t?.images[0]?.alternativeText:"carousel image",link:`https://www.livetheworld.com/cities/${t?.slug}`,user:o,slug:t?.slug,router:s,currentCountry:f,detailed_content:t.detailed_content},t?.id)},`${i}-slide`)):null,slidesPerView:1,centeredSlides:!1,navigation:!0,onSlideChange:I,spaceBetween:0,freeMode:!1})}):""});let tB=eL.ZP.div.withConfig({componentId:"sc-1b9670b6-0"})(["position:absolute;bottom:10px;width:100%;"]),tZ=eL.ZP.div.withConfig({componentId:"sc-1b9670b6-1"})(["width:100%;position:relative;"]),tF=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-0"})(["display:flex;"]),tG=eL.ZP.img.withConfig({componentId:"sc-2abcd7b1-1"})(["text-indent:-9999px;border-radius:10px;height:125px;width:125px;object-fit:cover;pointer-events:none;@media (min-width:","){height:200px;width:200px;}"],Y.dp.mobileXL),tD=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-2"})(["display:block;font-family:",";font-weight:normal;line-height:20px;width:calc(100% - 125px);padding:18px 5px 0px 5px;"],Y.g5.MULISH),tq=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-3"})(["overflow-wrap:break-word;text-align:left;font-family:",";font-weight:bold;font-size:16px;margin-bottom:4px;color:",";@media (min-width:","){font-size:20px;}"],Y.g5.MULISH,Y.COLOR.MIDNIGHT_100,Y.dp.mobileXL),tV=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-4"})(["color:",";line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;font-size:14px;@media (min-width:","){font-size:16px;}"],Y.COLOR.MIDNIGHT_50,Y.dp.mobileXL),tU=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-5"})([""]),tH=eL.ZP.div.withConfig({componentId:"sc-2abcd7b1-6"})(["background:white;padding:12px;min-height:15vh;margin:0 10px;display:flex;justify-content:center;align-items:center;border-radius:10px;max-height:",";"],t=>t.$maxHeight?"15vh":"unset");var tY=r(7416),tX=t=>{let{story:i,loading:r}=t,{title:l,subtitle:a,thumbnail:o,url:s}=i;return(0,n.jsx)(tH,{$maxHeight:r,children:(0,n.jsx)(tF,{children:r?(0,n.jsx)(tY.Z,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tG,{"data-src":o?.url,className:"swiper-lazy",alt:l}),(0,n.jsxs)(tD,{children:[(0,n.jsx)(tq,{children:l}),(0,n.jsxs)(tV,{children:[a,"\xa0",(0,n.jsx)(tC.SQ,{children:(0,n.jsxs)(e2.Z,{href:s,children:[" ",(0,n.jsx)(H.xv,{children:"READ MORE "})]})})]})]})]})})})};let tK=(0,Z.ep)([B.MY]);var tW=(0,a.$j)(t=>({loading:tK(t.loading),user:t.auth.user,activeNavTab:t.global.activeNavTab,currentCountry:t.country.currentCountry,storiesList:t.stories.storiesList,storiesLazyLoaded:e0(t),stories:t.stories.list,storiesPaginated:t.stories.paginationObj,currentStory:t.stories.currentStory}),t=>({setCurrentStoryCoordinates:i=>t(V(i)),setCurrentStory:i=>t(U(i))}))(t=>{let{router:i,isLessThanLaptop:r,activeNavTab:a,currentCountry:o,storiesLazyLoaded:s,stories:c,setCurrentStoryCoordinates:u,currentStory:d,storiesPaginated:p,loading:g}=t,[m,h]=(0,l.useState)([]),[y,v]=(0,l.useState)(null),{instantItemsArray:b,dividedItemsArray:x}=s;(0,l.useEffect)(()=>{b=s.instantItemsArray,x=s.dividedItemsArray},[c,s]),(0,l.useEffect)(()=>{let t=[];b?.length&&b.forEach(i=>
15{t.push(i)}),x?.length&&x.forEach(i=>{i.forEach(i=>{t.push(i)})}),h(t)},[s,a]),(0,l.useEffect)(()=>{p?.length&&(v(0),u([p[0].longitude?p[0].longitude:p[0].cities[0]?.longitude?p[0].cities[0]?.longitude:p[0].provinces[0]?.longitude?p[0].provinces[0]?.longitude:p[0].countries[0]?.longitude,p[0].latitude?p[0].latitude:p[0].cities[0]?.latitude?p[0].cities[0]?.latitude:p[0].provinces[0]?.latitude?p[0].provinces[0]?.latitude:p[0].countries[0]?.latitude]))},[p]),(0,l.useEffect)(()=>{3===a&&b?.length&&u([b[0].longitude?b[0].longitude:b[0].cities[0]?.longitude?b[0].cities[0]?.longitude:b[0].provinces[0]?.longitude?b[0].provinces[0]?.longitude:b[0].countries[0]?.longitude,b[0].latitude?b[0].latitude:b[0].cities[0]?.latitude?b[0].cities[0]?.latitude:b[0].provinces[0]?.latitude?b[0].provinces[0]?.latitude:b[0].countries[0]?.latitude])},[]),(0,l.useEffect)(()=>{0===y&&v(null)},[y]);let f=async t=>{let i=null;0!==y&&3===a&&m[t.activeIndex]&&(i=m[t.activeIndex],u([i?.longitude?i.longitude:i.cities[0]?.longitude?i.cities[0]?.longitude:i.provinces[0]?.longitude?i.provinces[0]?.longitude:i.countries[0]?.longitude,i?.latitude?i.latitude:i.cities[0]?.latitude?i.cities[0]?.latitude:i.provinces[0]?.latitude?i.provinces[0]?.latitude:i.countries[0]?.latitude]))},w=(0,l.useMemo)(()=>c?.length?m.map((t,l)=>(0,n.jsx)(tc.o,{tag:"li",children:(0,n.jsx)(tX,{story:t,activeNavTab:a,isLessThanLaptop:r,id:t?.id,title:t?.name,router:i,currentCountry:o,loading:g},t?.id)},`${l}-slide`)):null,[m,s,y]);return c||p?(0,n.jsx)(tU,{children:(0,n.jsx)(tu.Z,{isLessThanLaptop:!0,id:"story-mobile-list",swiperSlides:w,slidesPerView:1,centeredSlides:!1,navigation:!0,onSlideChange:f,spaceBetween:0,freeMode:!1,dataChanged:m,slideTo:y})}):""});let tQ=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-0"})(["display:flex;"]),tJ=(0,eL.ZP)(tp()).withConfig({componentId:"sc-c4210a6c-1"})(["text-indent:-9999px;border-radius:10px;height:125px;width:125px;object-fit:cover;pointer-events:none;@media (min-width:","){height:200px;width:200px;}"],Y.dp.mobileXL),t0=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-2"})(["display:block;font-family:",";font-weight:normal;line-height:20px;width:calc(100% - 125px);padding:18px 5px 0px 5px;"],Y.g5.MULISH),t1=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-3"})(["overflow-wrap:break-word;text-align:left;font-family:",";font-weight:bold;font-size:16px;margin-bottom:4px;color:",";@media (min-width:","){font-size:20px;}"],Y.g5.MULISH,Y.COLOR.MIDNIGHT_100,Y.dp.mobileXL),t5=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-4"})(["color:",";line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;font-size:14px;@media (min-width:","){font-size:16px;}"],Y.COLOR.MIDNIGHT_50,Y.dp.mobileXL),t6=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-5"})([""]),t2=eL.ZP.div.withConfig({componentId:"sc-c4210a6c-6"})(["background:white;padding:12px;min-height:15vh;margin:0 10px;display:flex;justify-content:center;align-items:center;border-radius:10px;max-height:",";"],t=>t.$maxHeight?"15vh":"unset");var t4=t=>{let{itinerary:i,loading:r}=t,{title:l,subtitle:a,thumbnail:o,url:s}=i;return(0,n.jsx)(t2,{$maxHeight:r,children:(0,n.jsx)(tQ,{children:r?(0,n.jsx)(tY.Z,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tJ,{"data-src":o?.url,className:"swiper-lazy",alt:l}),(0,n.jsxs)(t0,{children:[(0,n.jsx)(t1,{children:l}),(0,n.jsxs)(t5,{children:[a,"\xa0",(0,n.jsx)(tC.SQ,{children:(0,n.jsx)(e2.Z,{href:s,children:(0,n.jsx)(H.xv,{children:"READ MORE "})})})]})]})]})})})};let t7=(0,Z.ep)([K.V]);var t9=(0,a.$j)(t=>({loading:t7(t.loading),user:t.auth.user,activeNavTab:t.global.activeNavTab,currentCountry:t.country.currentCountry,itinerariesLazyLoaded:e9(t),itineraries:t.itineraries.list,itinerariesPaginated:t.itineraries.paginationObj}),t=>({setCurrentItinerary:i=>t(et(i))}))(t=>{let{router:i,isLessThanLaptop:r,activeNavTab:a,currentCountry:o,itinerariesLazyLoaded:s,itineraries:c,setCurrentItinerary:u,itinerariesPaginated:d,loading:p}=t,[g,m]=(0,l.useState)([]),[h,y]=(0,l.useState)(null),[v,b]=(0,l.useState)(null),{instantItemsArray:x,dividedItemsArray:f}=s;(0,l.useEffect)(()=>{x=s.instantItemsArray,f=s.dividedItemsArray},[c,s]),(0,l.useEffect)(()=>{let t=[];x?.length&&x.forEach(i=>
15{t.push(i)}),f?.length&&f.forEach(i=>{i.forEach(i=>{t.push(i)})}),m(t)},[s,a]),(0,l.useEffect)(()=>{4===a&&x?.length&&y(x[0])},[]),(0,l.useEffect)(()=>{4===a&&x?.length&&y(x[0]),u(x[0])},[]),(0,l.useEffect)(()=>{d?.length&&b(0)},[d]),(0,l.useEffect)(()=>{0===v&&b(null)},[v]);let w=async t=>{let i=null;4===a&&g[t.activeIndex]&&(y(i=g[t.activeIndex]),u(i))};return c?.length||d?.length?(0,n.jsx)(t6,{children:(0,n.jsx)(tu.Z,{isLessThanLaptop:!0,id:"itinerary-mobile-list",swiperSlides:c.length||d?.length?g.map((t,l)=>(0,n.jsx)(tc.o,{tag:"li",children:(0,n.jsx)(t4,{tempItinerary:h,itinerary:t,activeNavTab:a,isLessThanLaptop:r,id:t?.id,title:t?.name,router:i,currentCountry:o,loading:p},t?.id)},`${l}-slide`)):null,slidesPerView:1,centeredSlides:!1,navigation:!0,onSlideChange:w,spaceBetween:0,freeMode:!1,slideTo:v})}):""}),t3=(0,a.$j)(t=>({activity:(0,k.Nv)(t),activities:t.activity.list,activeNavTab:t.global.activeNavTab,tripFilter:t.searchFilter.trip,cities:t.city.list,citiesByDistance:t.city.citiesByDistance,provinces:t.province.list,provincesByDistance:t.province.provincesByDistance,stories:t.stories.list,storiesPaginated:t.stories.paginationObj,itineraries:t.itineraries.list,itinerariesPaginated:t.itineraries.paginationObj}),t=>({}))(t=>{let{activities:i,router:r,activeNavTab:a,cities:o,citiesByDistance:s,provinces:c,provincesByDistance:u,topOrderCity:d,topOrderProvince:p,stories:g,storiesPaginated:m,itineraries:h,itinerariesPaginated:y}=t,v=(0,l.useMemo)(()=>(0,n.jsx)(tz,{apViewCarousel:!0,router:r}),[i]),b=(0,l.useMemo)(()=>(0,n.jsx)(tW,{router:r}),[g,m]),x=(0,l.useMemo)(()=>(0,n.jsx)(t9,{router:r}),[h,y]),f=(0,l.useMemo)(()=>(0,n.jsx)(tR,{topOrderCity:d,topOrderProvince:p,router:r}),[o,s,c,u,a]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(tB,{id:"explore-mobile-list-wrapper",children:(0,n.jsxs)(tZ,{children:[0===a&&(0,n.jsxs)(n.Fragment,{children:[" ",v]}),(1===a||2===a)&&(0,n.jsx)(n.Fragment,{children:f}),3===a&&(0,n.jsxs)(n.Fragment,{children:[" ",b]}),4===a&&(0,n.jsxs)(n.Fragment,{children:[" ",x]})]})})})});r(42939);var t8=(0,a.$j)(t=>({isMapView:t.global.isMapView,activities:t.activity.list,activeNavTab:t.global.activeNavTab}))(t=>{let{isMapView:i,activities:r,switchViewType:a,activeNavTab:o}=t,s=(0,C.useMediaQuery)({query:`(max-width: ${Y.dp.mobileM})`});return(0,l.useEffect)(()=>{i?setTimeout(()=>{let t=document.getElementById("explore-mobile-list-wrapper");if(t){let i=t.getBoundingClientRect();i.left;let r=i.top;document.getElementById("switch-view-type-label").style.top=`${r-(s?35:40)}px`,document.querySelector(".mapboxgl-ctrl-bottom-right").style.top=`${r-(s?35:40)-45}px`}},100):document.getElementById("switch-view-type-label").style.top="24.5%"},[i,r,o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"checkbox",id:"switch-view-type-input",checked:i,onChange:()=>{}}),(0,n.jsxs)(eX.Vi,{id:"switch-view-type-label",htmlFor:"switch-view-type-input",onClick:a,children:[(0,n.jsx)(eX.Xx,{className:"toggle",$isMapView:i}),(0,n.jsxs)(eX.NO,{children:[(0,n.jsx)(eX.Kd,{children:"List"}),(0,n.jsx)(eX.Kd,{children:"Map"})]})]})]})});let ie=eL.ZP.div.withConfig({componentId:"sc-f6bf14b0-0"})(["z-index:2;width:100%;height:100%;position:absolute;cursor:pointer;"]);var it=(0,a.$j)(t=>({allActivities:(0,k.w4)(t),activities:t.activity.list,isExploreDrawerOpen:(0,L.L)(t),currentCountry:t.country.currentCountry,currentSlug:t.activity.currentSlug,activeNavTab:t.global.activeNavTab,citiesByDistance:t.city.citiesByDistance,provincesByDistance:t.province.provincesByDistance,isBot:t.global.isBot,isMapView:t.global.isMapView}),t=>({setIsExploreDrawerOpen:i=>t((0,O.Qr)(i)),setCurrentCitySlug:i=>t((0,$.oz)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),setIsMapView:i=>t((0,O.zT)(i)),setCurrentProvinceSlug:i=>t((0,P.YM)(i)),setClickedCityorProvinceSlug:i=>t((0,O.aB)(i)),resetCurrentCitySlug:()=>t((0,$.tX)()),resetCurrentProvinceSlug:i=>t((0,P.Qf)(i))}))(t=>{let{onCountryClick:i,onActivityClick:r,currentActivityDetailRef:l,isLessThanLaptop:a,allActivities:o,currentCountry:s,router:c,isExploreDrawerOpen:u,setIsExploreDrawerOpen:d,activeNavTab:p,isBot:g,setCurrentCitySlug:m,resetCurrentCitySlug:h,resetCurrentProvinceSlug:y,setCurrentProvinceSlug:v,setIntegratedViewOpen:b,setClickedCityorProvinceSlug:x,currentSlug:f,isMapView:w,setIsMapView:_,activities:C,citiesByDistance:j,provincesByDistance:k,fetchActivities:S,entity_type:A,country_slug:z,entity_slug:I,guideState:L}=t;navigator.userAgent.includes("ltw_screenshot_app");let M=t=>{Z.cp.emit({GA:!0},t?"sidebar-click_to_open_sidebar-click_to_open_sidebar":"sidebar-click_to_close_sidebar-click_to_close_sidebar",t?"Click to open sidebar":"Click to close sidebar")},T=async()=>{let t=new URLSearchParams({});if(w){_(!1),1===p?c.push({pathname:`/explore/cities/${s}`}):2===p?c.push({pathname:`/explore/provinces/${s}`}):3===p?c.push({pathname:`/explore/stories/${s}`}):4===p?c.push({pathname:`/explore/itineraries/${s}`}):c.push({pathname:`/explore/activities/${s}`});return}if(_(!0),1===p&&j?.instantItemsArray?.length){let t=j?.instantItemsArray[0];await y(),await h(),m(t.slug),x(t.slug)}else if(2===p&&k?.instantItemsArray?.length){let t=k?.instantItemsArray[0];await h(),await y(),v(t.slug),x(t.slug)}else 0===p?f?(t.set("map",!0),c.push({pathname:`/activities/${s}/${f}`,query:t.toString()}),S(f)):(t.set("map",!0),c.push({pathname:`/activities/${s}/${C[0].slug}`,query:t.toString()})):C?.length&&3!==p&&4!==p&&(t.set("map",!0),c.push({pathname:`/activities/${s}/${C[0].slug}`,query:t.toString()}))};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{style:{height:"100vh"},children:w?(0,n.jsx)(n.Fragment,{children:(()=>
15{if(o?.length)return(0,n.jsxs)(n.Fragment,{children:[C&&C.length&&(0,n.jsx)(t8,{switchViewType:T}),(0,n.jsx)(t3,{topOrderCity:j.length?j?.instantItemsArray[0]:null,topOrderProvince:j.length?k?.instantItemsArray[0]:null,router:c})]})})()}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{id:"mobile-map-container",$isMapView:w,onClick:T}),(()=>{if(o?.length)return(0,n.jsxs)(n.Fragment,{children:[C&&C.length&&(0,n.jsx)(t8,{switchViewType:T}),(0,n.jsx)(ti,{router:c,opened:u?1:0,onClose:()=>{M(!1),d(!1),b(0)},currentActivityDetailRef:l,isLessThanLaptop:a})]})})()]})})})})}),ii=r(68509),ir=r(75479),il=r(16640),ia=r(34242),io=t=>{let i,{guideState:r,router:l,currentNeighbourhood:a,currentActivity:o,currentActivityDetail:s,isLessThanLaptop:c,isMapView:u,currentCountry:d,country_slug:p,entity_slug:g,entity_type:m}=t,h="maps";if(r===Y.Y5.ACTIVITY&&(o||s)){h="activity";let t=o?.name?s?.cities?.length?`Visit ${s?.name+(s?.local_name?" ("+s?.local_name+")":"")} in ${s.cities[0].name} | Live the World`:o?.name+(s?.local_name?" ("+s?.local_name+")":"")+" | Live the World":"Live the World | Plan a trip filled with authentic experiences";i={description:`${o?.description_short||s?.description_short}`,title:t,image:s&&s?.images?.length?s?.images[0]?.url:o?.image?o.image:"",width:s&&s?.images?.length?s?.images[0]?.width:"",height:s&&s?.images?.length?s?.images[0]?.height:"",url:`https://www.livetheworld.com/activities/${p}/${g}`,canonical:c&&!u?`https://www.livetheworld.com/activities/${p}/${g}`:`https://www.livetheworld.com/activities/${d}/`+(s?.slug||o?.slug),type:"article"}}else if(r===Y.Y5.NEIGHBOURHOOD&&a){let t=a?.name?`The 2022 Travel Guide to ${a.name} | what you need to know`:"Live the World | Plan a trip filled with authentic experiences";i={description:a?.name?` Everything you need to know about ${a.name} before you go! Our travel guide 101 brings you all the deets: the highlights, when to go, and much more.`:"Explore off-the-beaten-track with our interactive travel guide. Get inspired and plan your next trip with local recommendations and authentic activities.",title:t,image:a?.images[0]?.url,width:a?.images[0]?.width,height:a?.images[0]?.height,url:window.location.href,type:"website",canonical:`https://www.livetheworld.com/neighbourhoods/${d}/`+a?.slug}}else i={description:"Discover more local, authentic experiences than your typical travel guide; and start traveling at the slow travel pace. Recommended by locals; never sponsored.",title:"Live the World | Plan a trip filled with authentic experiences",image:Y.Wx,url:`https://www.livetheworld.com/explore/${m}/${g}`,type:"website",canonical:`https://www.livetheworld.com/explore/${m}/${g}`};return i?(0,n.jsx)(ia.Z,{router:l,item:i,adContent:h}):null},is=r(48032),ic=r(55071);let iu={top:"50%",left:"50%",margin:"0 auto"};var id=t=>{let{onClose:i}=t;return(0,n.jsxs)(is.Z,{position:iu,modalInCenter:!0,onClose:i,includeDimmedBackground:!0,sessionFeedbackModal:1,closeOnOutsideClick:0,children:[(0,n.jsxs)(ic.Gk,{children:["Get 1 month ",(0,n.jsx)(ic.IO,{children:"free"})," access"]}),(0,n.jsx)(ic.TI,{children:"We need to know what you're thinking to improve our platform! Book a 15 min feedback call or complete the short survey, and you'll get a month of free access to thank you for your help."})]})},ip=r(36802),ig=r(69736),im=r(44256),ih=r(58800),iy=r(41261),iv=r(75233),ib=r(66216),ix=r(96981),iw=r(55163);let i_=[{intro:(0,n.jsxs)(H.j1,{children:[(0,n.jsx)(H.OO,{src:z.Z,alt:"smiley icon"}),(0,n.jsx)(H.BZ,{children:"You're seeing a filtered version of the map. Click here to remove or change the filters!"})]}),element:".filterButton"}],iC=[{intro:(0,n.jsxs)(H.j1,{children:[(0,n.jsx)(H.OO,{src:z.Z,alt:"smiley icon"}),(0,n.jsx)(H.BZ,{children:"Click here to create and add to your trip!"})]}),element:".saveButton"}],ij=[{intro:(0,n.jsxs)(H.j1,{children:[(0,n.jsx)(H.OO,{src:z.Z,alt:"smiley icon"}),(0,n.jsx)(H.BZ,{children:"Click here to personalize to your taste!"})]}),element:".filterButton"},{intro:(0,n.jsxs)(H.j1,{children:[(0,n.jsx)(H.OO,{src:z.Z,alt:"smiley icon"}),(0,n.jsx)(H.BZ,{children:"Click here to create and add to your trip!"})]}),element:".saveButton"}
15],ik=(0,Z.ep)([em.zW,iw.xF,ix.CP]),iS=(0,Z.ep)([em.zW,eZ.O,eV.vd]);var iA=(0,a.$j)(t=>({allActivities:(0,k.w4)(t),allActivitiesCountry:(0,k.Oc)(t),loading:ik(t.loading),isloadingBaseContent:iS(t.loading),activities:t.activity.list,isExploreDrawerOpen:(0,L.L)(t),currentActivity:(0,k.Nv)(t),currentActivityDetail:t.activity.currentActivity,currentActivitySlug:t.activity.currentSlug,currentCitySlug:t.city.currentSlug,currentProvinceSlug:t.province.currentSlug,currentCountry:t.country.currentCountry,enabledCountries:t.country.enabled,cities:t.city.list,currentNeighbourhood:t.neighbourhood.currentNeighbourhood,provinces:t.province.list,detailedContentCities:t.city.detailedContentCities,integratedViewOpen:t.global.integratedViewOpen,user:t.auth.user,activeNavTab:t.global.activeNavTab,labels:t.label.list,keywords:t.keyword.list,currentCityMapbox:t.city.currentCityMapbox,showFilterOverlay:t.global.showFilterOverlay,showSaveOverlay:t.global.showSaveOverlay,isBot:t.global.isBot,isMapView:t.global.isMapView,openSessionFeedbackModal:t.feedback.openSessionFeedbackModal,payWallLeadinShown:t.global.payWallLeadinShown,guideState:t.global.guideState}),t=>({fetchAllActivities:i=>t((0,T.kQ)(i)),fetchActivitiesPaginated:i=>t((0,T.ly)(i)),fetchStoriesPaginated:i=>t(F(i)),fetchItinerariesPaginated:i=>t(W(i)),setCurrentActivitySlug:i=>t((0,T.Ro)(i)),setActivityMarkerOpen:i=>t((0,T.vb)(i)),setIsExploreDrawerOpen:i=>t((0,O.Qr)(i)),fetchCitiesList:i=>t((0,$.pH)({country:i})),clearFilters:()=>t((0,eS.K5)()),setCurrentCountry:i=>t((0,ig.f6)(i)),fetchEnabledCountries:()=>t((0,ig.MN)()),setCurrentCitySlug:i=>t((0,$.oz)(i)),setCitiesByDistance:i=>t((0,$.ky)(i)),setProvincesByDistance:i=>t((0,P.sg)(i)),setIntegratedViewOpen:i=>t((0,O.Ax)(i)),setIsMapView:i=>t((0,O.zT)(i)),fetchActivityBySlug:i=>t((0,T.Kf)(i)),fetchProvincesList:i=>t((0,P.lw)({country:i})),setActiveNavTab:i=>t((0,O.Lx)(i)),setCurrentProvinceSlug:i=>t((0,P.YM)(i)),fetchLabels:()=>t((0,im.e)()),fetchKeywords:()=>t((0,ih.F)()),setClickedCityorProvinceSlug:i=>t((0,O.aB)(i)),setLabel:i=>t((0,eS._R)(i)),setKeyword:i=>t((0,eS.C9)(i)),setCurrentHoveredActivity:i=>t((0,T.H4)(i)),resetCurrentCitySlug:()=>t((0,$.tX)()),resetCurrentProvinceSlug:i=>t((0,P.Qf)(i)),setCurrentCityMapbox:i=>t((0,$.OC)(i)),setUserOnboarding:()=>t((0,iy.lK)()),getUserInfo:()=>t((0,iv.bG)()),setShowFilterOverlay:i=>t((0,O.E5)(i)),setShowSaveOverlay:i=>t((0,O.Oz)(i)),fetchNeighbourhoodBySlug:i=>t((0,ip.Y2)(i)),resetCurrentCityMapbox:()=>t((0,$.rq)()),setOpenSessionFeedbackModal:i=>t((0,ib.qN)(i)),setPayWallLeadinShown:i=>t((0,O.x0)(i)),fetchAllStories:i=>t(G(i)),fetchAllItineraries:i=>t(Q(i)),setSubscribeModalOpen:i=>t((0,ib.N3)(i)),setSubscribeModalSource:i=>t((0,ib.xJ)(i)),setSwitchCountry:i=>t((0,O._n)(i))}))(t=>{let{exploreRefresh:i,guideState:r,entity_type:d,country_slug:p,entity_slug:g,fetchAllActivities:m,fetchActivitiesPaginated:h,allActivities:y,allActivitiesCountry:v,activities:b,fetchCitiesList:x,fetchProvincesList:f,cities:w,setCurrentCountry:_,enabledCountries:C,fetchEnabledCountries:j,provinces:k,setActivityMarkerOpen:S,currentActivityDetail:A,labels:z,fetchLabels:I,keywords:L,fetchKeywords:M,currentCountry:T,router:$,setActiveNavTab:P,showFilterOverlay:E,showSaveOverlay:O,user:N,currentActivity:R,isExploreDrawerOpen:B,setIsExploreDrawerOpen:F,loading:G,integratedViewOpen:D,activeNavTab:q,currentNeighbourhood:V,setCurrentActivitySlug:U,setCurrentCitySlug:H,clearFilters:X,setLabel:K,setKeyword:W,resetCurrentCitySlug:Q,resetCurrentProvinceSlug:J,setIntegratedViewOpen:ee,isMapView:et,setIsMapView:ei,setCurrentCityMapbox:er,fetchActivityBySlug:en,setClickedCityorProvinceSlug:ea,setCurrentHoveredActivity:eo,currentCityMapbox:es,detailedContentCities:ec,setCitiesByDistance:eu,setProvincesByDistance:ed,isloadingBaseContent:ep,resetCurrentCityMapbox:eg,setCurrentProvinceSlug:em,setShowSaveOverlay:eh,setShowFilterOverlay:ey,setOpenSessionFeedbackModal:eb,openSessionFeedbackModal:ex,payWallLeadinShown:ef,setPayWallLeadinShown:ew,currentActivitySlug:e_,currentCitySlug:eC,currentProvinceSlug:ej,fetchStoriesPaginated:ek,fetchItinerariesPaginated:eS,fetchAllStories:eA,fetchAllItineraries:ez,isLessThanLaptop:eI,setSubscribeModalOpen:eL,setSubscribeModalSource:eM,setSwitchCountry:eT}=t,e$=(0,a.v9)(t=>t.searchFilter.trip,a.wU),[eP,eE]=(0,l.useState)(!1);(0,l.useEffect)(()=>{eI&&eE(eI)},[eI]);let[eO,eN]=(0,l.useState)(!1),[eR,eB]=(0,l.useState)(!1),[eZ,eF]=(0,l.useState)(!1),[eG,eD]=(0,l.useState)(!1),[eq,eV]=(0,l.useState)([]),[eU,eH]=(0,l.useState)(!0),[eY,eX]=(0,l.useState)(!1),[eK,eW]=(0,l.useState)(0),[eQ,eJ]=(0,l.useState)(null),[e0,e1]=(0,l.useState)(null),e5=(0,l.useRef)(null);e5.current=A;let e6=(0,l.useRef)(null);e6.current=V;let e2=(0,l.useRef)(null);e2.current=$.query;let e4=(0,l.useRef)(null),e7=(0,l.useRef)(null);e7.current=ef;let e9=(0,l.useRef)(null);e9.current=eY;let e3=async t=>{await U(t),await S(!0),await ee(1),await ei(!0),B||await F(!0)};(0,l.useEffect)(()=>
15{if(w.length&&($.query.city||"cities"===d&&g)){let t=$.query?.city||g,i=w.findIndex(i=>i.slug===t);eJ(w[i])}if(k.length&&($.query.province||"provinces"===d&&g)){let t=$.query?.province||g,i=k.findIndex(i=>i.slug===t);e1(k[i])}},[$.query,$.query.city,$.query.province,w,k]),(0,l.useEffect)(()=>{$.query.city&&$.query.city!==eC&&H($.query.city),$.query.province&&$.query.province!==ej&&em($.query.province)},[$.query,eC,ej]),(0,l.useEffect)(()=>{localStorage.getItem("showUserConfirmationMessage")&&(localStorage.removeItem("showUserConfirmationMessage"),(0,ev.Mp)(c.Am.TYPE.SUCCESS,"Your account is successfully confirmed!")),p&&_(p),p||$.push({pathname:"/onboarding"})},[]),(0,l.useEffect)(()=>{y?.length&&w?.length&&k?.length&&C?.length&&!eR&&(eB(!0),F(!0),(O||E||!N?.onboarded)&&to(2500))},[y,w,k,C,E,O,N]),(0,l.useEffect)(()=>{let{city:t}=(0,s.parse)($.query);Z.cp.emit({GA:!0},"GA4_content_grouping",{destination_country:T,destination_city:"cities"===g&&g?g:t})},[T]),(0,l.useEffect)(()=>{if(eZ){let t=document.getElementById("nearbyBannerContainer");t&&(t.scrollTop=0),h({country:T,pageNumber:0,pageSize:10,...(0,ev.jW)({guideState:r,GUIDE_STATES:Y.Y5,entity_type:d,entity_slug:g}),trips:N?.trips&&e$?.length?e$.toString():null})}},[e$]),(0,l.useEffect)(()=>{if(y?.length&&w?.length&&k?.length&&C?.length&&!eZ&&!ep){eF(!0);let t=C.find(t=>t.slug===p);(0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},t||null),te()}},[y,w,k,C]),(0,l.useEffect)(()=>{let{province:t,city:i,neighbourhood:n}=(0,s.parse)($.query),l=C.find(t=>t.slug===p),a=!1;r===Y.Y5.CITY_TAB||r===Y.Y5.NEIGHBOURHOOD_TAB?P(1):r===Y.Y5.PROVINCE_TAB?P(2):r===Y.Y5.STORIES_TAB?(P(3),ek({country:p,pageNumber:0,pageSize:10,isItinerary:!1})):r===Y.Y5.ITINERARIES_TAB?(P(4),eS({country:p,pageNumber:0,pageSize:10})):P(0),r===Y.Y5.ACTIVITY?(ti(),tr(),e3(g),g===R?.slug&&g===A?.slug||eP?S(!0):en(g),a=!0,eP&&b.length&&(g===R?.slug||eO)||h({country:p,activity:d,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})):($.query.keyword||$.query.labels)&&e4.current!==$.query.labels?(a=!0,h({country:p,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null}),ee(0),ei(!1)):(ee(0),ei(!1),tt(),tr(),ti()),y.length&&w.length&&k.length&&C.length&&z.length&&L.length&&p===v?y.length&&$.query.keyword&&e4.current!==$.query.keyword?m({country:p,keywords:$.query.keyword}):b.length?y.length&&y.length!==l.activities_count&&(m({country:p}),a||h({country:p,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})):m({country:p}):(tn(p,!0),a||h({country:p,city:$.query.city,province:$.query.province,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null}),eF(!1)),eN(!0),e4.current=$.query},[i]),(0,l.useEffect)(()=>{w?.length&&k?.length&&te()},[b,w,k]),(0,l.useEffect)(()=>(document.addEventListener("click",e8),()=>{document.removeEventListener("click",e8)}),[e5,e6]);let e8=t=>{e9.current&&e7.current&&!ex&&"true"!==sessionStorage.getItem("feedback_modal_shown")&&!t.target.classList.contains("paymentButton")&&"cookie-banner-button"!==t.target.id&&eb(!0)},te=()=>{let{activity:t,province:i,city:r,neighbourhood:n}=(0,s.parse)($.query),l="activities"===g&&g?g:t,a="provinces"===g&&g?g:i,o="cities"===g&&g?g:r,c="neighbourhoods"===g&&g?g:n;if(l&&R)(0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},R);else if(o){let t=w.find(t=>t.slug===o);t&&(0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},t)}else if(a){let t=k.find(t=>t.slug===a);t&&(0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},t)}else c&&V&&(0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},V)},tt=async()=>{R&&(await U(null),await S(!1),await eo(null))},ti=()=>{Q(),eg()},tr=()=>{J()},tn=async(t,i)=>{t!==T&&U(null),S(!1),await _(p),m({country:p}),eA(p),ez(p),x(p),f(p),C?.length||j(),I(),L?.length||M(),i||(ee(0),ei(!1))},tl=t=>{Z.cp.emit({GA:!0},t?"sidebar-click_to_open_sidebar-click_to_open_sidebar":"sidebar-click_to_close_sidebar-click_to_close_sidebar",t?"Click to open sidebar":"Click to close sidebar")},ta=()=>{tl(!B),F(!B),1===D&&ee(!ee)},to=async t=>{B||await F(1),setTimeout(()=>{eq.length||(eH(!0),eV(E&&!O?i_:O&&!E?iC:!N?.onboarded||E&&O?ij:[]))},t||2e3)},tc=async()=>{eH(!1),eV([]),E&&!O&&await ey(!1),O&&!E&&await eh(!1),!N||N.onboarded||O||E||eY||(eX(!0),await (0,iy.lK)())},tu=()=>eD(!1),td=async(t,i)=>{let{activeIndex:r}=i;if(0===r){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Activities"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",section:"tab_menu",cta_text:"Activities",link_url:`/explore/activities/${T}`});let t=new URLSearchParams({});$.query.labels&&t.set("labels",$.query.labels),$.query.keyword&&t.set("keyword",$.query.keyword),$.push({pathname:`/explore/activities/${T}`,query:t.toString()})}else if(1===r){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Cities"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",section:"tab_menu",cta_text:"Cities",link_url:`/explore/cities/${T}`});let t=new URLSearchParams({});$.query.labels&&t.set("labels",$.query.labels),$.query.keyword&&t.set("keyword",$.query.keyword),$.push({pathname:`/explore/cities/${T}`,query:t.toString()})}else if(2===r){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Regions"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",section:"tab_menu",cta_text:"Provinces",link_url:`/explore/provinces/${T}`});let t=new URLSearchParams({});$.push({pathname:`/explore/provinces/${T}`,query:t.toString()})}else if(3===r){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"stories"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",section:"tab_menu",cta_text:"Stories",link_url:`/explore/stories/${T}`});let t=new URLSearchParams({});$.push({pathname:`/explore/stories/${T}`,query:t.toString()})}else if(4===r){Z.cp.emit({GA:!0},"sidebar-click_guide_menu",{menuText:"Itineraries"}),Z.cp.emit({GA:!0},"GA4_click_cta",{type:"button",section:"tab_menu",cta_text:"Itineraries",link_url:`/explore/itineraries/${T}`});let t=new URLSearchParams({});$.push({pathname:`/explore/itineraries/${T}`,query:t.toString()})}0===r&&1===D&&0===q&&(ee(0),ei(!1)),Z.Nd.dispatch("onTabClick",{index:r})},tp=(0,l.useMemo)(()=>(0,n.jsx)(o.Z,{id:"explore-drawer-tab-mobile",menu:{secondary:!0,pointing:!0},panes:[{menuItem:"Activities",render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1})},{menuItem:"Cities",render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1})},{menuItem:"Regions",render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1})},{menuItem:"Stories",render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1})},{menuItem:"Itineraries",render:()=>(0,n.jsx)(o.Z.Pane,{attached:!1})}],activeIndex:q,onTabChange:td,currentsearchref:e2}),[q,T]),tg=async t=>{let{ACTIVITY:i,KEYWORD:r,CITY:n,LABEL:l,COUNTRY:a,PROVINCE:o,ARTICLE:c,ITINERARY:u,ATLAS:d}=Y.SearchItemTypes;if(!t){W([]),U(null),H(null),X();return}let{type:g,slug:m,id:v}=t;if(g===d){$.push({pathname:"/atlas/chat"});return}if(g===r){let t=new URLSearchParams({}),{query:i}=s.parseUrl(window.location.search);if(i.keyword&&i.keyword.split(",").includes(m))return;i=i.keyword?[i.keyword,m]:[m],t.set("keyword",i),Z.cp.emit({GA:!0},"GA4_map_filter",{keyword_slug:m,function:"applied"}),$.push({pathname:`/explore/activities/${T}`,query:t.toString()}),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_keyword",{keywordSlug:m}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"keyword",search_item_slug:m,link_url:`/explore/activities/${T}`});let r=document.getElementById("nearbyBannerContainer");r&&(r.scrollTop=0)}else if(g===l)(t=>{let i=new URLSearchParams(window.location.search),{query:r}=s.parseUrl(window.location.search);if($.query?.labels?.length||i.set("labels",t),$.query.labels=r.labels?[$.query.labels,t]:[t],r.labels){if(r.labels>1&&$.query.labels.split(",").includes(t))return;i.set("labels",r.labels)}if(!r.labels){let i=r.labels.split(",");i.includes(t)&&(r.labels=r.labels?i.filter(i=>i!==t):[])}$.push({pathname:`/explore/activities/${T}`,query:i.toString()})})(m),K(m),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_label",{labelSlug:m}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"labels",search_item_slug:m});else if(g===i){await X(),es&&er(null);let i=y.find(t=>{let{id:i}=t;return v===i}
15),r=new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}`),n=new URLSearchParams(r.search);$.push({pathname:r.pathname,query:n.toString()}),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_activity",{activitySlug:t.slug}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"activity",search_item_slug:m,link_url:r.pathname}),eI&&i&&h({country:p,activity:t.slug,pageNumber:0,pageSize:10,trips:N?.trips&&e$?.length?e$.toString():null})}else if(g===n&&"PERSONALISE"!==t.custom_type){if(t.mapboxAPI){await ea(null),await er(t),2===D&&(await ee(0),ei(!1)),2!==D&&await F(!0),P(0);return}es&&await er(null),await H(m),await ea(m);let i=w.find(i=>i.slug===t.slug);if(t.detail_url)$.push({pathname:t?.detail_url});else if(t.map_url){i&&((0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},i),h({country:p,city:t.slug,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})),tr(),P(0);let r=new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}
15`),n=new URLSearchParams(r.search);$.push({pathname:r.pathname,query:n.toString()})}F(!0);let r=document.getElementById("nearbyBannerContainer");r&&(r.scrollTop=0),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_city",{citySlug:t.slug}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"city",search_item_slug:m,link_url:t.detail_url?t.detail_url:t?.map_url?new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}`):"https://www.livetheworld.com//onboarding"})}else if(g===o){await ea(t.slug),await em(t.slug);let i=k.find(i=>i.slug===t.slug);if(t.detail_url)$.push({pathname:t?.detail_url});else if(t.map_url){i&&((0,ev.x0)(ec,k,{setCitiesByDistance:eu,setProvincesByDistance:ed},i),h({country:p,province:t.slug,pageNumber:0,pageSize:10,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})),ti(),P(0);let r=new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}`),n=new URLSearchParams(r.search);$.push({pathname:r.pathname,query:n.toString()})}F(!0);let r=document.getElementById("nearbyBannerContainer");r&&(r.scrollTop=0),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_province",{provinceSlug:t.slug}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"province",search_item_slug:m,link_url:t.detail_url?t.detail_url:t?.map_url?new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}`):"https://www.livetheworld.com//onboarding"})}else if(g===a){ti(),tr();let i=new URL(`https://www.livetheworld.com/${t.map_url?.substring(t.map_url.indexOf("/")+1)}`),r=new URLSearchParams(i.search);$.push({pathname:i.pathname,query:r.toString()}),F(!0),P(0),Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_country",{countryName:m}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"country",search_item_slug:m,link_url:i.pathname})}else g===c?(Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_article",{articleUrl:t.url}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"story",search_item_slug:m,link_url:t?.url}),t?.url&&(window.location.href=t.url)):g===u&&t?.detail_url?(Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_itinerary",{itinerarySlug:m}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"itinerary",search_item_slug:m,link_url:t?.detail_url}),$.push({pathname:t.detail_url})):g===u&&t?.url&&(Z.cp.emit({GA:!0,SIB:!0},"search_bar-search_article",{articleUrl:t.url}),Z.cp.emit({GA:!0},"GA4_search_result",{search_item_type:"itinerary",search_item_slug:m,link_url:t.url}),window.location.href=t.url)},tm=async t=>{if(!C?.filter(i=>i.name===t).length>0||C?.filter(i=>i.name===t)[0].slug===T)return;eT(null);let i=new URLSearchParams({}),r=C?.filter(i=>i.name===t)[0].slug;$.push({pathname:`/explore/activities/${r}`,query:i.toString()})},th=async t=>{let{activity:i}=t;i?.slug===e5?.current?.slug&&await U(i.slug),eI&&await h({country:p,pageNumber:0,pageSize:10,activity:i.slug,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(io,{router:$,currentActivityDetail:e_===A?.slug?A:null,currentActivity:R&&et?R:null,currentQueryCity:eQ&&eI?eQ:null,currentQueryProvince:e0&&eI?e0:null,currentCountry:T,currentNeighbourhood:V,enabledCountries:C,activeNavTab:q,isLessThanLaptop:eI,isMapView:et,guideState:r,entity_type:d,country_slug:p,entity_slug:g}),(G||ep)&&(0,n.jsx)("div",{style:{width:"100%",height:"100%",backgroundColor:"white",opacity:"0.5",zIndex:"997",position:"absolute"},children:(0,n.jsx)(el.$j,{})}),(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("div",{id:"search-wrapper-mobile",children:[(0,n.jsx)(ir.Z,{mapPage:!0,isLessThanLaptop:eI,onSearchSelect:tg,onCountryClick:tm,openClickMobileSearchFilter:()=>{eD(!eG)},toggleBanners:()=>{B?F(!B):ta()},router:$,searchEntities:["ACTIVITY","CITY","MAPBOX_CITY","PROVINCE","COUNTRY","LABEL","KEYWORD","ARTICLE","ITINERARY"],showEnabledCountries:!1,searchInCountry:!1}),tp]}),(0,n.jsxs)("main",{className:"main",children:[eP&&(0,n.jsx)(it,{router:$,onCountryClick:tm,onActivityClick:th,currentActivityDetailRef:e5,isLessThanLaptop:eI,fetchActivities:t=>{h({country:p,pageNumber:0,pageSize:10,activity:t,...(0,ev.Kz)(),trips:N?.trips&&e$?.length?e$.toString():null})},entity_type:d,country_slug:p,entity_slug:g,guideState:r}),!eP&&(0,n.jsx)(ts,{router:$,onCountryClick:tm,onActivityClick:th,currentActivityDetailRef:e5,isLessThanLaptop:eI,entity_type:d,country_slug:p,entity_slug:g,guideState:r})]})]}),!G&&N&&B&&(E||O||!N.onboarded)&&(0,n.jsx)(u.Rg,{enabled:eU,steps:eq,initialStep:eK,onExit:tc,options:{hideNext:!1,disableInteraction:!0,showBullets:!1,tooltipPosition:eI?"bottom":"right"}}),(()=>{if(eG)return(0,n.jsx)(il.Z,{onClose:tu,children:(0,n.jsx)(ii.Z,{onClickApply:tu,router:$})})})(),ex&&"true"!==sessionStorage.getItem("feedback_modal_shown")&&(0,n.jsx)(id,{onClose:()=>{sessionStorage.setItem("feedback_modal_shown","true"),eb(!1),ew(!1)},router:$,openSessionFeedbackModal:ex})]})})},44256:function(t,i,r){"use strict";r.d(i,{e:function(){return a}});var n=r(10014),l=r(36512);let a=()=>
15({type:n.yE,payload:l.bl.getRequest("/api/frontend/labels",{}).then(t=>({...t}))})},36802:function(t,i,r){"use strict";r.d(i,{Y2:function(){return a},_x:function(){return o}});var n=r(36512);r(73359);var l=r(78045);let a=t=>({type:l.PC,payload:n.bl.getRequest(`/api/frontend/neighbourhoods/slug/${t}`,{},!0).then(t=>({...t}))}),o=()=>t=>{t({type:l.UV})}},25816:function(t,i,r){"use strict";r.d(i,{K:function(){return n}}),r(6158),r(86939);let n=()=>{}},58785:function(t){t.exports={"introjs-button":"style_introjs-button__VW0LJ","introjs-nextbutton":"style_introjs-nextbutton__oByT3","introjs-fullbutton":"style_introjs-fullbutton__Ffm2Y"}},87231:function(t){t.exports={relative:"ExploreDrawer_relative___JguD","banner-title":"ExploreDrawer_banner-title__KSq2y",SearchSectionWrapper:"ExploreDrawer_SearchSectionWrapper__ZaZ6W","activities-header":"ExploreDrawer_activities-header__ATqWN","close-image":"ExploreDrawer_close-image__vvrPJ","content-desktop":"ExploreDrawer_content-desktop__s3SGg","content-mobile":"ExploreDrawer_content-mobile__ROxO0",opened:"ExploreDrawer_opened__bgBH0",LazyLoad:"ExploreDrawer_LazyLoad__HwvOg","is-visible":"ExploreDrawer_is-visible__6mpli","explore-list-modal-wrapper":"ExploreDrawer_explore-list-modal-wrapper__1zBAE"}},97316:function(t){t.exports={"desktop-activity-left-side":"ExploreList_desktop-activity-left-side__i8MMl","mobile-activity-left-side":"ExploreList_mobile-activity-left-side__Yk2fk","desktop-activity-right-side":"ExploreList_desktop-activity-right-side__03Q8w","mobile-activity-right-side":"ExploreList_mobile-activity-right-side__jUzVQ","explore-list-modal-wrapper":"ExploreList_explore-list-modal-wrapper__fIkJq"}},42939:function(t){t.exports={"explore-drawer-tab":"style_explore-drawer-tab__XobMb",ui:"style_ui__9Yuej",pointing:"style_pointing__IS6YI",secondary:"style_secondary__aSEp2",menu:"style_menu__3vGaG",item:"style_item__3EJi9","tab-title":"style_tab-title__gNu1S",active:"style_active__Yn1pC",segment:"style_segment__b7VdB",tab:"style_tab__IKxh4","explore-drawer-tab-mobile":"style_explore-drawer-tab-mobile__hWwD7","infinite-scroll-component":"style_infinite-scroll-component__w3ooD","switch-view-type-label":"style_switch-view-type-label__94cl2",toggle:"style_toggle__7J__8","switch-view-type-input":"style_switch-view-type-input__ClkO3"}}}]);

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.