PageSourceSearch

https://niuepocketguide.com/_next/static/chunks/app/(frontend)/layout-ac6a66a1d06c96c5.js

js niuepocketguide.com collected 2026-09-25 10:11:24 UTC 31,607 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9559],{21013:()=>{},25506:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,21097,23)),Promise.resolve().then(r.t.bind(r,3702,23)),Promise.resolve().then(r.t.bind(r,21013,23)),Promise.resolve().then(r.bind(r,95069)),Promise.resolve().then(r.bind(r,90539)),Promise.resolve().then(r.bind(r,33442)),Promise.resolve().then(r.bind(r,58112)),Promise.resolve().then(r.bind(r,43100)),Promise.resolve().then(r.bind(r,95625)),Promise.resolve().then(r.bind(r,51319)),Promise.resolve().then(r.bind(r,89193)),Promise.resolve().then(r.bind(r,44651)),Promise.resolve().then(r.bind(r,72499))},33442:(e,t,r)=>{"use strict";r.d(t,{UnderConstructionBanner:()=>n});var s=r(69245),a=r(58569),l=r(75396);function n(e){let{isUnderConstruction:t,countryName:r}=e,[n,i]=(0,a.useState)(!1);if(!t||n)return null;let o=r||"this destination";return(0,s.jsx)("div",{className:"fixed top-0 left-0 right-0 z-50 bg-amber-500 text-amber-950 px-4 py-3 shadow-lg",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-lg",children:"\uD83D\uDEA7"}),(0,s.jsxs)("p",{className:"text-sm font-medium",children:["Our content wizards are still on the ground in ",o," (and behind a computer with far too much coffee) to bring you the largest travel guide to ",o,". Some articles aren't final yet, but feel free to wander around and enjoy a sneak peek of what's to come."]})]}),(0,s.jsx)("button",{onClick:()=>i(!0),className:"shrink-0 p-1 rounded hover:bg-amber-600/20 transition-colors","aria-label":"Dismiss banner",children:(0,s.jsx)(l.A,{className:"w-5 h-5"})})]})})}},40405:(e,t,r)=>{"use strict";r.d(t,{yw:()=>l});var s=r(71515),a=r(96351);let l=()=>{if(s.A){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return"".concat(e,"//").concat(t).concat(r?":".concat(r):"")}return a.env.VERCEL_PROJECT_PRODUCTION_URL?"https://".concat(a.env.VERCEL_PROJECT_PRODUCTION_URL):"https://pocketguidedata.com"}},43100:(e,t,r)=>{"use strict";r.d(t,{FooterClient:()=>h});var s=r(69245);r(58569);var a=r(79660),l=r.n(a),n=r(65755),i=r(61764),o=r(66680),c=r(23928),d=r(57289);let h=e=>{let{navigation:t,tenant:r,logo:a,logoWhite:h}=e,u=[];if((null==t?void 0:t.navigations)&&t.navigations.length>0){let e=t.navigations[0];(null==e?void 0:e.navItems)&&(u=e.navItems.map(e=>{let t=[];if("none"!==e.linkType){let r=(0,n.y)(e.linkType,{category:e.category,page:e.page,customUrl:e.customUrl});r&&"#"!==r&&t.push({label:e.label,href:r,newTab:e.newTab})}let r=(e.subItems||[]).map(e=>{let t=(0,n.y)(e.linkType,{category:e.category,destination:e.destination,page:e.page,customUrl:e.customUrl});return{label:e.label,href:t||"#",newTab:e.newTab}}).filter(e=>"#"!==e.href);return t.push(...r),{title:e.label,links:t}}).filter(e=>e.links.length>0))}let m=null==t?void 0:t.socialLinks;return(0,s.jsx)("footer",{className:"bg-blue-600 text-white mt-auto",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 py-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-8 md:grid-cols-2 gap-8",children:[(0,s.jsxs)("div",{className:"md:col-span-2",children:[(0,s.jsx)(l(),{href:"/",className:"block mb-4",children:(null==h?void 0:h.url)&&null!==h.url?(0,s.jsx)("img",{src:h.url,alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:h.width||193,height:h.height||34,loading:"lazy",className:"lg:w-full h-auto w-60 max-w-72"}):(0,s.jsx)("span",{className:"text-xl font-bold text-white",children:"Pocket Guide"})}),function(e){if(!e)return!1;if(7===e.id||"7"===String(e.id))return!0;let t=e.name.toLowerCase();return t.includes("wallis")&&t.includes("futuna")}(r)&&(0,s.jsxs)("div",{className:"mt-8 pt-6 max-w-md border-t border-white/25",children:[(0,s.jsx)("p",{className:"text-xs sm:text-sm text-white/90 font-medium mb-3",children:"A project in partnership with"}),(0,s.jsx)("img",{src:"/images/partners/wallis-futuna-administration-superieure.png",alt:"Logo of the Administration Sup\xe9rieure des \xceles Wallis et Futuna",width:190,height:36,loading:"lazy",className:"max-w-[210px] w-full h-auto"})]})]}),(0,s.jsx)("div",{className:"md:col-span-4",children:u.length>0?(0,s.jsx)("div",{className:"columns-1 md:columns-2 lg:columns-3 gap-6 space-y-6",children:u.slice(0,6).map((e,t)=>(0,s.jsxs)("div",{className:"break-inside-avoid mb-6",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-white",children:e.title}),(0,s.jsx)("ul",{className:"space-y-2 ml-2",children:e.links.slice(0,8).map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"text-white hover:text-white transition-colors text-sm",...e.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label})},t))})]},t))}):(0,s.jsx)("div",{className:"text-white text-sm",children:"No navigation configured"})}),(0,s.jsxs)("div",{className:"md:col-span-2",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-white",children:"Connect With Us"}),m&&(0,s.jsxs)("div",{className:"flex space-x-3 mb-4",children:[m.facebook&&(0,s.jsx)("a",{href:m.facebook,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white transition-colors","aria-label":"Facebook",children:(0,s.jsx)(i.A,{className:"w-5 h-5"})}),m.instagram&&(0,s.jsx)("a",{href:m.instagram,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white transition-colors","aria-label":"Instagram",children:(0,s.jsx)(o.A,{className:"w-5 h-5"})}),m.tiktok&&(0,s.jsx)("a",{href:m.tiktok,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white transition-colors","aria-label":"TikTok",children:(0,s.jsx)(c.A,{className:"w-5 h-5"})}),m.youtube&&(0,s.jsx)("a",{href:m.youtube,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white transition-colors","aria-label":"YouTube",children:(0,s.jsx)(d.A,{className:"w-5 h-5"})})]}),(0,s.jsxs)("div",{className:"text-sm text-white mb-4",children:["To contact us directly, use our"," ",(0,s.jsx)(l(),{href:"/contact",className:"text-white hover:underline",children:"contact page"}),"."]}),(0,s.jsxs)("div",{className:"text-sm text-white",children:["".concat((null==r?void 0:r.countryGreeting)?"".concat(r.countryGreeting,"/Welcome! "):"","By using this website you agree to our "),(0,s.jsx)(l(),{href:"/privacy-policy",className:"text-white hover:underline",children:"Privacy Policy"})," ","and terms of use within it which includes sponsored posts and affiliate links."]})]})]}),(0,s.jsx)("div",{className:"border-t border-blue-500 mt-8 pt-6 flex flex-col md:flex-row justify-between items-center text-sm text-white text-center",children:(0,s.jsxs)("div",{className:"w-full text-center",children:["\xa9 ",new Date().getFullYear()," ",(null==r?void 0:r.name)||"South Pacific"," Pocket Guide."," ",(0,s.jsx)(l(),{href:"/contact",className:"text-white underline underline-offset-2",children:"Contact"})," ","–"," ",(0,s.jsx)(l(),{href:"/privacy-policy",className:"text-white underline underline-offset-2",children:"Disclaimer"})," ","–"," ",(0,s.jsx)(l(),{href:"/about-us",className:"text-white underline underline-offset-2",children:"About Us"})," ","–"," ",(0,s.jsx)(l(),{href:"/our-standards",className:"text-white underline underline-offset-2",children:"Our Standards"})]})})]})})}},44651:(e,t,r)=>{"use strict";r.d(t,{PostHogPageView:()=>n});var s=r(24097),a=r(16531),l=r(58569);
1function n(){let e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),r=(0,a.sf)();return(0,l.useEffect)(()=>{if(e&&r&&r.capture)try{let s=window.origin+e;t&&t.toString()&&(s+="?".concat(t.toString())),r.capture("$pageview",{$current_url:s})}catch(e){}},[e,t,r]),null}},51319:(e,t,r)=>{"use strict";r.d(t,{HeaderThemeProvider:()=>i,Y:()=>o});var s=r(69245),a=r(58569),l=r(71515);let n=(0,a.createContext)({headerTheme:void 0,setHeaderTheme:()=>null,enableTransparentHero:!1,setEnableTransparentHero:()=>null,isInHero:!1,setIsInHero:()=>null}),i=e=>{let{children:t}=e,[r,i]=(0,a.useState)(l.A?document.documentElement.getAttribute("data-theme"):void 0),[o,c]=(0,a.useState)(!1),[d,h]=(0,a.useState)(!1),u=(0,a.useCallback)(e=>{i(e)},[]);return(0,s.jsx)(n,{value:{headerTheme:r,setHeaderTheme:u,enableTransparentHero:o,setEnableTransparentHero:c,isInHero:d,setIsInHero:h},children:t})},o=()=>(0,a.use)(n)},58112:(e,t,r)=>{"use strict";r.d(t,{WeglotScript:()=>i});var s=r(69245),a=r(68084),l=r(58569);function n(e){let{visible:t}=e;return(0,s.jsx)("div",{className:"fixed top-0 left-0 right-0 z-[60] transition-transform duration-500 ease-in-out ".concat(t?"translate-y-0":"-translate-y-full"),children:(0,s.jsx)("div",{className:"bg-blue-600 text-white px-4 py-2.5 shadow-lg",children:(0,s.jsx)("p",{className:"text-sm text-center font-medium max-w-4xl mx-auto",children:"This article was translated by AI and reviewed by a French writer on our team."})})})}function i(e){let{apiKey:t}=e,[r,i]=(0,l.useState)(!1),o=(0,l.useCallback)(e=>{"en"!==e&&(i(!0),setTimeout(()=>i(!1),3e3))},[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n,{visible:r}),(0,s.jsx)(a.default,{src:"https://cdn.weglot.com/weglot.min.js",strategy:"afterInteractive",onLoad:()=>{let e=window;e.Weglot&&(e.Weglot.initialize({api_key:t,cache:!0,switchers:[{style:{full_name:!1,with_name:!0,is_dropdown:!0,with_flags:!0,flag_type:"circle"},location:{target:"#weglot-switcher-nav",sibling:null}},{style:{full_name:!0,with_name:!0,is_dropdown:!1,with_flags:!0,flag_type:"circle"},location:{target:"#weglot-switcher-mobile",sibling:null}}]}),e.Weglot.on("languageChanged",o))}})]})}},65755:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var s=r(91993);function a(e,t){switch(e){case"category":{if(!t.category)return;let e="object"==typeof t.category?t.category:null;if(!(null==e?void 0:e.slug))return;let r=(0,s.SE)(e);return"/category/".concat(r.join("/"))}case"island":case"destination":{if(!t.destination)return;let e="object"==typeof t.destination?t.destination:null;if(!(null==e?void 0:e.slug))return;return"/destinations/".concat(e.slug)}case"page":{if(!t.page)return;let e="object"==typeof t.page?t.page:null;if(!(null==e?void 0:e.slug))return;return"/".concat(e.slug)}case"custom":return t.customUrl||void 0;default:return}}},65997:()=>{},71515:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=!!window.document&&!!window.document.createElement},72499:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>i});var s=r(69245),a=r(58569),l=r(71515);let n=(0,a.createContext)({setTheme:()=>null,theme:void 0}),i=e=>{let{children:t}=e,[r]=(0,a.useState)("light"),i=(0,a.useCallback)(()=>{},[]);return(0,a.useEffect)(()=>{try{"undefined"!=typeof document&&document.documentElement&&document.documentElement.setAttribute("data-theme","light"),l.A&&window.localStorage&&window.localStorage.setItem("payload-theme","light")}catch(e){}},[]),(0,s.jsx)(n,{value:{setTheme:i,theme:r},children:t})}},81490:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var s=r(71594),a=r(57331);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},89193:(e,t,r)=>{"use strict";r.d(t,{PHProvider:()=>i});var s=r(69245),a=r(89429),l=r(16531),n=r(58569);function i(e){let{children:t}=e;return(0,n.useEffect)(()=>{if(!(()=>{let e=window.navigator.userAgent.toLowerCase();return["googlebot","bingbot","yandexbot","duckduckbot","slurp","baiduspider","facebookexternalhit","twitterbot","linkedinbot","ahrefs","semrush","mj12bot","dotbot","screaming frog","lighthouse","chrome-lighthouse","pagespeed","gtmetrix","pingdom","headlesschrome","phantomjs","prerender"].some(t=>e.includes(t))})())try{a.Ay.init("phc_yOUI3VYgzVtW2VESWE8YCqZPHRtW2CNJ5cRmgYVbLsG",{api_host:"/ingest",ui_host:"https://us.i.posthog.com",person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!0})}catch(e){}},[]),(0,s.jsx)(l.so,{client:a.Ay,children:t})}},90539:(e,t,r)=>{"use strict";r.d(t,{PrivacyBanner:()=>c});var s=r(69245),a=r(58569),l=r(79660),n=r.n(l);let i=/bettershareimage|headlesschrome|og-?screenshot/i,o="privacy-policy-accepted";function c(e){let{greeting:t}=e,[r,l]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{var e;!((e=navigator.userAgent)&&i.test(e)||new URLSearchParams(window.location.search).has("ogScreenshot"))&&(localStorage.getItem(o)||l(!0))},[]),r)?(0,s.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-gray-900 text-white px-4 py-3 shadow-lg",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3",children:[(0,s.jsxs)("p",{className:"text-sm text-gray-200 text-center sm:text-left",children:[t||"Welcome","! By using this website you agree to our"," ",(0,s.jsx)(n(),{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-white font-medium",children:"Privacy Policy"})," ","and terms of use within it which includes sponsored posts and affiliate links."]}),(0,s.jsx)("button",{onClick:()=>{localStorage.setItem(o,"true"),l(!1)},className:"shrink-0 bg-white text-gray-900 px-4 py-2 rounded-md text-sm font-medium hover:bg-gray-100 transition-colors",children:"Accept & Close"})]})}):null}},91993:(e,t,r)=>{"use strict";function s(e){return e.parent&&"string"!=typeof e.parent&&"number"!=typeof e.parent?[...s(e.parent),e.slug||""]:[e.slug||""]}function a(e){let t=s(e);return"/category/".concat(t.join("/"))}r.d(t,{SE:()=>s,_6:()=>a})},95069:(e,t,r)=>{"use strict";r.d(t,{AdminBar:()=>h});var s=r(69245),a=r(81490),l=r(24097),n=r(59649),i=r(58569);r(65997);var o=r(40405);let c={pages:{plural:"Pages",singular:"Page"},posts:{plural:"Posts",singular:"Post"},projects:{plural:"Projects",singular:"Project"}},d=()=>(0,s.jsx)("span",{children:"Dashboard"}),h=e=>{var t,r;let{adminBarProps:h}=e||{},u=(0,l.useSelectedLayoutSegments)(),[m,x]=(0,i.useState)(!1),g=c[null==u?void 0:u[1]]?u[1]:"pages",f=(0,l.useRouter)(),p=i.useCallback(e=>{x(!!(null==e?void 0:e.id))},[]);return(0,s.jsx)("div",{className:(0,a.cn)("admin-bar","py-2 bg-black text-white",{block:m,hidden:!m}),children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)(n.J,{...h,className:"py-2 text-white",classNames:{controls:"font-medium text-white",logo:"text-white",user:"text-white"},cmsURL:(0,o.yw)(),collectionSlug:g,collectionLabels:{plural:(null==(t=c[g])?void 0:t.plural)||"Pages",singular:(null==(r=c[g])?void 0:r.singular)||"Page"},logo:(0,s.jsx)(d,{}),onAuthChange:p,onPreviewExit:()=>{fetch("/next/exit-preview").then(()=>{f.push("/"),f.refresh()})},style:{backgroundColor:"transparent",padding:0,position:"relative",zIndex:"unset"}})})})}},95625:(e,t,r)=>{"use strict";r.d(t,{HeaderClient:()=>k});var s=r(69245),a=r(51319),l=r(24097),n=r(58569),i=r(79660),o=r.n(i),c=r(47150),d=r(31704),h=r(61764),u=r(66680),m=r(23928),x=r(57289),g=r(75396),f=r(56104),p=r(72165),b=r(58811),w=r(65755);let v=e=>{let{label:t,href:r,items:a,showAll:l,newTab:i,isDarkMode:h=!1}
1=e,[u,m]=(0,n.useState)(!1),[x,g]=(0,n.useState)(null),[f,p]=(0,n.useState)(null),b=()=>{x&&clearTimeout(x),m(!0)},w=()=>{g(setTimeout(()=>{m(!1),p(null)},150))};(0,n.useEffect)(()=>()=>{x&&clearTimeout(x)},[x]);let v=h?"text-white":"text-gray-700",y=h?"hover:text-gray-200":"hover:text-gray-900",j=()=>(0,s.jsxs)(s.Fragment,{children:[t,a.length>0&&(0,s.jsx)(c.A,{className:"h-4 w-4 transition-transform ".concat(u?"rotate-180":"")})]});return(0,s.jsxs)("div",{className:"relative",onMouseEnter:b,onMouseLeave:w,children:[r?(0,s.jsx)(o(),{href:r,prefetch:!0,className:"flex items-center gap-1 px-3 py-2 text-sm font-medium ".concat(v," ").concat(y," transition-colors"),...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,s.jsx)(j,{})}):(0,s.jsx)("button",{className:"flex items-center gap-1 px-3 py-2 text-sm font-medium ".concat(v," ").concat(y," transition-colors"),"aria-expanded":u,children:(0,s.jsx)(j,{})}),u&&a.length>0&&(0,s.jsxs)("div",{className:"absolute top-full left-0 mt-1 w-80 bg-white rounded-lg shadow-lg border border-gray-200 py-2 z-50",children:[(0,s.jsx)("div",{className:"max-h-96 overflow-y-auto overflow-x-visible",children:a.map((e,t)=>{let r=e.items||[];return(0,s.jsx)("div",{className:"relative",onMouseEnter:e=>{if(0===r.length)return void p(null);let t=e.currentTarget.getBoundingClientRect();p({items:r,top:Math.max(8,t.top-12),left:t.right})},children:(0,s.jsxs)(o(),{href:e.href,prefetch:!0,className:"flex items-center px-4 py-2 hover:bg-blue-600 hover:text-white transition-colors mx-2 my-1 rounded-lg text-gray-700",...e.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"text-sm font-medium truncate",children:e.title}),e.description&&(0,s.jsx)("div",{className:"text-xs opacity-80 truncate",children:e.description})]}),r.length>0&&(0,s.jsx)(d.A,{className:"h-4 w-4 ml-2"})]})},t)})}),l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border-t border-gray-200 my-2"}),(0,s.jsxs)(o(),{href:l.href,className:"flex items-center px-4 py-2 text-sm font-medium text-blue-600 hover:text-blue-700 hover:bg-blue-50 transition-colors",children:[l.label,(0,s.jsx)(d.A,{className:"h-4 w-4 ml-auto"})]})]})]}),u&&f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed h-20 w-4 z-40",style:{top:f.top,left:f.left-4},onMouseEnter:b,onMouseLeave:w}),(0,s.jsx)("div",{className:"fixed w-72 bg-white rounded-lg shadow-lg border border-gray-200 py-2 z-50",style:{to
1p:f.top,left:f.left},onMouseEnter:b,onMouseLeave:w,children:f.items.map((e,t)=>(0,s.jsx)(o(),{href:e.href,prefetch:!0,className:"flex items-center px-4 py-2 hover:bg-blue-600 hover:text-white transition-colors mx-2 my-1 rounded-lg text-gray-700",...e.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"text-sm font-medium truncate",children:e.title}),e.description&&(0,s.jsx)("div",{className:"text-xs opacity-80 truncate",children:e.description})]})},t))})]})]})},y=e=>{let{item:t,onLinkClick:r}=e,[a,l]=(0,n.useState)(!1),[i,h]=(0,n.useState)({});return t.items&&0!==t.items.length?(0,s.jsxs)("div",{className:"border-b border-gray-200 last:border-b-0",children:[(0,s.jsxs)("div",{className:"flex",children:[t.href?(0,s.jsx)(o(),{href:t.href,prefetch:!0,onClick:r,className:"flex-1 px-4 py-3 text-left text-sm font-medium text-gray-900 hover:bg-gray-50",...t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.label}):(0,s.jsx)("div",{className:"flex-1 px-4 py-3 text-left text-sm font-medium text-gray-900",children:t.label}),(0,s.jsx)("button",{onClick:()=>l(!a),className:"px-4 py-3 text-gray-900 hover:bg-gray-50",children:(0,s.jsx)(c.A,{className:"h-4 w-4 transition-transform ".concat(a?"rotate-180":"")})})]}),a&&(0,s.jsxs)("div",{className:"bg-gray-50",children:[t.items.map((e,t)=>{let a=e.items||[];return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(o(),{href:e.href,onClick:r,className:"flex flex-1 items-center px-6 py-2 text-sm text-gray-700 hover:text-gray-900 hover:bg-gray-100",...e.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"truncate",children:e.title}),e.description&&(0,s.jsx)("div",{className:"text-xs text-gray-500 truncate",children:e.description})]})}),a.length>0&&(0,s.jsx)("button",{onClick:()=>h(e=>({...e,[t]:!e[t]})),className:"px-4 py-2 text-gray-700 hover:bg-gray-100","aria-expanded":i[t]||!1,children:(0,s.jsx)(c.A,{className:"h-4 w-4 transition-transform ".concat(i[t]?"rotate-180":"")})})]}),a.length>0&&i[t]&&(0,s.jsx)("div",{className:"bg-white",children:a.map((e,t)=>(0,s.jsx)(o(),{href:e.href,onClick:r,className:"flex items-center px-10 py-2 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100",...e.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"truncate",children:e.title}),e.description&&(0,s.jsx)("div",{className:"text-xs text-gray-500 truncate",children:e.description})]})},t))})]},t)}),t.showAll&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border-t border-gray-300 mx-4 my-2"}),(0,s.jsxs)(o(),{href:t.showAll.href,onClick:r,className:"flex items-center px-6 py-2 text-sm font-medium text-blue-600 hover:text-blue-700 hover:bg-blue-100",children:[t.showAll.label,(0,s.jsx)(d.A,{className:"h-4 w-4 ml-auto"})]})]})]})]}):(0,s.jsx)("div",{className:"border-b border-gray-200 last:border-b-0",children:t.href?(0,s.jsx)(o(),{href:t.href,prefetch:!0,onClick:r,className:"block px-4 py-3 text-sm font-medium text-gray-900 hover:bg-gray-50",...t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.label}):(0,s.jsx)("div",{className:"px-4 py-3 text-sm font-medium text-gray-900",children:t.label})})},j=e=>{let{socialLinks:t,className:r,isDarkMode:a=!1}=e;if(!t)return null;let{facebook:l,instagram:n,tiktok:i,youtube:o}=t;if(!l&&!n&&!i&&!o)return null;let c=a?"text-white":"text-gray-600";return(0,s.jsxs)("div",{className:"flex space-x-3 ".concat(r||""),children:[l&&(0,s.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"".concat(c," ").concat(a?"hover:text-gray-200":"hover:text-blue-600"," transition-colors"),"aria-label":"Facebook",children:(0,s.jsx)(h.A,{className:"w-5 h-5"})}),n&&(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"".concat(c," ").concat(a?"hover:text-gray-200":"hover:text-pink-600"," transition-colors"),"aria-label":"Instagram",children:(0,s.jsx)(u.A,{className:"w-5 h-5"})}),i&&(0,s.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"".concat(c," ").concat(a?"hover:text-gray-200":"hover:text-black"," transition-colors"),"aria-label":"TikTok",children:(0,s.jsx)(m.A,{className:"w-5 h-5"})}),o&&(0,s.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"".concat(c," ").concat(a?"hover:text-gray-200":"hover:text-red-600"," transition-colors"),"aria-label":"YouTube",children:(0,s.jsx)(x.A,{className:"w-5 h-5"})})]})},N=e=>{let{navItems:t,isOpen:r,onClose:a,socialLinks:l,bookingUrl:i}=e;return((0,n.useEffect)(()=>(r?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[r]),r)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden",children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25",onClick:a}),(0,s.jsxs)("div",{className:"fixed top-0 right-0 h-full w-80 bg-white shadow-xl",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-200",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Navigation"}),(0,s.jsx)("button",{onClick:a,className:"p-2 rounded-lg hover:bg-gray-100 transition-colors",children:(0,s.jsx)(g.A,{className:"h-5 w-5 text-gray-500"})})]}),(0,s.jsxs)("div",{className:"overflow-y-auto h-full pb-20",children:[(0,s.jsx)("div",{className:"p-4 border-b border-gray-200",children:(0,s.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget).get("q");t.trim()&&(window.location.href="/search?q=".concat(encodeURIComponent(t.trim())),a())},children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"search",name:"q",placeholder:"Search...",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600/50 focus:border-blue-600"}),(0,s.jsx)("button",{type:"submit",className:"absolute right-2 top-1/2 transform -translate-y-1/2 p-1 rounded-lg hover:bg-gray-100 transition-colors",children:(0,s.jsx)(f.A,{className:"w-4 h-4 text-gray-500"})})]})})}),l&&(0,s.jsxs)("div",{className:"p-4 border-b border-gray-200",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Follow Us"}),(0,s.jsx)(j,{socialLinks:l,isDarkMode:!1})]}),t.map((e,t)=>(0,s.jsx)(y,{item:e,onLinkClick:a},t)),i&&(0,s.jsx)("div",{className:"p-4 border-b border-gray-200",children:(0,s.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",onClick:a,className:"flex items-center justify-center gap-2 w-full px-4 py-3 text-sm font-semibold rounded-full bg-blue-500 hover:bg-blue-700 text-white transition-all duration-200 shadow-sm hover:shadow-md",children:[(0,s.jsx)(p.A,{className:"w-4 h-4"}),"Book Your Trip"]})}),(0,s.jsx)("div",{id:"weglot-switcher-mobile",className:"p-4 border-b border-gray-200"})]})]})]}):null},k=e=>{let{navigation:t,tenant:r,logo:i,logoWhite:c,initialTransparent:d=!1}
1=e,[h,u]=(0,n.useState)(d?"dark":"light"),[m,x]=(0,n.useState)(!1),[g,y]=(0,n.useState)(!1),{headerTheme:k,setHeaderTheme:P,enableTransparentHero:A,isInHero:T}=(0,a.Y)(),_=(0,l.usePathname)(),C=(0,l.useRouter)(),S=(0,n.useRef)(null);(0,n.useEffect)(()=>{x(!0)},[]),(0,n.useEffect)(()=>{let e=S.current;if(!e)return;let t=()=>{document.documentElement.style.setProperty("--header-height","".concat(e.offsetHeight,"px"))};t();let r=new ResizeObserver(t);return r.observe(e),window.addEventListener("resize",t),()=>{r.disconnect(),window.removeEventListener("resize",t)}},[]),(0,n.useEffect)(()=>{A||P("light")},[_,A,P]),(0,n.useEffect)(()=>{k&&k!==h&&u(k)},[k,h]);let L=n.useMemo(()=>{if(!(null==t?void 0:t.navigations)||0===t.navigations.length)return[];let e=t.navigations[0];return(null==e?void 0:e.navItems)?e.navItems.map(e=>{var t;let r,s="none"!==e.linkType?(0,w.y)(e.linkType,{category:e.category,page:e.page,customUrl:e.customUrl}):void 0,a=(e.subItems||[]).map(e=>{let t=e.contextHref||(0,w.y)(e.linkType,{category:e.category,destination:e.destination,page:e.page,customUrl:e.customUrl});return{title:e.label,href:t||"#",description:e.description,newTab:e.newTab,items:(e.generatedSubItems||[]).map(e=>({title:e.label,href:e.href})).filter(e=>!!e.href)}}).filter(e=>"#"!==e.href);if(null==(t=e.showAllLink)?void 0:t.enabled){let t=(0,w.y)(e.showAllLink.linkType,{category:e.showAllLink.category,page:e.showAllLink.page,customUrl:e.showAllLink.customUrl});t&&(r={href:t,label:e.showAllLink.label||"View All"})}return{label:e.label,href:s,items:a,showAll:r,newTab:e.newTab}}):[]},[t]),E="dark"===k&&A&&T||!m&&d,U=E?"text-white":"text-gray-700",I=E?"text-white":"text-blue-600",R=E?"text-white":"text-gray-700",D=E?"hover:bg-white/10":"hover:bg-gray-100",z=E?c:i,F=A&&T,O=(null==r?void 0:r.primaryDomain)&&"niue"!==r.name.toLowerCase()?"https://book.".concat(r.primaryDomain):null;return(0,s.jsxs)("header",{ref:S,className:"w-full relative z-20 sticky top-0 transition-all duration-300 ease-in-out ".concat(F?"bg-transparent":"bg-white shadow-sm"),...h?{"data-theme":h}:{},children:[(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"py-2.5 lg:py-5 flex xl:flex-row lg:flex-col flex-row justify-between items-center",children:[(0,s.jsx)(o(),{href:"/",className:"block xl:block lg:hidden relative",children:(null==i?void 0:i.url)&&(null==c?void 0:c.url)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{src:i.url.startsWith("http")?i.url:"/api/media/file/".concat(i.url.split("/").pop()),alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:i.width||193,height:i.height||34,loading:"eager",fetchPriority:"high",className:"lg:w-full h-auto w-36 max-w-72 transition-opacity duration-300 ".concat(E?"opacity-0 absolute inset-0":"opacity-100")}),(0,s.jsx)("img",{src:c.url.startsWith("http")?c.url:"/api/media/file/".concat(c.url.split("/").pop()),alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:c.width||193,height:c.height||34,loading:"eager",fetchPriority:"high",className:"lg:w-full h-auto w-36 max-w-72 transition-opacity duration-300 ".concat(E?"opacity-100":"opacity-0 absolute inset-0")})]}):(null==z?void 0:z.url)?(0,s.jsx)("img",{src:z.url.startsWith("http")?z.url:"/api/media/file/".concat(z.url.split("/").pop()),alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:z.width||193,height:z.height||34,loading:"eager",fetchPriority:"high",className:"lg:w-full h-auto w-36 max-w-72"}):(0,s.jsx)("span",{className:"text-xl font-bold ".concat(U),children:"Pocket Guide"})}),(0,s.jsxs)("div",{className:"flex items-center gap-6 w-full xl:w-auto justify-end",children:[(0,s.jsxs)("div",{className:"hidden lg:flex flex-col w-full gap-3",children:[(0,s.jsxs)("div",{className:"hidden lg:flex xl:justify-end lg:justify-between justify-end gap-2 items-center",children:[(0,s.jsx)(o(),{href:"/",className:"xl:hidden lg:block hidden relative flex-shrink-0",children:(null==i?void 0:i.url)&&(null==c?void 0:c.url)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{src:i.url,alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:i.width||193,height:i.height||34,loading:"eager",fetchPriority:"high",className:"w-full h-8 transition-opacity duration-300 ".concat(E?"opacity-0 absolute inset-0":"opacity-100")}),(0,s.jsx)("img",{src:c.url,alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:c.width||193,height:c.height||34,loading:"eager",fetchPriority:"high",className:"w-full h-8 transition-opacity duration-300 ".concat(E?"opacity-100":"opacity-0 absolute inset-0")})]}):(null==z?void 0:z.url)?(0,s.jsx)("img",{src:z.url,alt:"".concat((null==r?void 0:r.name)||""," Logo"),width:z.width||193,height:z.height||34,loading:"eager",fetchPriority:"high",className:"w-full h-8"}):(0,s.jsx)("span",{className:"text-xl font-bold ".concat(U),children:"Pocket Guide"})}),(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)(j,{socialLinks:null==t?void 0:t.socialLinks,className:"mr-6",isDarkMode:E}),(0,s.jsx)("form",{className:"relative",onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget).get("q");t.trim()&&C.push("/search?q=".concat(encodeURIComponent(t.trim())))},children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("input",{type:"search",name:"q",placeholder:"Search...",className:"w-40 px-3 py-1 text-sm border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600/50 focus:border-blue-600 ".concat(E?"bg-white/10 border-white/20 text-white placeholder-white/60":"bg-white border-gray-300 text-gray-900 placeholder-gray-500")}),(0,s.jsxs)("button",{type:"submit",className:"ml-2 p-1 rounded-lg hover:bg-gray-100 transition-colors",children:[(0,s.jsx)("span",{className:"sr-only",children:"Search"}),(0,s.jsx)(f.A,{className:"w-5 ".concat(I," ").concat(E?"hover:text-gray-200":"hover:text-blue-600/80"," transition-colors")})]})]})}),O&&(0,s.jsxs)("a",{href:O,target:"_blank",rel:"noopener noreferrer",className:"ml-3 inline-flex items-center gap-2 px-4 py-2 text-sm font-semibold rounded-full transition-all duration-200 shadow-sm hover:shadow-md ".concat(E?"bg-white text-blue-600 hover:bg-blue-50":"bg-blue-500 text-white hover:bg-blue-700"),
1children:[(0,s.jsx)(p.A,{className:"w-4 h-4"}),"Book Your Trip"]}),(0,s.jsx)("div",{id:"weglot-switcher-nav",className:"ml-3"})]})]}),(0,s.jsx)("nav",{className:"flex gap-1 items-center justify-end",children:(0,s.jsx)("div",{className:"hidden lg:flex gap-1 xl:w-auto lg:w-full w-auto xl:justify-start lg:justify-between justify-end",children:L.map((e,t)=>(0,s.jsx)(v,{label:e.label,href:e.href,items:e.items,showAll:e.showAll,newTab:e.newTab,isDarkMode:E},t))})})]}),(0,s.jsx)("button",{onClick:()=>y(!0),className:"lg:hidden p-2 rounded-lg ".concat(D," transition-colors"),"aria-label":"Open navigation menu",children:(0,s.jsx)(b.A,{className:"h-5 w-5 ".concat(R)})})]})]})}),(0,s.jsx)(N,{navItems:L,isOpen:g,onClose:()=>y(!1),socialLinks:null==t?void 0:t.socialLinks,bookingUrl:O})]})}}},e=>{e.O(0,[7925,2048,2818,9660,9228,850,9222,5772,7358],()=>e(e.s=25506)),_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.