PageSourceSearch

https://www.maolin-nsa.gov.tw/_next/static/chunks/pages/news-4d59497772889193.js

js maolin-nsa.gov.tw collected 2026-10-02 11:34:44 UTC 6,220 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2277],{38631:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var s=l(37876),r=l(14232),i=l(60899),n=l(89099),a=l(75752),d=l(6065);let c=(0,r.lazy)(()=>l.e(5248).then(l.bind(l,15248))),x=r.memo(({data:e,initItemNums:t=24,perScrollNums:l=12,component:x,filterOptions:o,className:m,texts:p,children:h})=>{let u=(0,n.useRouter)(),f=u.query,b=f.sortby||"hits",j=f.sortValue||"",[v,y]=(0,r.useState)(null),[N,g]=(0,r.useState)(t),[w,A]=(0,r.useState)(!1),_=(0,r.useRef)(null),k=new IntersectionObserver((e,t)=>{A(e[0].isIntersecting)});return(0,r.useEffect)(()=>{let t,l=[...e];o&&b?.toLowerCase()==="hits"&&(l=[...l.filter(e=>0===e.priority).sort((e,t)=>e.priority-t.priority),...l.filter(e=>0!==e.priority).sort((e,t)=>t.viewsCount-e.viewsCount)]),j&&(t=j.split(","),l.sort((e,l)=>(0,a.Io)(e.lat,e.lng,+t[0],+t[1])-(0,a.Io)(l.lat,l.lng,+t[0],+t[1]))),y(l)},[e,b,j]),(0,r.useEffect)(()=>(_.current&&k.observe(_.current),()=>{k.disconnect()}),[v,_.current]),(0,r.useEffect)(()=>{e&&w&&v&&N<v.length&&(g(N+l),k.unobserve(_.current),k.observe(_.current))},[w,e,v]),(0,s.jsxs)("div",{className:m,children:[h,!!v?.length&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"d-md-flex justify-content-between mb-n1px py-2 border-b border-solid border-[#ccc]",children:[(0,s.jsx)("div",{role:"status",children:(0,s.jsx)(d.Ay,{params:[v.length],children:"共有 {0} 筆結果"})}),p&&(0,s.jsx)("div",{className:"text-info py-1 py-md-0",children:p})]}),(0,s.jsxs)(r.Suspense,{fallback:(0,s.jsx)("div",{}),children:[o&&(0,s.jsx)(c,{options:o,onSort:e=>{let t={...u.query};delete t.sortby,delete t.sortValue,u.push({query:{...t,...e}},null,{scroll:!1})}}),(0,s.jsx)(x,{data:v,currentIdx:N})]})]}),v&&!v.length&&(0,s.jsx)("div",{className:"py-15 text-info text-center fz-18px",children:(0,s.jsx)(d.Ay,{children:"暫無資料"})}),e&&N<v?.length&&(0,s.jsx)("div",{className:"d-flex justify-content-center mt-5",ref:_,children:(0,s.jsx)(i.A,{size:16})})]})})},50585:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return l(95288)}])},92179:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(37876),r=l(14232),i=l(89099),n=l(75752);let a=r.memo(({data:e,query:t})=>{let l=(0,i.useRouter)(),r=t.category?.split(",").map(e=>+e)||[];return(0,s.jsxs)("ul",{className:"scroll-x-blk d-flex flex-xl-wrap align-items-center flex-fill mx-n2 mb-2 pl-2 py-4px mr-xl-4 mb-xl-0 h-xl-6 overflow-xl-hidden",role:"tablist",children:[(0,s.jsx)("li",{className:"mr-1 mb-4px",children:(0,s.jsx)("button",{className:`${r.length<1&&"btn-secondary"} btn h-5 px-20px rounded`,"aria-selected":(r.length<1).toString(),onClick:()=>{let e=(0,n.LB)(t,{category:[]});l.push(`${l.asPath.split("?")[0]}${e?`?${e}`:""}`,"",{scroll:!1,shallow:!1})},role:"tab",children:"ALL"})}),e&&e.filter(e=>e.shortcut).map((e,i)=>{let a=r?.find(t=>t===e.id);return(0,s.jsx)("li",{className:"flex-shrink-0 mr-1 mb-4px",children:(0,s.jsx)("button",{className:`${a?"btn-secondary":"hover-secondary hover-bg-white"} btn h-5 px-20px rounded`,"aria-selected":(!!a).toString(),onClick:()=>{let s;s=a?r.filter(t=>t!==e.id):[...r,e.id];let i=(0,n.LB)(t,{category:s});l.push(`${l.asPath.split("?")[0]}${i?`?${i}`:""}`,"",{scroll:!1,shallow:!1})},role:"tab",children:e.name})},i)})]})})},95288:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>g,default:()=>w});var s=l(37876),r=l(14232),i=l(89099),n=l(98854),a=l(99461),d=l(38148),c=l(9493),x=l(87259),o=l(53567),m=l(73402),p=l(92179),h=l(38631),u=l(88070);let f=r.memo(({data:e})=>{let{url:t,date_posted:l,categoryNames:r,title:i,priority:n}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(u.A,{href:t,className:"d-block w-100 py-3 border-t border-solid border-[#ccc] hover-primary trs-all",children:[(!!r?.length||0===n)&&(0,s.jsxs)("div",{className:"d-flex flex-wrap mb-1 fz-13px lh-initial text-default",children:[r.map((e,t)=>(0,s.jsx)("div",{className:"px-1 py-4px bg-[#f6ecd2] rounded-[4px] xl:rounded-[8px]",children:e},t)),0===n&&(0,s.jsx)("i",{className:"icon icon-pin ml-1 text-primary","aria-hidden":"true"})]}),(0,s.jsx)("div",{className:"line-clamp-2 fz-20px fz-md-22px fz-xl
1-24px font-weight-bold lh-initial",children:i}),(0,s.jsx)("div",{className:"mt-1 fz-17px lh-initial text-default",children:l.split("T")[0]})]})})}),b=r.memo(({data:e,currentIdx:t})=>(0,s.jsx)("ul",{className:"row align-items-md-stretch gx-md-3 gx-xl-5",children:e.filter((e,l)=>l<t).map(e=>(0,s.jsx)("li",{className:"d-flex col-12 col-md-6",children:(0,s.jsx)(f,{data:e})},e.id))}));var j=l(60899);l(6065);var v=l(68137),y=l(75752),N=l(90658),g=!0;let w=({title:e,locale:t})=>{let l=(0,N.Ym)(),u=(0,i.useRouter)(),{query:f}=u,{data:g,category:w}=(0,v.XW)({lang:l})||{},A=(0,y.nd)(g,f),_=(0,n.wA)();return(0,r.useEffect)(()=>{_((0,a.t)("transparent"))},[u]),(0,s.jsxs)("div",{className:"full-width min-h-[100vh] mt-n7 mt-xl-n12",children:[(0,s.jsx)(o.A,{title:e}),(0,s.jsxs)("div",{className:"mx-n2 mx-md-n3 mx-xl-n5 position-relative",children:[(0,s.jsx)(x.A,{className:"before:pt-[196px] md:before:pt-[240px] xl:before:pt-[320px]",imgClassName:"object-top md:object-center",src:"/images/banners/banner-news.jpg",alt:"",ratio:"4by3"}),(0,s.jsx)("div",{className:"px-2 px-md-3 px-xl-5 pt-8 pb-3 pt-xl-15 pb-xl-5 fill-parent",children:(0,s.jsx)("div",{className:"d-flex flex-column align-items-start max-w-[1280px] h-100 mx-auto",children:(0,s.jsx)(d.A,{className:"d-flex align-items-center text-white px-1 pl-xl-4 pr-xl-2 h-4 bg-black/20 backdrop-blur-[8px] rounded",data:[{title:"茂林新訊"},{title:e}]})})})]}),(0,s.jsx)(c.A,{title:e}),(0,s.jsxs)("div",{className:"w-100 max-w-[1280px] mx-auto",children:[(0,s.jsxs)("div",{className:"d-xl-flex align-items-center mt-2 mt-md-3 mt-xl-5 mb-xl-3 justify-content-between",children:[(0,s.jsx)(p.A,{data:w,query:f}),(0,s.jsx)("div",{className:"flex-shrink-0 ml-md-auto xl:w-[480px]",children:(0,s.jsx)(m.A,{data:g,query:f,categoryData:w,options:{category:!0,date:!0}})})]}),(0,s.jsxs)("div",{children:[!A&&(0,s.jsx)("div",{className:"d-flex justify-content-center p-5",children:(0,s.jsx)(j.A,{size:18})}),A&&(0,s.jsx)(h.A,{data:A,component:b})]})]})]})}}},e=>{e.O(0,[2867,7160,141,636,6593,8792],()=>e(e.s=50585)),_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.