PageSourceSearch

https://pacific-austronesian-joint-harvest-festival.com/_next/stat…/news/%5Bslug%5D/page-d87d74a49d6d69c9.js

js pacific-austronesian-joint-harvest-festival.com collected 2026-10-07 22:20:51 UTC 5,417 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[329],{1170:function(e,t,a){Promise.resolve().then(a.bind(a,2611)),Promise.resolve().then(a.bind(a,8874)),Promise.resolve().then(a.t.bind(a,2972,23))},2611:function(e,t,a){"use strict";a.d(t,{default:function(){return i}});var n=a(7437),r=a(2265);let l=[{href:"#hero",label:"首頁"},{href:"#about",label:"關於"},{href:"#news",label:"最新消息"},{href:"#activities",label:"精彩活動"},{href:"#limited",label:"限定活動"},{href:"/stamp",label:"南島通行證"},{href:"https://www.instagram.com/pajh1982/",label:"Instagram",external:!0}],s=l.filter(e=>!e.external).map(e=>e.href.replace(/^#/,""));function i(){let[e,t]=(0,r.useState)(!1),[a,i]=(0,r.useState)(!1),[o,d]=(0,r.useState)("hero");return(0,r.useEffect)(()=>{let e=()=>t(window.scrollY>80);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.useEffect)(()=>{let e=s.map(e=>document.getElementById(e)).filter(e=>null!==e);if(0===e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>t.intersectionRatio-e.intersectionRatio)[0];t&&d(t.target.id)},{rootMargin:"-30% 0px -55% 0px",threshold:[0,.25,.5,.75,1]});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,n.jsxs)("header",{className:"fixed inset-x-0 top-0 z-50 transition-all duration-300 ".concat(e?"bg-ocean-deep/40 backdrop-blur-md border-b border-leaf/25":"bg-transparent"),children:[(0,n.jsxs)("nav",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-4 md:px-8","aria-label":"主導覽",children:[(0,n.jsxs)("a",{href:"#hero",className:"font-display text-2xl tracking-widest text-bone hover:text-sun transition",children:["palafang",(0,n.jsx)("span",{className:"text-hibiscus",children:"."}),"2026"]}),(0,n.jsx)("ul",{className:"hidden md:flex items-center gap-7",children:l.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(c,{item:e,activeId:o})},e.href))}),(0,n.jsxs)("button",{onClick:()=>i(e=>!e),className:"md:hidden flex flex-col gap-1.5 p-2","aria-label":"開啟選單","aria-expanded":a,children:[(0,n.jsx)("span",{className:"block h-0.5 w-6 bg-bone transition ".concat(a?"translate-y-2 rotate-45":"")}),(0,n.jsx)("span",{className:"block h-0.5 w-6 bg-bone transition ".concat(a?"opacity-0":"")}),(0,n.jsx)("span",{className:"block h-0.5 w-6 bg-bone transition ".concat(a?"-translate-y-2 -rotate-45":"")})]})]}),a&&(0,n.jsx)("ul",{className:"md:hidden bg-ocean-deep/95 backdrop-blur border-t border-leaf/25 px-4 py-6 flex flex-col gap-5",children:l.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(c,{item:e,activeId:o,onClick:()=>i(!1),mobile:!0})},e.href))})]})}function c(e){let{item:t,activeId:a,onClick:r,mobile:l=!1}=e,s=t.href.replace(/^#/,""),i=!t.external&&a===s,c=l?"block text-lg font-bold transition":"text-sm font-bold tracking-wider transition",o=i?"text-sun":"text-bone/85 hover:text-hibiscus";return t.external?(0,n.jsxs)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:r,className:"".concat(c," ").concat(o," inline-flex items-center gap-1"),children:[t.label,(0,n.jsx)("span",{"aria-hidden":!0,className:"text-[0.85em]",children:"↗"})]}):(0,n.jsx)("a",{href:t.href,onClick:r,className:"".concat(c," ").concat(o),children:t.label})}},8874:function(e,t,a){"use strict";a.d(t,{default:function(){return s}});var n=a(7437),r=a(3145),l=a(2265);function s(e){let{images:t,alt:a,aspectClass:s="aspect-[16/9]"}=e,[i,c]=(0,l.useState)(0),o=t.length,d=Math.min(i,o-1);return(0,l.useEffect)(()=>{if(o<=1)return;let e=setInterval(()=>{c(e=>(e+1)%o)},4500);return()=>clearInterval(e)},[o,i]),(0,n.jsxs)("div",{className:"relative ".concat(s," overflow-hidden frame-leaf bg-ocean-deep"),children:[t.map((e,t)=>{let l=e.startsWith("/api/uploads/");return(0,n.jsxs)("div",{className:"absolute inset-0 transition-opacity duration-500 ".concat(t===d?"opacity-100":"opacity-0"),children:[(0,n.jsx)(r.default,{src:e,alt:"","aria-hidden":!0,fill:!0,sizes:"(max-width: 1024px) 100vw, 896px",className:"scale-110 object-cover blur-xl",priority:0===t,unoptimized:l}),(0,n.jsx)(r.default,{src:e,alt:o>1?"".concat(a,"(").concat(t+1,"/").concat(o,")"):a,fill:!0,sizes:"(max-width: 1024px) 100vw, 896px",className:"object-contain",priority:0===t,unoptimized:l})]},"".concat(e,"-").concat(t))}),o>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>{c((o+(d-1))%o)},"aria-label":"上一張",className:"absolute left-3 top-1/2 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full bg-ocean-deep/55 text-bone text-xl backdrop-blur-sm transition hover:bg-hibiscus",children:"‹"}),(0,n.jsx)("button",{type:"button",onClick:()=>{c((o+(d+1))%o)},"aria-label":"下一張",className:"absolute right-3 top-1/2 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full bg-ocean-deep/55 text-bone text-xl backdrop-blur-sm transition hover:bg-hibiscus",children:"›"}),(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-3 flex items-center justify-center gap-2",children:t.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>c(t),"aria-label":"第 ".concat(t+1," 張"),"aria-current":t===d,className:"h-2 rounded-full transition-all ".concat(t===d?"w-6 bg-sun":"w-2 bg-bone/60 hover:bg-bone")},"dot-".concat(e,"-").concat(t)))})]})]})}}},function(e){e.O(0,[972,145,971,117,744],function(){return e(e.s=1170)}),_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.