1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2004],{2824:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/destination/[slug]/tags",function(){return a(22043)}])},22043:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return f}});var i=a(85893),s=a(67294),n=a(11163),l=a(76566),r=a.n(l),u=a(80129),o=a.n(u),d=a(46506),c=a(42265),v=a(2549),g=a.n(v);let p={tags:void 0,type:void 0};var f=!0;t.default=e=>{var t,a;let l;let{data:u,preview:v}=e,{site:f,page:_}=u,h=(0,n.useRouter)(),y={tags:null===(t=h.query)||void 0===t?void 0:t.tags,type:null===(a=h.query)||void 0===a?void 0:a.type},[w,m]=s.useState(y),[N,j]=s.useState(y),x=Object.values(w).filter(e=>!!e).flatMap(e=>e).length;s.useEffect(()=>{var e;let t=o().stringify({type:w.type},{skipNulls:!0,addQueryPrefix:!1}),a=h.route.replace("[slug]",null==h?void 0:null===(e=h.query)||void 0===e?void 0:e.slug),i=((null==w?void 0:w.tags)?w.tags:[]).join("/");h.push({pathname:a+"/"+i,query:t},void 0,{shallow:!1})},[w]);let k=_.activeDestination,C=f.tags.filter(e=>"destination"!==e._type).filter((l=new Set,e=>!l.has(e.target)&&l.add(e.target))),D=C.filter(e=>{var t,a;return null==h?void 0:null===(a=h.query)||void 0===a?void 0:null===(t=a.tags)||void 0===t?void 0:t.includes(e.target)}),E=[..._.features,..._.guides,..._.spots].filter(e=>!w.type||e._type===w.type).sort((e,t)=>new Date(e._createdAt)>new Date(t._createdAt)?-1:0);return(0,i.jsx)(d.A,{site:f,page:_,preview:v,titleOverride:"".concat(k.title),children:(0,i.jsxs)("section",{className:g().section,children:[(0,i.jsx)("h1",{className:"sr-only",children:"".concat(k.title)}),(0,i.jsx)(c.m.FilterDrawer,{tags:C,activeTags:D,activeDestination:k,params:N,handleClick:(e,t)=>{"tag"===e&&j({...N,tags:r()([...N.tags||[]],[t])}),"type"===e&&(N[e]===t?j({...N,[e]:void 0}):j({...N,[e]:t||void 0}))},handleSetParams:()=>{m(N)},handleClearParams:()=>{j(p)}}),(0,i.jsx)(c.m.Header,{activeTags:D,activeDestination:k,filterCount:x,resultCount:E.length}),(0,i.jsx)(c.m.Results,{results:E})]})})}}},function(e){e.O(0,[9185,7361,5903,6566,8961,4586,2265,2888,9774,179],function(){return e(e.s=2824)}),_N_E=e.O()}]);
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.