PageSourceSearch

https://prime.travel/_next/static/chunks/pages/events/byDirection/[slug]-e5954d28e67c7af8.js

js prime.travel collected 2026-10-07 01:00:53 UTC 4,863 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7147],{90704:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/byDirection/[slug]",function(){return n(23521)}])},23521:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return w},default:function(){return Y}});var i=n(85893),s=n(74229),r=n(38939),o=n(12307),a=n(47568),u=n(26042),l=n(69396),c=n(29815),d=n(34051),f=n.n(d),v=n(67294),E=n(11163),_=n(86896),T=n(31955),S=n(11752),g=n(49093),h=n(62811),N=n(48675),p=n(5859),x=n(22889),O=n(29593),j=n(91588),m=n(95441),C=n(80984),y=n(2566),M=n(42783),R=n(72251),A=n.n(R),I=n(79399),V=n(86955),Z=(0,S.default)().publicRuntimeConfig,b=function(e){var t,n=e.eventsSelections,s=e.events,r=e.filters,o=e.directionTitle,d=e.initialTags,S=(0,E.useRouter)(),R=(0,v.useContext)(O.H),b=R.filters,w=R.setEntitiesData,Y=(0,v.useContext)(C.Z).user,F=Y.profile,k=Y.coords,L=Y.favouritesByEntity,P=(0,x.U)({listType:g.GM.EVENTS,initialState:s,filters:(0,c.Z)(r||[]).concat((0,c.Z)(b||[])),coordinates:(null===k||void 0===k?void 0:k.latitude)&&k.longitude?{lat:k.latitude,lng:k.longitude}:void 0,language:S.locale}),U=P.entities,q=P.isLoading,B=P.loadNextPage,D=function(){var e=(0,a.Z)(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return sessionStorage.setItem("prevPath",S.pathname),e.next=3,S.push({pathname:"/directions",query:{standalonePage:"eventsSearch"}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=(0,a.Z)(f().mark((function e(){var t,n,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/",n=T.Z.get("directionType"),i=T.Z.get("directionSearch")||T.Z.get("directionId"),"CITY"===n&&i&&(t+=i),e.next=6,S.push(t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=(0,v.useState)(I._j.COMMON),X=H[0],z=H[1],Q=S.query.searchModal===M.vF,$=X===I._j.COMMON,J=X===I._j.SELECTIONS,K=X===I._j.FAVOURITE,W=(0,v.useState)(null),ee=W[0],te=W[1],ne=(0,v.useState)(null),ie=ne[0],se=ne[1];(0,v.useEffect)((function(){te(o)}),[]),(0,v.useEffect)((function(){if(!Z.IS_ABMASS_OR_ABAFFLUENT_BRANDING){var e=new AbortController;return(null===F||void 0===F?void 0:F.token)&&V.V.Events.favourites(F.token,S.locale,r).then((function(t){e.signal.aborted||se(t)})),function(){return e.abort()}}}),[null===F||void 0===F?void 0:F.token,S.locale,null===L||void 0===L||null===(t=L.events)||void 0===t?void 0:t.data.length,r,se]),(0,v.useEffect)((function(){if(S.isReady){o?T.Z.set("directionSearchName",o):S.query.directionName&&T.Z.set("directionSearchName",S.query.directionName.toString());var e=(0,j.v)(S.query);w((function(t){return(0,l.Z)((0,u.Z)({},t),{entityType:g.GM.EVENTS,filters:e})}))}}),[S]);var re=(0,_.Z)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.s8,{type:I.Rl.EVENTS,handelOnClose:G}),ee&&(0,i.jsx)(y.Mj,{directionName:ee,handleOnDirectionClick:D}),(0,i.jsx)(y.mQ,{type:I.Rl.EVENTS,selections:n,entities:U,favourites:ie,isCommonView:$,isSelectionsView:J,isFavouritesView:K,setActiveTab:z}),s&&(0,i.jsx)(y.x$,{listType:g.GM.EVENTS,visibility:$,isLoading:q,requestFilters:r,initialTags:d}),(0,i.jsxs)(N.E,{withCovid:!1,className:A().eventListContainer,loading:X!==I._j.SELECTIONS&&q,noPadding:!0,onNextPage:$?B:null,children:[$&&U&&(0,i.jsx)(p.q,{events:U}),K&&!F&&(0,i.jsx)(y.sj,{icon:g.Yd.personBig,title:re.formatMessage({id:h.Y.AUTH_NO_AUTH}),text:re.formatMessage({id:h.Y.AUTH_FOR_FAVOURITES}),buttonLabel:re.formatMessage({id:h.Y.AUTH_GET}),onClick:function(){return S.push("/auth")}}),K&&F&&!(null===ie||void 0===ie?void 0:ie.data.length)&&(0,i.jsx)(y.sj,{icon:g.Yd.favouritesBig,title:re.formatMessage({id:h.Y.FAVOURITES_NO_ITEMS}),text:re.formatMessage({id:h.Y.FAVOURITES_EXPLORE_FOR_ADD}),buttonLabel:re.formatMessage({id:h.Y.EXPLORE}),onClick:function(){return z(I._j.COMMON)}}),K&&F&&ie&&Number(ie.data.length)>0&&(0,i.jsx)(p.q,{events:(0,l.Z)((0,u.Z)({},ie),{included:ie.included})}),J&&n&&(0,i.jsx)(m.n,{selections:n})]},X),Q&&(0,i.jsx)(y.ol,{filters:r,listType:I.Rl.EVENTS,onClose:S.back})]})},w=!0,Y=function(e){var t=e.events,n=e.eventsSelections,a=e.filters,u=e.directionTitle,l=e.initialTags,c=(0,o.p)(),d={city:null!==u&&void 0!==u?u:""};return(0,i.jsxs)(s.z,{hasMenuPanel:!1,hasFooter:!1,header:null,children:[u&&(0,i.jsx)(r.u,{metaTitle:c(o.Y.SEO_EVENTS_BY_CITY_TITLE,d),metaDescription:c(o.Y.SEO_EVENTS_BY_CITY_DESCRIPTION,d)}),(0,i.jsx)(y.fA,{children:(0,i.jsx)(b,{events:t,eventsSelections:n,filters:a,directionTitle:u,initialTags:l})})]})}},10175:function(e,t){"use strict";t.Z=function(e){return void 0===e}},72251:function(e){e.exports={eventListContainer:"eventsSearch_eventListContainer__FlHyR"}}},function(e){e.O(0,[1255,800,5690,4229,9774,2888,179],(function(){return t=90704,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.