1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19122,e=>{"use strict";e.s(["default",()=>p],19122),e.i(47167);var t=e.i(43476),l=e.i(80401);e.i(41983);var i=e.i(95280),a=e.i(58498),n=e.i(79053),s=e.i(86301),r=e.i(71645);let o={src:e.i(13866).default,width:75,height:75,blurWidth:0,blurHeight:0},c={src:e.i(40430).default,width:150,height:150,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA/0lEQVR42j2Pz0sCYRCGP6tDGRjZqejgyQo6FNEPEoKFbZcQOhQLWWRkBklI3YIKSoUI9SgePApeFAT1oCD4KYIgCt73zxD5QD287izoYeBh5mFmXsYslrl527q06FS4de9GUBFTj2aMwHHm1V23Xzj1fM5qR/HrC7YNiZEt+0LQ3uNQ/BE45ACcF0GoBq/sujmjlfJjCOpzBNLDD8LJHNKFOq7fYlg78QpTuApGkciUka+20R8IDEdjQ2rAfmwIdOLcF0a20kKl2UOJd1GsdRD4TcG6rXLzSfuBph9qH3j6TuLy9R/ulz9suu50M8k05tKWyleP7sXyvkcQT2NOAGUvcN62cP9sAAAAAElFTkSuQmCC"},d={src:e.i(63433).default,width:76,height:75,blurWidth:0,blurHeight:0},u={src:e.i(35073).default,width:150,height:150,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA5klEQVR42kVPS4tBcRz98w1mVr7FzCxmoUbNpWmoaZqJdCmPiDwTyiPPSOzt8SFEVnfNQtfzun/Kt7jbw4+wOHU653Q6h+l1Or3R8CT0zS/S1P6hEXpnThp5jMjYbeVKPggl98DE/8uNhmeBUVqtxLEM/0EphLCKOyH7bVBrSQy+3yVGlWo5hkXgB4d2DodOHrLPhl0pgpnLrF0DlRhkrxVqNYF1QsRc/MSuHL0GaNwm7QGvp7BvZi7VBKUYRt/yJl1GDv9NfJv14dhtYt/KgjfSGIlfnDx2v2l5lWaioE0dJo347eYJWX+FETPm51AAAAAASUVORK5CYII="};var h=e.i(94467),m=e.i(83984),A=e.i(94575),g=e.i(67844);let p=e=>{var p,w;let{locale:v}=e,[C,x]=(0,r.useState)([]),[f,b]=(0,r.useState)([]),[j,N]=(0,r.useState)(!0),[y,S]=(0,r.useState)(!1),[H,L]=(0,r.useState)(0),[V,E]=(0,r.useState)(""),B=(0,r.useRef)(null),k=(0,r.useRef)(null),R=(0,r.useRef)([]),I=(0,r.useRef)(null),U=v||"zh-TW",T="en-US"===U,M=C.filter(e=>!!e.image),F={prev:T?"Previous banner":"ä¸ä¸å¼µ banner",next:T?"Next banner":"ä¸ä¸å¼µ banner",first:T?"This is the first banner":"ç®åæ¯ç¬¬ä¸å¼µ banner",last:T?"This is the last banner":"ç®åæ¯æå¾ä¸å¼µ banner",bullet:T?"Go to banner {{index}}":"åå¾ç¬¬ {{index}} å¼µ banner",region:T?"Homepage hero banner":"é¦é 主è¦è¦ºè¼ªæ",regionDescription:T?"Carousel banner":"å¯åæç banner 輪æ",current:T?"Currently showing":"ç®å顯示",noPrevious:T?"No previous banner. This is the first banner.":"ç®åæ¯ç¬¬ä¸å¼µ bannerï¼æ²æä¸ä¸å¼µã",noNext:T?"No next banner. This is the last banner.":"ç®åæ¯æå¾ä¸å¼µ bannerï¼æ²æä¸ä¸å¼µã",switcherLabel:T?"Homepage banner type switcher":"é¦é 輪æé¡ååæ",imageToggle:T?"Switch to image banner":"åæçºåç輪ææé",videoToggle:T?"Switch to video banner":"åæçºå½±ç輪ææé",playVideo:T?"Play video banner":"ææ¾å½±ç輪æ",pauseVideo:T?"Pause video banner":"æ«åå½±ç輪æ"},D=e=>{var t;let l=(0,g.getCarouselImageAlt)(null==(t=M[e])?void 0:t.image.alt,F.region,e,U);return l||(T?"Banner ".concat(e+1):"第 ".concat(e+1," å¼µ banner"))},_=e=>T?"banner image ".concat(e+1," of ").concat(M.length):"第 ".concat(e+1," 張輪æåçï¼å
± ").concat(M.length," å¼µ"),W=(e,t)=>'<span class="'.concat(t,'" role="button" aria-label="').concat(O(e,e===H).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"),'" aria-controls="home-banner-swiper"></span>'),O=(e,t)=>{let l=t?F.current:T?"Go to":"åå¾";return"".concat(l).concat(T?" ":"").concat(_(e),"ï¼").concat(D(e))},Q=(e,t)=>{let l="prev"===e?t-1:t+1;if(l<0)return F.noPrevious;if(l>=M.length)return F.noNext;let i="prev"===e?F.prev:F.next;return"".concat(i,"ï¼").concat(_(l),"ï¼").concat(D(l))},P=e=>{var t,l,i;if(!M.length)return;let a=null!=(i=null!=(l=e.realIndex)?l:e.activeIndex)?i:0,n=e.el,s=n.querySelector(".swiper-button-prev"),r=n.querySelector(".swiper-button-next"),o=Array.from((null==(t=k.current)?void 0:t.querySelectorAll(".swiper-pagination-bullet"))||[]);null==s||s.setAttribute("aria-label",Q("prev",a)),null==s||s.setAttribute("title",Q("prev",a)),null==s||s.setAttribute("aria-controls","home-banner-swiper"),null==r||r.setAttribute("aria-label",Q("next",a)),null==r||r.setAttribute("title",Q("next",a)),null==r||r.setAttribute("aria-controls","home-banner-swiper"),o.forEach((e,t)=>{let l=t===a;e.setAttribute("aria-label",O(t,l)),e.setAttribute("aria-controls","home-banner-swiper"),e.setAttribute("aria-current",l?"true":"false")}),L(a),E((e=>M.length?"".concat(F.current).concat(T?" ":"").concat(_(e),"ï¼").concat(D(e)):"")(a))},Y=e=>{B.current=e,requestAnimationFrame(()=>{P(e)})};(0,r.useEffect)(()=>{j&&B.current&&M.length&&P(B.current)},[H,M.length,j,U]),(0,r.useEffect)(()=>
1{if(j||!f.length)return;let e=I.current;if(!e)return;S(e.paused);let t=e.play();t&&t.catch(()=>{S(!0)})},[f.length,j]),(0,r.useEffect)(()=>{h.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/banner"),{},{headers:{"Accept-Language":U},cache:"no-store",locale:U}).then(e=>{x(e.data),b(e.data.filter(e=>null===e.image))})},[U]);let G=e=>{"image"===e&&N(!0),"video"===e&&(N(!1),S(!1)),window.scrollTo({top:0,behavior:"smooth"})},K=(e,t)=>{var l,i,a;let n=R.current.filter(e=>null!==e&&!e.disabled);if(!n.length)return;if("Home"===e.key){e.preventDefault(),null==(i=n[0])||i.focus();return}if("End"===e.key){e.preventDefault(),null==(a=n[n.length-1])||a.focus();return}if(!["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key))return;e.preventDefault();let s=(t+("ArrowRight"===e.key||"ArrowDown"===e.key?1:-1)+n.length)%n.length;null==(l=n[s])||l.focus()};return(0,t.jsxs)("div",{className:"home-banner",children:[j?(0,t.jsx)(l.Swiper,{modules:[i.A11y,a.Keyboard,n.Navigation,s.Pagination],spaceBetween:0,slidesPerView:1,pagination:{el:".home-banner__pagination",clickable:!0,renderBullet:W},a11y:{prevSlideMessage:F.prev,nextSlideMessage:F.next,firstSlideMessage:F.first,lastSlideMessage:F.last,paginationBulletMessage:F.bullet,containerMessage:F.region,containerRoleDescriptionMessage:F.regionDescription},keyboard:{enabled:!0,onlyInViewport:!0},navigation:!0,id:"home-banner-swiper",className:"arrow-fill",onSwiper:Y,onInit:Y,onSlideChange:Y,onPaginationUpdate:Y,children:M.map((e,i)=>{let a=D(i);return(0,t.jsx)(l.SwiperSlide,{children:e.url?(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"home-banner__item","aria-label":(0,A.withNewWindowNotice)(a,U),title:(0,A.withNewWindowNotice)(a,U),children:(0,t.jsx)("img",{src:e.image.url,alt:a,style:{aspectRatio:"1223 / 552"}})}):(0,t.jsx)("div",{className:"home-banner__item",children:(0,t.jsx)("img",{src:e.image.url,alt:a,style:{aspectRatio:"1223 / 552"}})})},i)})}):0!==f.length?(0,t.jsx)("div",{className:"home-banner__item",children:(0,t.jsx)("div",{className:"swiper",children:(0,t.jsx)("video",{id:"home-banner-video",ref:I,className:"w-100 h-auto d-block object-fit-cover",src:null==(p=f[0].video)?void 0:p.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,controls:!1,onPlay:()=>S(!1),onPause:()=>S(!0),"aria-label":(0,m.normalizeAccessibleText)(null==(w=f[0].video)?void 0:w.alt)||void 0,style:{aspectRatio:"1440 / 650"},children:"æ¨çç覽å¨ä¸æ¯æ´ HTML5 å½±çã"})})}):(0,t.jsx)(l.Swiper,{modules:[i.A11y,a.Keyboard,n.Navigation,s.Pagination],spaceBetween:0,slidesPerView:1,pagination:{el:".home-banner__pagination",clickable:!0,renderBullet:W},a11y:{prevSlideMessage:F.prev,nextSlideMessage:F.next,firstSlideMessage:F.first,lastSlideMessage:F.last,paginationBulletMessage:F.bullet,containerMessage:F.region,containerRoleDescriptionMessage:F.regionDescription},keyboard:{enabled:!0,onlyInViewport:!0},navigation:!0,id:"home-banner-swiper",className:"arrow-fill",onSwiper:Y,onInit:Y,onSlideChange:Y,onPaginationUpdate:Y,children:M.map((e,i)=>{let a=D(i);return(0,t.jsx)(l.SwiperSlide,{children:(0,t.jsx)("div",{className:"home-banner__item",children:(0,t.jsx)("img",{src:e.image.url,alt:a,style:{aspectRatio:"1440 / 650"}})})},i)})}),(0,t.jsx)("div",{className:"visually-hidden","aria-live":"polite","aria-atomic":"true",children:V}),(0,t.jsxs)("div",{className:"home-banner__btn",role:"group","aria-label":F.switcherLabel,children:[(0,t.jsx)("button",{type:"button",ref:e=>{R.current[0]=e},"aria-label":F.imageToggle,"aria-pressed":j,"aria-controls":"home-banner-swiper",onClick:()=>G("image"),onKeyDown:e=>K(e,0),children:(0,t.jsx)("img",{src:j?o.src:c.src,alt:"","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",ref:e=>{R.current[1]=e},"aria-label":F.videoToggle,"aria-pressed":!j,"aria-controls":"home-banner-swiper",disabled:0===f.length,onClick:()=>G("video"),onKeyDown:e=>K(e,1),children:(0,t.jsx)("img",{src:j?d.src:u.src,alt:"","aria-hidden":"true"})}),j||0===f.length?null:(0,t.jsx)("button",{type:"button",className:"home-banner__video-control","aria-label":y?F.playVideo:F.pauseVideo,title:y?F.playVideo:F.pauseVideo,"aria-controls":"home-banner-video","aria-pressed":!y,onClick:()=>{let e=I.current;if(e){if(e.paused)return void e.play();e.pause()}},children:y?T?"Play":"ææ¾":T?"Pause":"æ«å"})]}),j?(0,t.jsx)("div",{ref:k,className:"home-banner__pagination swiper-pagination"}):null]})}},2008,(e,t,l)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},89851,e=>{"use strict";let t;e.s(["default",()=>T],89851),e.i(47167);var l=e.i(43476);let i=e=>{let{title:t,subtitle:i}=e;return(0,l.jsx)("div",{className:"home-info__title",children:(0,l.jsx)("h2",{children:t})})},a=e=>{let{icon:t,text:i}=e;return(0,l.jsxs)("div",{className:"c-home-info-detail",children:[(0,l.jsx)("img",{src:t,alt:"","aria-hidden":"true"}),(0,l.jsx)("div",{className:"c-home-info-detail__text",children:i})]})};var n=e.i(93012),s=e.i(71645);e.i(2008),Object.create(null);let r={},o=(e,t,l,i)=>{m(l)&&r[l]||(m(l)&&(r[l]=new Date),((e,t,l,i)=>{var a,n,s,r,o;let c=[l,{code:t,...i||{}}];if(null==e||null==(n=e.services)||null==(a=n.logger)?void 0:a.forward)return e.services.logger.forward(c,"warn","react-i18next::",!0);m(c[0])&&(c[0]="react-i18next:: ".concat(c[0])),(null==e||null==(r=e.services)||null==(s=r.logger)?void 0:s.warn)?e.services.logger.warn(...c):(null==(o=console)?void 0:o.warn)&&console.warn(...c)})(e,t,l,i))},c=(e,t)=>()=>{if(e.isInitialized)t();else{let l=()=>{setTimeout(()=>{e.off("initialized",l)},0),t()};e.on("initialized",l)}},d=(e,t,l)=>{e.loadNamespaces(t,c(e,l))},u=(e,t,l,i)=>{if(m(l)&&(l=[l]),e.options.preload&&e.options.preload.indexOf(t)>-1)return d(e,l,i);l.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,c(e,i))},h=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:l.lng,precheck:(t,i)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):(o(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0)},m=e=>"string"==typeof e,A=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,g={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},p=e=>g[e],w={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(A,p)},v=(0,s.createContext)();
1class C{addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}constructor(){this.usedNamespaces={}}}let x=(e,t,l,i)=>e.getFixedT(t,l,i),f=function(e){var l,i,a,n;let r,c,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:g}=A,{i18n:p,defaultNS:f}=(0,s.useContext)(v)||{},b=g||p||t;if(b&&!b.reportNamespaces&&(b.reportNamespaces=new C),!b){o(b,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>{let l;return m(t)?t:"object"==typeof(l=t)&&null!==l&&m(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}(null==(l=b.options.react)?void 0:l.wait)&&o(b,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let j={...w,...b.options.react,...A},{useSuspense:N,keyPrefix:y}=j,S=e||f||(null==(i=b.options)?void 0:i.defaultNS);S=m(S)?[S]:S||["translation"],null==(a=(n=b.reportNamespaces).addUsedNamespaces)||a.call(n,S);let H=(b.isInitialized||b.initializedStoreOnce)&&S.every(e=>h(e,b,j)),L=(r=A.lng||null,c="fallback"===j.nsMode?S:S[0],(0,s.useCallback)(x(b,r,c,y),[b,r,c,y])),V=()=>L,E=()=>x(b,A.lng||null,"fallback"===j.nsMode?S:S[0],y),[B,k]=(0,s.useState)(V),R=S.join();A.lng&&(R="".concat(A.lng).concat(R));let I=((e,t)=>{let l=(0,s.useRef)();return(0,s.useEffect)(()=>{l.current=t?l.current:e},[e,t]),l.current})(R),U=(0,s.useRef)(!0);(0,s.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=j;U.current=!0,H||N||(A.lng?u(b,A.lng,S,()=>{U.current&&k(E)}):d(b,S,()=>{U.current&&k(E)})),H&&I&&I!==R&&U.current&&k(E);let l=()=>{U.current&&k(E)};return e&&(null==b||b.on(e,l)),t&&(null==b||b.store.on(t,l)),()=>{U.current=!1,b&&e&&(null==e||e.split(" ").forEach(e=>b.off(e,l))),t&&b&&t.split(" ").forEach(e=>b.store.off(e,l))}},[b,R]),(0,s.useEffect)(()=>{U.current&&H&&k(V)},[b,y,H]);let T=[B,b,H];if(T.t=B,T.i18n=b,T.ready=H,H||!H&&!N)return T;throw new Promise(e=>{A.lng?u(b,A.lng,S,()=>e()):d(b,S,()=>e())})},b=e=>{let{title:t,th:i,td:a}=e;return(0,l.jsxs)("div",{className:"info-table",children:[(0,l.jsx)("h2",{className:"info-title",children:t}),(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:i.map((e,t)=>(0,l.jsx)("th",{children:e},"th-".concat(t)))})}),(0,l.jsx)("tbody",{children:a.map((e,t)=>(0,l.jsx)("tr",{children:e.map((e,i)=>(0,l.jsx)("td",{style:{whiteSpace:"pre-wrap"},children:e},"cell-".concat(t,"-").concat(i)))},"row-".concat(t)))})]})]})};var j=e.i(3130),N=e.i(94467);let y=e=>{var t,i,a,r,o,c,d,u,h,m,A,g,p,w,v;let{dict:C}=e,{i18n:x}=f(),[y,S]=(0,s.useState)([]),H=null==C||null==(a=C.Homepage)||null==(i=a.Info)||null==(t=i.Visit)?void 0:t.TideModal,L=new Date,V="".concat(L.getFullYear(),"-").concat(String(L.getMonth()+1).padStart(2,"0"),"-").concat(String(L.getDate()).padStart(2,"0")),E=(null==H||null==(r=H.FallbackType)?void 0:r.Low)||"乾潮",B=(null==H||null==(o=H.FallbackType)?void 0:o.High)||"滿潮";(0,s.useEffect)(()=>{(async()=>{try{let e=(await N.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/common/tideInfo"),{},{headers:{"Accept-Language":x.language||"zh-TW"},cache:"no-store"})).data.map(e=>({title:e.area,info:e.list.map(e=>[e.tideType,e.time,e.height])}));console.log(e),S(e)}catch(a){var e,t,l,i;console.error("Fetch tide error:",a),S([{title:(null==H||null==(e=H.FallbackArea)?void 0:e.Nangan)||"åç«¿æ½®æ±",info:[[E,"00:37","-155"],[B,"06:46","167"],[E,"13:12","-194"],[B,"19:31","159"]]},{title:(null==H||null==(t=H.FallbackArea)?void 0:t.Began)||"åç«¿æ½®æ±",info:[[E,"00:37","-155"],[B,"06:46","167"],[E,"13:12","-194"],[B,"19:31","159"]]},{title:(null==H||null==(l=H.FallbackArea)?void 0:l.Dongyin)||"æ±å¼æ½®æ±",info:[[E,"00:37","-155"],[B,"06:46","167"],[E,"13:12","-194"],[B,"19:31","159"]]},{title:(null==H||null==(i=H.FallbackArea)?void 0:i.Dongju)||"èå
æ½®æ±",info:[[E,"00:37","-155"],[B,"06:46","167"],[E,"13:12","-194"],[B,"19:31","159"]]}])}})()},[x.language,H,E,B]);let k={islink:!0,linkto:"https://www.cwa.gov.tw/V8/C/M/tide.html?NSeaID=NSea15",newwindow:!0,text:(null==H?void 0:H.Source)||"æ½®æ±è³æä¾æºçºä¸å¤®æ°£è±¡ç½²é¦¬ç¥æ°£è±¡ç«ç¦æ¾³æ¸¯",icon:(0,l.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1 13.167V3.83301C1.00009 3.21429 1.24609 2.6211 1.68359 2.18359C2.1211 1.74609 2.71429 1.50009 3.33301 1.5H6.66699L6.76855 1.50488C7.27299 1.55592 7.66699 1.9821 7.
166699 2.5C7.66699 3.0179 7.27299 3.44408 6.76855 3.49512L6.66699 3.5H3.33301C3.24472 3.50009 3.16009 3.53522 3.09766 3.59766C3.03522 3.66009 3.00009 3.74472 3 3.83301V13.167C3.00009 13.2553 3.03522 13.3399 3.09766 13.4023C3.16009 13.4648 3.24472 13.4999 3.33301 13.5H12.667C12.7553 13.4999 12.8399 13.4648 12.9023 13.4023C12.9648 13.3399 12.9999 13.2553 13 13.167V9.83301C13.0002 9.28087 13.4478 8.83301 14 8.83301C14.5522 8.83301 14.9998 9.28087 15 9.83301V13.167C14.9999 13.7857 14.7539 14.3789 14.3164 14.8164C13.8789 15.2539 13.2857 15.4999 12.667 15.5H3.33301C2.71429 15.4999 2.1211 15.2539 1.68359 14.8164C1.24609 14.3789 1.00009 13.7857 1 13.167ZM15 5.83301C15 6.38529 14.5523 6.83301 14 6.83301C13.4477 6.83301 13 6.38529 13 5.83301V4.91406L9.70703 8.20703C9.31651 8.59756 8.68349 8.59756 8.29297 8.20703C7.90244 7.81651 7.90244 7.18349 8.29297 6.79297L11.5859 3.5H10.667C10.1147 3.5 9.66699 3.05228 9.66699 2.5C9.66699 1.94772 10.1147 1.5 10.667 1.5H14L14.1025 1.50488C14.6067 1.55621 15 1.98232 15 2.5V5.83301Z",fill:"white"})}),theme:"secondary",hasmodal:!1,modaltarget:"",otherClass:""},R=[(null==H||null==(c=H.TableHeader)?void 0:c.Type)||"æ½®æ±",(null==H||null==(d=H.TableHeader)?void 0:d.Time)||"æé",(null==H||null==(u=H.TableHeader)?void 0:u.Height)||"æ½®é«"];return(0,l.jsx)("div",{className:"modal fade modal-tide",id:"tide-info",tabIndex:-1,"aria-labelledby":"tide-info-label","aria-hidden":"true",children:(0,l.jsx)("div",{className:"modal-dialog modal-xl",children:(0,l.jsxs)("div",{className:"modal-content",children:[(0,l.jsxs)("div",{className:"modal-header d-block",children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,l.jsx)("div",{className:"modal-title fs-5",id:"tide-info-label",children:(null==C||null==(g=C.Homepage)||null==(A=g.Info)||null==(m=A.Visit)||null==(h=m.Buttons)?void 0:h.Tide)||"æ½®æ±è³è¨"}),(0,l.jsx)(j.default,{})]}),(0,l.jsxs)("p",{className:"mb-0",style:{paddingTop:"20px"},children:[(null==C||null==(v=C.Homepage)||null==(w=v.Info)||null==(p=w.Visit)?void 0:p.TideUpdatedAt)||"è³ææ´æ°æé"," : ",V]})]}),(0,l.jsxs)("div",{className:"modal-body",children:[(0,l.jsx)("div",{className:"row",children:y.map((e,t)=>(0,l.jsx)("div",{className:"col-lg-3 col-md-6 mb-3",children:(0,l.jsx)(b,{title:e.title,th:R,td:e.info})},t))}),(0,l.jsx)(n.default,{...k})]})]})})})},S=e=>{let{safe:t,area:i,wind:a,spot:n,windLabel:s="風ç´",openLabel:r="éæ¾",closeLabel:o="éé"}=e;return(0,l.jsxs)("div",{className:"c-spot-manage-item",children:[(0,l.jsx)("div",{className:!0===t?"c-spot-manage-item__wind color-green":"c-spot-manage-item__wind color-red",children:(0,l.jsxs)("div",{className:"row",children:[(0,l.jsx)("div",{className:"col-4",children:(0,l.jsx)("div",{className:"c-spot-manage-item__head",children:(0,l.jsx)("p",{children:i})})}),(0,l.jsx)("div",{className:"col-4",children:(0,l.jsxs)("div",{className:"c-spot-manage-item__head",children:[(0,l.jsx)("p",{children:s}),(0,l.jsx)("p",{className:"c-spot-manage-item__state",children:a})]})}),(0,l.jsx)("div",{className:"col-4",children:(0,l.jsxs)("div",{className:"c-spot-manage-item__head",children:[(0,l.jsx)("div",{className:"c-spot-manage-item__circle"}),(0,l.jsx)("p",{className:"c-spot-manage-item__state",children:!0===t?r:o})]})})]})}),(0,l.jsx)("ul",{children:n.map((e,t)=>(0,l.jsx)("li",{children:e},t))})]})},H=e=>{var t,i,a,r,o,c,d,u,h,m;let{locale:A,dict:g}=e,{i18n:p}=f(),[w,v]=(0,s.useState)([]),[C,x]=(0,s.useState)([]),[y,H]=(0,s.use
1State)(""),L=null==g||null==(a=g.Homepage)||null==(i=a.Info)||null==(t=i.Visit)?void 0:t.SpotManageModal,V=(null==L?void 0:L.CaveTitle)||"åéæé",E=(null==L?void 0:L.CaveHeaderArea)||"åç«¿é",B=(null==L?void 0:L.CaveHeaderOpenHours)||"éæ¾æé",k=(null==L?void 0:L.CaveName)||"åæµ·åé",R=new Date,I="".concat(R.getFullYear(),"-").concat(String(R.getMonth()+1).padStart(2,"0"),"-").concat(String(R.getDate()).padStart(2,"0"));(0,s.useEffect)(()=>{H(window.location.origin)},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=(await N.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/common/noticeInfo"),{},{headers:{"Accept-Language":A||"zh-TW"},cache:"no-store",locale:A})).data.map(e=>({safe:!0,area:e.area,wind:e.windSpeed,spot:e.list}));v(e)}catch(e){console.error("Fetch error:",e)}})(),(async()=>{try{var e;let{data:t}=await N.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/Common/beihaiTunnelTide?isToday=true"),{},{headers:{"Accept-Language":A||"zh-TW"},cache:"no-store",locale:A});x([{title:V,th:[E,B],td:[[k,(null==(e=t[0])?void 0:e.openingHours.replaceAll(B,"").replaceAll("éæ¾æé","").replace(/<br\s*\/?>/g,"\n"))||"--"]]}])}catch(e){console.error("cave fetch error:",e)}})()},[p.language,A,V,E,B,k]);let U={islink:!0,linkto:"https://www.cwa.gov.tw/V8/C/P/Warning/W25.html",newwindow:!0,text:(null==L?void 0:L.Source)||"è³æä¾æºï¼äº¤éé¨ä¸å¤®æ°£è±¡ç½²ï¼",icon:(0,l.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1 13.167V3.83301C1.00009 3.21429 1.24609 2.6211 1.68359 2.18359C2.1211 1.74609 2.71429 1.50009 3.33301 1.5H6.66699L6.76855 1.50488C7.27299 1.55592 7.66699 1.9821 7.66699 2.5C7.66699 3.0179 7.27299 3.44408 6.76855 3.49512L6.66699 3.5H3.33301C3.24472 3.50009 3.16009 3.53522 3.09766 3.59766C3.03522 3.66009 3.00009 3.74472 3 3.83301V13.167C3.00009 13.2553 3.03522 13.3399 3.09766 13.4023C3.16009 13.4648 3.24472 13.4999 3.33301 13.5H12.667C12.7553 13.4999 12.8399 13.4648 12.9023 13.4023C12.9648 13.3399 12.9999 13.2553 13 13.167V9.83301C13.0002 9.28087 13.4478 8.83301 14 8.83301C14.5522 8.83301 14.9998 9.28087 15 9.83301V13.167C14.9999 13.7857 14.7539 14.3789 14.3164 14.8164C13.8789 15.2539 13.2857 15.4999 12.667 15.5H3.33301C2.71429 15.4999 2.1211 15.2539 1.68359 14.8164C1.24609 14.3789 1.00009 13.7857 1 13.167ZM15 5.83301C15 6.38529 14.5523 6.83301 14 6.83301C13.4477 6.83301 13 6.38529 13 5.83301V4.91406L9.70703 8.20703C9.31651 8.59756 8.68349 8.59756 8.29297 8.20703C7.90244 7.81651 7.90244 7.18349 8.29297 6.79297L11.5859 3.5H10.667C10.1147 3.5 9.66699 3.05228 9.66699 2.5C9.66699 1.94772 10.1147 1.5 10.667 1.5H14L14.1025 1.50488C14.6067 1.55621 15 1.98232 15 2.5V5.83301Z",fill:"white"})}),theme:"secondary",hasmodal:!1,modaltarget:"",otherClass:""},T={islink:!0,linkto:"".concat(y,"/").concat(A,"/service/beihai-tunnel"),newwindow:!0,text:(null==L?void 0:L.MoreInfo)||"æ´å¤åéè¨æ¯",icon:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})}),theme:"secondary",hasmodal:!0,modaltarget:"#spot-manage",otherClass:""};return(0,l.jsx)("div",{className:"modal fade modal-spot-manage",id:"spot-manage",tabIndex:-1,"aria-labelledby":"spot-manage-label","aria-hidden":"true",children:(0,l.jsx)("div",{className:"modal-dialog modal-xl",children:(0,l.jsxs)("div",{className:"modal-content",children:[(0,l.jsxs)("div",{className:"modal-header d-block",children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,l.jsx)("div",{className:"modal-title fs-5",id:"spot-manage-label",children:(null==g||null==(d=g.Homepage)||null==(c=d.Info)||null==(o=c.Visit)||null==(r=o.Buttons)?void 0:r.Control)||"æ¯åéæ¾æ¥è©¢"}),(0,l.jsx)(j.default,{})]}),(0,l.jsxs)("p",{className:"mb-0",style:{paddingTop:"20px"}
1,children:[(null==g||null==(m=g.Homepage)||null==(h=m.Info)||null==(u=h.Visit)?void 0:u.ControlUpdatedAt)||"è³ææ´æ°æé"," : ",I]})]}),(0,l.jsxs)("div",{className:"modal-body",children:[(0,l.jsxs)("div",{className:"spot-manage__item mb-4",children:[(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)("div",{className:"info-title",children:(null==L?void 0:L.SectionTitle)||"æ¯å管å¶"}),(0,l.jsx)("p",{className:"info-intro text-sm text-gray-600",children:(null==L?void 0:L.SectionIntro)||"é£é¢¨é10ç´ï¼å«ï¼ä»¥ä¸æé·æµªç¼çæï¼ä»¥ä¸æ¯ååééï¼"})]}),(0,l.jsx)("div",{className:"row",children:w.map((e,t)=>(0,l.jsx)("div",{className:"col-lg-3 col-md-6 mb-3",children:(0,l.jsx)(S,{...e,windLabel:null==L?void 0:L.WindLevel,openLabel:null==L?void 0:L.StatusOpen,closeLabel:null==L?void 0:L.StatusClose})},t))}),(0,l.jsx)(n.default,{...U})]}),(0,l.jsxs)("div",{className:"spot-manage__item",children:[(0,l.jsx)("div",{className:"row",children:C.map((e,t)=>(0,l.jsx)("div",{className:"col-lg-3 col-md-6 mb-3",children:(0,l.jsx)(b,{...e})},t))}),(0,l.jsx)(n.default,{...T})]})]})]})})})},L={src:e.i(74913).default,width:24,height:25,blurWidth:0,blurHeight:0},V={src:e.i(439).default,width:24,height:25,blurWidth:0,blurHeight:0},E={src:e.i(10763).default,width:24,height:25,blurWidth:0,blurHeight:0},B={src:e.i(49272).default,width:24,height:25,blurWidth:0,blurHeight:0},k={src:e.i(49507).default,width:24,height:25,blurWidth:0,blurHeight:0},R={src:e.i(62287).default,width:24,height:24,blurWidth:0,blurHeight:0},I={src:e.i(59923).default,width:24,height:24,blurWidth:0,blurHeight:0},U={src:e.i(96771).default,width:24,height:24,blurWidth:0,blurHeight:0},T=e=>{let{locale:t,dict:r}=e,[o,c]=(0,s.useState)({temperature:0,visibility:0,precipitationProbability:0,uvLevel:0,airQualityIndex:0});(0,s.useEffect)(()=>{N.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/common/cwbInfo"),{},{headers:{"Accept-Language":t||"zh-TW"},cache:"no-store",locale:t}).then(e=>{c(e.data)})},[t]);let d={title:null==r?void 0:r.Homepage.Info.Weather.Title,subtitle:null==r?void 0:r.Homepage.Info.Weather.Subtitle},u=[{icon:L.src,text:(0,l.jsxs)("p",{children:[null==r?void 0:r.Homepage.Info.Weather.Temperature.Title," ",(0,l.jsxs)("span",{children:[o.temperature,"ºC"]})]})},{icon:V.src,text:(0,l.jsxs)("p",{children:[null==r?void 0:r.Homepage.Info.Weather.Fog.Title,(0,l.jsx)("span",{children:o.visibility})," "]})},{icon:E.src,text:(0,l.jsxs)("p",{children:[null==r?void 0:r.Homepage.Info.Weather.Rain.Title," ",(0,l.jsx)("span",{children:o.precipitationProbability})]})},{icon:B.src,text:(0,l.jsxs)("p",{children:[null==r?void 0:r.Homepage.Info.Weather.UV.Title,(0,l.jsx)("span",{children:o.uvLevel})]})},{icon:k.src,text:(0,l.jsxs)("p",{children:[null==r?void 0:r.Homepage.Info.Weather.Air.Title," ",(0,l.jsx)("span",{children:o.airQualityIndex})]})}],h={islink:!0,linkto:"https://www.cwa.gov.tw/V8/C/W/County/County.html?CID=09007",text:null==r?void 0:r.Homepage.Info.Weather.Button,title:"".concat((null==r?void 0:r.Homepage.Info.Weather.Button)||"æ´å¤è³è¨","ï¼").concat(d.title||"æ
éæ°£è±¡"),newwindow:!0,icon:(0,l.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1 13.167V3.83301C1.00009 3.21429 1.24609 2.6211 1.68359 2.18359C2.1211 1.74609 2.71429 1.50009 3.33301 1.5H6.66699L6.76855 1.50488C7.27299 1.55592 7.66699 1.9821 7.66699 2.5C7.66699 3.0179 7.27299 3.44408 6.76855 3.49512L6.66699 3.5H3.33301C3.24472 3.50009 3.16009 3.53522 3.09766 3.59766C3.03522 3.66009 3.00009 3.74472 3 3.83301V13.167C3.00009 13.2553 3.03522 13.3399 3.09766 13.4023C3.16009 13.4648 3.24472 13.4999 3.33301 13.5H12.667C12.7553 13.4999 12.8399 13.4648 12.9023 13.4023C12.9648 13.3399 12.9999 13.2553 13 13.167V9.83301C13.0002 9.28087 13.4478 8.83301 14 8.83301C14.5522 8.83301 14.9998 9.28087 15 9.83301V13.167C14.9999 13.7857 14.7539 14.3789 14.3164 14.8164C13.8789 15.2539 13.2857 15.4999 12.667 15.5H3.33301C2.71429 15.4999 2.1211 15.2539 1.68359 14.8164C1.24609 14.3789 1.00009 13.7857 1 13.167ZM15 5.83301C15 6.38529 14.5523 6.83301 14 6.83301C13.4477 6.83301 13 6.38529 13 5.83301V4.91406L9.70703 8.20703C9.31651 8.59756 8.68349 8.59756 8.29297 8.20703C7.90244 7.81651 7.90244 7.
118349 8.29297 6.79297L11.5859 3.5H10.667C10.1147 3.5 9.66699 3.05228 9.66699 2.5C9.66699 1.94772 10.1147 1.5 10.667 1.5H14L14.1025 1.50488C14.6067 1.55621 15 1.98232 15 2.5V5.83301Z",fill:"white"})}),theme:"primary",hasmodal:!1,modaltarget:"",otherClass:""},m={title:null==r?void 0:r.Homepage.Info.Visit.Title,subtitle:null==r?void 0:r.Homepage.Info.Visit.Subtitle},A=[{icon:R.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Status.Best})},{icon:I.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Status.Medium})},{icon:U.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Status.Busy})}],g=[{icon:R.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Center.Dongyin})},{icon:R.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Center.Began})},{icon:R.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Center.Nangan})},{icon:R.src,text:(0,l.jsx)("p",{children:null==r?void 0:r.Homepage.Info.Visit.Center.Dongju})}],p=[{islink:!1,linkto:"/",newwindow:!1,text:null==r?void 0:r.Homepage.Info.Visit.Buttons.Tide,icon:(0,l.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M11.3333 10.5476C11.7208 10.5476 12.0197 10.615 12.2721 10.724C12.4575 10.8041 12.6103 10.9037 12.7415 10.9981L12.8658 11.0899L12.9153 11.1355C13.0185 11.251 13.0302 11.4268 12.9342 11.556C12.838 11.6853 12.6658 11.7253 12.5253 11.6595L12.4674 11.6244L12.2389 11.4616C12.1651 11.4136 12.0908 11.3718 12.0077 11.336C11.8468 11.2665 11.639 11.2142 11.3333 11.2142C11.0429 11.2142 10.8378 11.2654 10.6731 11.336C10.5026 11.409 10.3633 11.5073 10.1939 11.6283C10.0301 11.7453 9.83578 11.8855 9.58978 11.9909C9.33787 12.0989 9.04275 12.1667 8.6666 12.1667C8.27903 12.1667 7.98021 12.0993 7.7278 11.9903C7.48073 11.8835 7.29152 11.7416 7.13405 11.6244C6.97168 11.5036 6.84053 11.4078 6.67441 11.336C6.51349 11.2665 6.3057 11.2142 5.99993 11.2142C5.70957 11.2142 5.50449 11.2654 5.33978 11.336C5.16928 11.409 5.02996 11.5073 4.86061 11.6283C4.69677 11.7453 4.50245 11.8855 4.25644 11.9909C4.00454 12.0989 3.70942 12.1667 3.33327 12.1667C2.9457 12.1667 2.64687 12.0993 2.39446 11.9903C2.1474 11.8835 1.95819 11.7416 1.80071 11.6244C1.65327 11.5145 1.62261 11.3058 1.73235 11.1582C1.84225 11.0105 2.05145 10.98 2.19915 11.0899C2.36153 11.2107 2.49267 11.3065 2.65879 11.3783C2.81971 11.4478 3.0275 11.5 3.33327 11.5C3.62365 11.5 3.8287 11.4489 3.99342 11.3783C4.16393 11.3052 4.30322 11.207 4.47259 11.086C4.63643 10.9689 4.83074 10.8288 5.07676 10.7233C5.32866 10.6154 5.62378 10.5476 5.99993 10.5476C6.3875 10.5476 6.68633 10.615 6.93873 10.724C7.18582 10.8307 7.375 10.9727 7.53248 11.0899C7.69486 11.2107 7.826 11.3065 7.99212 11.3783C8.15304 11.4478 8.36083 11.5 8.6666 11.5C8.95698 11.5 9.16203 11.4489 9.32676 11.3783C9.49727 11.3052 9.63655 11.207 9.80592 11.086C9.96977 10.9689 10.1641 10.8288 10.4101 10.7233C10.662 10.6154 10.9571 10.5476 11.3333 10.5476ZM11.3333 7.6908C11.7208 7.6908 12.0197 7.75755 12.2721 7.86658C12.4576 7.94671 12.6102 8.04686 12.7415 8.14132L12.8658 8.23246L12.9153 8.27804C13.0187 8.39364 13.0304 8.56998 12.9342 8.69926C12.838 8.82849 12.6657 8.86798 12.5253 8.80212L12.4674 8.76762L12.2389 8.60486C12.165 8.55676 12.0908 8.51446 12.0077 8.47856C11.8468 8.40904 11.639 8.35746 11.3333 8.35746C11.0428 8.35746 10.8379 8.40862 10.6731 8.47921C10.5026 8.5523 10.3634 8.65051 10.1939 8.77153C10.0301 8.88854 9.83573 9.02805 9.58978 9.1335C9.33787 9.24146 9.04275 9.30929 8.6666 9.30929C8.27908 9.30929 7.98019 9.24253 7.7278 9.1335C7.48071 9.02675 7.29154 8.8848 7.13405 8.76762C6.97157 8.64673 6.84063 8.55037 6.67441 8.47856C6.51349 8.40904 6.30568 8.35746 5.99993 8.35746C5.70949 8.35746 5.50452 8.40862 5.33978 8.47921C5.16922 8.5523 5.03004 8.65051 4.86061 8.77153C4.69679 8.88854 4.5024 9.02805 4.25644 9.1335C4.00454 9.24146 3.70942 9.30929 3.33327 9.30929C2.94574 9.30929 2.64685 9.24253 2.39446 9.1335C2.20898 9.05337 2.05628 8.95322 1.92506 8.85876L1.80071 8.76762L1.75123 8.72205C1.64782 8.60644 1.63616 8.4301 1.73235 8.30082C1.82857 8.17159 2.00078 8.13211 2.1412
11 8.19796L2.19915 8.23246L2.42767 8.39522C2.50153 8.44332 2.57569 8.48562 2.65879 8.52153C2.81971 8.59104 3.02751 8.64262 3.33327 8.64262C3.62371 8.64262 3.82868 8.59146 3.99342 8.52087C4.16398 8.44778 4.30316 8.34958 4.47259 8.22856C4.6364 8.11154 4.8308 7.97203 5.07676 7.86658C5.32866 7.75862 5.62378 7.6908 5.99993 7.6908C6.38745 7.6908 6.68634 7.75755 6.93873 7.86658C7.18582 7.97333 7.375 8.11528 7.53248 8.23246C7.69496 8.35335 7.8259 8.44972 7.99212 8.52153C8.15304 8.59104 8.36085 8.64262 8.6666 8.64262C8.95704 8.64262 9.16201 8.59146 9.32676 8.52087C9.49731 8.44778 9.6365 8.34958 9.80592 8.22856C9.96974 8.11154 10.1641 7.97203 10.4101 7.86658C10.662 7.75862 10.9571 7.6908 11.3333 7.6908ZM11.3333 4.83337C11.7208 4.83337 12.0197 4.90076 12.2721 5.00981C12.5191 5.11655 12.7083 5.25852 12.8658 5.37569C13.0133 5.48561 13.0439 5.69423 12.9342 5.84184C12.8243 5.98953 12.6151 6.02009 12.4674 5.9102C12.305 5.78938 12.1739 5.69357 12.0077 5.62179C11.8468 5.55226 11.639 5.50004 11.3333 5.50004C11.0429 5.50004 10.8378 5.55122 10.6731 5.62179C10.5026 5.69486 10.3633 5.79313 10.1939 5.9141C10.0301 6.03114 9.8358 6.17127 9.58978 6.27673C9.33787 6.38469 9.04275 6.45251 8.6666 6.45251C8.27903 6.45251 7.98021 6.38513 7.7278 6.27608C7.48071 6.16933 7.29153 6.02737 7.13405 5.9102C6.97167 5.78938 6.84053 5.69357 6.67441 5.62179C6.51349 5.55226 6.3057 5.50004 5.99993 5.50004C5.70955 5.50004 5.5045 5.55122 5.33978 5.62179C5.16926 5.69486 5.02998 5.79313 4.86061 5.9141C4.69676 6.03114 4.50246 6.17127 4.25644 6.27673C4.00454 6.38469 3.70942 6.45251 3.33327 6.45251C2.9457 6.45251 2.64687 6.38513 2.39446 6.27608C2.20907 6.19599 2.05624 6.09641 1.92506 6.00199L1.80071 5.9102L1.75123 5.86462C1.64799 5.74906 1.63633 5.57326 1.73235 5.44405C1.82853 5.31479 2.00077 5.27474 2.14121 5.34054L2.19915 5.37569L2.42767 5.53845C2.50145 5.58649 2.57578 5.62824 2.65879 5.6641C2.81971 5.73363 3.0275 5.78585 3.33327 5.78585C3.62363 5.78585 3.8287 5.73466 3.99342 5.6641C4.16392 5.59103 4.30324 5.49275 4.47259 5.37179C4.63643 5.25476 4.83075 5.11461 5.07676 5.00916C5.32866 4.9012 5.62378 4.83337 5.99993 4.83337C6.3875 4.83337 6.68633 4.90076 6.93873 5.00981C7.1858 5.11655 7.37501 5.25852 7.53248 5.37569C7.69485 5.4965 7.826 5.59232 7.99212 5.6641C8.15304 5.73363 8.36083 5.78585 8.6666 5.78585C8.95696 5.78585 9.16204 5.73466 9.32676 5.6641C9.49725 5.59103 9.63657 5.49275 9.80592 5.37179C9.96976 5.25476 10.1641 5.11461 10.4101 5.00916C10.662 4.9012 10.9571 4.83337 11.3333 4.83337Z",fill:"white"})}),theme:"primary",hasmodal:!0,modaltarget:"#tide-info",otherClass:""},{islink:!1,linkto:"/",newwindow:!1,text:null==r?void 0:r.Homepage.Info.Visit.Buttons.Control,icon:(0,l.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.50179 7.55439C2.50179 4.96705 4.60712 2.86239 7.19446 2.86239C9.78112 2.86239 11.8865 4.96705 11.8865 7.55439C11.8865 10.1417 9.78112 12.2471 7.19446 12.2471C4.60712 12.2471 2.50179 10.1417 2.50179 7.55439ZM14.8318 14.5271L11.7658 11.4691C12.6698 10.4151 13.2198 9.04905 13.2198 7.55439C13.2198 4.23239 10.5165 1.52905 7.19446 1.52905C3.87179 1.52905 1.16846 4.23239 1.16846 7.55439C1.16846 10.8771 3.87179 13.5804 7.19446 13.5804C8.54246 13.5804 9.78446 13.1297 10.7891 12.3784L13.8905 15.4711L14.8318 14.5271Z",fill:"white"})}),theme:"primary",hasmodal:!0,modaltarget:"#spot-manage",otherClass:""},{islink:!0,linkto:"/".concat(t,"/transport/flight-schedule"),newwindow:!1,text:null==r?void 0:r.Homepage.Info.Visit.Buttons.Traffic,icon:(0,l.jsxs)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_5708_32725)",children:(0,l.jsx)("path",{d:"M6.83317 4.01237C6.83317 2.67137 7.61084 2.00104 7.99984 1.83337C8.38884 2.00104 9.1665 2.67137 9.1665 4.01237V6.52671L14.3332 10.8334V12.1667L8.99984 9.50004V12.5L10.6665 15.1667L7.99984 14.1667L5.33317 15.1667L6.99984 12.5V9.50004L1.6665 12.1667V10.8334L6.83317 6.52671V4.01237Z",fill:"white",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5708_32725",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),theme:"primary",hasmodal:!1,modaltarget:"",otherClass:""}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"home-info",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"home-info__item",children:[(0,l.jsx)(i,{...d}),(0,l.jsxs)("div",{className:"d-lg-flex align-items-center gap-4",children:[(0,l.jsx)("div",{className:"d-flex align-items-center flex-wrap gap-3 mb-lg-0 mb-3",children:u.map((e,t)=>(0,l.jsx)(a,{icon:e.icon,text:e.text},t))}),(0,l.jsx)(n.default,{...h})]})]}),(0,l.jsxs)("div",{className:"home-info__item",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(i,{...m}),(0,l.jsx)("div",{className:"d-xl-flex d-none align-items-center gap-2 mt-2",children:A.map((e,t)=>(0,l.jsx)(a,{icon:e.icon,text:e.text},t))})]}),(0,l.jsxs)("div",{className:"d-flex align-items-center gap-4",children:[(0,l.jsx)("div",{className:"d-flex align-items-center flex-wrap gap-4",children:g.map((e,t)=>(0,l.jsx)(a,{icon:e.icon,text:e.text},t))}),(0,l.jsx)("p",{className:"home-info__remark d-xl-block d-none",children:null==r?void 0:r.Homepage.Info.Visit.Remark})]})]})]}),(0,l.jsx)("div",{className:"home-info__btns",children:p.map((e,t)=>(0,l.jsx)(n.default,{...e},t))})]})}),(0,l.jsx)(y,{dict:r}),(0,l.jsx)(H,{locale:t,dict:r})]})}},64154,e=>{"use strict";e.s(["default",()=>s],64154);var t=e.i(43476),l=e.i(71645);let i={src:e.i(37157).default,width:25,height:24,blurWidth:0,blurHeight:0};var a=e.i(94467),n=e.i(94575);let s=e=>{let{locale:s}=e,[r,o]=(0,l.useState)([]),[c,d]=(0,l.useState)(0),[u,h]=(0,l.useState)(0),[m,A]=(0,l.useState)(10),[g,p]=(0,l.useState)(!0),w=(0,l.useRef)(null),v="en-US"===s;if((0,l.useEffect)(()=>{(async()=>{try{let e=await a.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/marqueeNews"),{},{headers:{"Accept-Language":s||"zh-TW"},cache:"no-store",locale:s});(null==e?void 0:e.status)===200&&Array.isArray(e.data)&&e.data.length>0?o(e.data):o([])}catch(e){console.error("Marquee fetch error:",e),o([{content:"ç®åæ«ç¡ææ°æ¶æ¯ï¼æ¬è«æå¾
æ´æ°ã"}])}})()},[s]),(0,l.useEffect)(()=>{var e;if(!w.current)return;let t=w.current,l=t.scrollWidth,i=(null==(e=t.parentElement)?void 0:e.clientWidth)||0;A((l+i)/100),t.style.setProperty("--text-width","".concat(l,"px")),t.style.setProperty("--container-width","".concat(i,"px"))},[u,c,r]),0===r.length)return null;let C=r[c];return(0,t.jsxs)("div",{className:"home-marquee",children:[(0,t.jsx)("div",{className:"home-marquee__icon",children:(0,t.jsx)("img",{src:i.src,alt:"","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",className:"home-marquee__toggle","aria-label":g?v?"Pause marquee":"æ«åè·é¦¬ç":v?"Play marquee":"ææ¾è·é¦¬ç","aria-pressed":!g,onClick:()=>p(e=>!e),children:g?v?"Pause":"æ«å":v?"Play":"ææ¾"}),(0,t.jsx)("div",{className:"home-marquee__container",children:(0,t.jsx)("div",{ref:w,className:"home-marquee__text",style:{animationName:"slideLeft",animationDuration:"".concat(m,"s"),animationTimingFunction:"linear",animationFillMode:"forwards",animationPlayState:g?"running":"paused"},onAnimationEnd:()=>{g&&(h(e=>e+1),d(e=>(e+1)%r.length))},children:C.url?(0,t.jsx)("a",{href:C.url,target:"_blank",rel:"noopener noreferrer","aria-label":(0,n.withNewWindowNotice)(C.content),title:(0,n.withNewWindowNotice)(C.content),onFocus:()=>p(!1),children:C.content}):C.content},"".concat(c,"-").concat(u))})]})}},93668,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(43476),l=e.i(71645),i=e.i(16038),a=e.i(93012),n=e.i(57773),s=e.i(94467);let r=e=>{var r,o,c,d,u,h,m,A;let{locale:g,dict:p}=e,[w,v]=(0,l.useState)([]),[C,x]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{try{let e=(await s.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/news?limit=4"),{},{headers:{"Accept-Language":g||"zh-TW"},cache:"no-store",locale:g})).data.list.map(e=>({title:e.title,date:e.publishDate,catagory:e.type,id:e.id}));v(e)}catch(e){console.error("Fetch error:",e),x("ç¡æ³åå¾ææ°æ¶æ¯")}})()},[g]);let f={islink:!0,linkto:"/".concat(g,"/news/1"),newwindow:!1,text:null==p||null==(o=p.Homepage)||null==(r=o.News)?void 0:r.Button,title:"".concat((null==p||null==(d=p.Homepage)||null==(c=d.News)?void 0:c.Button)||"æ´å¤è³è¨","ï¼").concat((null==p||null==(h=p.Homepage)||null==(u=h.News)?void 0:u.Title)||"ææ°æ¶æ¯"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})}),theme:"primary",hasmodal:!1,modaltarget:"",otherClass:""};return(0,t.jsxs)("section",{className:"home-news relative",children:[(0,t.jsxs)("div",{className:"home-news__title flex items-center justify-between mb-6",children:[(0,t.jsx)("h2",{className:"title text-2xl font-bold",children:null==p||null==(A=p.Homepage)||null==(m
1=A.News)?void 0:m.Title}),(0,t.jsx)("div",{className:"hidden xl:block",children:(0,t.jsx)("img",{src:n.default.src,alt:"","aria-hidden":"true",width:150,height:100})})]}),C&&(0,t.jsx)("p",{className:"text-red-500 text-sm mb-4",children:C}),(0,t.jsx)("div",{className:"home-news__content grid gap-6",children:w.length>0?w.map((e,l)=>(0,t.jsx)(i.default,{catagory:e.catagory,date:e.date,title:e.title,id:e.id,locale:g},l)):!C&&(0,t.jsx)("p",{className:"text-gray-500",children:"è¼å
¥ä¸..."})}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(a.default,{...f})})]})}},84635,e=>{"use strict";e.s(["default",()=>u]);var t=e.i(43476),l=e.i(71645),i=e.i(22016),a=e.i(80401);e.i(41983);var n=e.i(79053),s=e.i(86301),r=e.i(94467),o=e.i(4648),c=e.i(82948);let d=[{source:c.default.src,alt:"æµ·éæ·¨çæ´»ååç
§ 1"},{source:c.default.src,alt:"æµ·éæ·¨çæ´»ååç
§ 2"},{source:c.default.src,alt:"æµ·éæ·¨çæ´»ååç
§ 3"}],u=e=>{var u,h;let{locale:m,dict:A}=e,[g,p]=(0,l.useState)([]),[w,v]=(0,l.useState)(""),[C,x]=(0,l.useState)("ãä¾å»å®¢åºå°ãçå½±é³å¾µä»¶æ´»å");(0,l.useEffect)(()=>{(async()=>{try{var e;let t=await r.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/events?limit=3"),{},{headers:{"Accept-Language":m||"zh-TW"},cache:"no-store",locale:m}),l=(null==t||null==(e=t.data)?void 0:e.list)||[];if(l.length>0){let e=l.map(e=>{var t;return{source:(null==(t=e.image)?void 0:t.url)||c.default.src,alt:e.title||"ææ°æ´»å",id:e.id}});p(e),x(e[0].alt)}else p(d)}catch(e){console.error("Fetch error:",e),v("ç¡æ³åå¾ææ°æ´»å")}})()},[m]);let f=g.length?g:d;return(0,t.jsxs)("div",{className:"home-event relative",children:[(0,t.jsxs)("div",{className:"home-event__title flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"title text-2xl font-bold",children:null==A||null==(h=A.Homepage)||null==(u=h.Event)?void 0:u.Title}),(0,t.jsx)("img",{src:o.default.src,alt:"","aria-hidden":"true",className:"d-xl-block d-none"})]}),w&&(0,t.jsx)("p",{className:"text-red-600 mt-2",children:w}),(0,t.jsx)(a.Swiper,{modules:[n.Navigation,s.Pagination],spaceBetween:0,slidesPerView:1,pagination:{clickable:!0},navigation:!0,className:"arrow-fill mt-4",onSlideChange:e=>{var t;x((null==(t=f[e.activeIndex])?void 0:t.alt)||"")},children:f.map((e,l)=>(0,t.jsx)(a.SwiperSlide,{children:(0,t.jsx)(i.default,{href:"/".concat(m,"/activities/").concat(e.id),className:"home-event__swiper block relative",children:(0,t.jsx)("img",{src:e.source,alt:e.alt,className:"object-cover"})})},l))}),(0,t.jsx)("p",{className:"mt-4 text-center text-lg font-medium",children:C})]})}},54755,e=>{"use strict";e.s(["default",()=>V],54755),e.i(47167);var t=e.i(43476),l=e.i(71645),i=e.i(94467);let a=e=>{let{title:l,content:i}=e;return(0,t.jsxs)("div",{className:"home-spot__intro",children:[(0,t.jsx)("p",{className:"home-spot__intro-title",children:l}),(0,t.jsx)("p",{className:"home-spot__intro-content",children:i})]})};var n=e.i(19163),s=e.i(80401);e.i(41983);var r=e.i(79053),o=e.i(86301),c=e.i(22016);let d=e=>{let{linkto:l,picSource:i,picAlt:a,name:n,place:s,onFocus:r,onKeyDown:o}=e;return(0,t.jsxs)(c.default,{href:l,className:"c-home-spot-item",onFocus:r,onKeyDown:o,children:[(0,t.jsx)("img",{src:i,alt:"","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"c-home-spot-item__text",children:[(0,t.jsxs)("div",{className:"c-home-spot-item__title",children:[(0,t.jsx)("h3",{children:n}),(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})})]}),(0,t.jsxs)("div",{className:"c-home-spot-item__place",children:[(0,t.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4695 13.4951C10.9605 13.4951 9.7325 12.2681 9.7325 10.7591C9.7325 9.25012 10.9605 8.02212 12.4695 8.02212C13.9785 8.02212 15.2055 9.25012 15.2055 10.7591C15.2055 12.2681 13.9785 13.4951 12.4695 13.4951ZM18.0835 4.65212C16.5525 3.07312 14.5585 2.20312 12.4695 2.20312C10.3785 2.20312 8.3845 3.07313 6.8525 4.65313C5.2975 6.25712 4.4435 8.41212 4.5105 10.5661C4.6995 16.6701 11.8895 21.4231 12.1965 21.6221L12.4655 21.7971L12.7375 21.6251C13.0435 21.4311 20.2385 16.7931 20.4285 10.5651C20.4945 8.41213 19.6395 6.25612 18.0835 4.65212Z",fill:"#ffffff"})}),(0,t.jsx)("p",{children:s})]})]})]})},u=e=>{let{id:i,active:a,spotItem:n,onActivate:c}=e,u=(0,l.useRef)(null);return(0,t.jsx)("div",{className:a?"tab-pane fade show active":"tab-pane fade",id:"".concat(i,"-pane"),"data-spot-panel":i,role:"tabpanel","aria-labelledby":"".concat(i,"-tab"),hidden:!a,children:(0,t.jsx)(s.Swiper,{modules:[r.Navigation,o.Pagination],spaceBetween:16,slidesPerView:3,breakpoints:{0:{slidesPerView:1.8},576:{slidesPerView:3}},pagination:{clickable:!0},navigation:!0,className:"arrow-fill",onSwiper:e=>{u.current=e},children:n.map((e,l)=>(0,t.jsx)(s.SwiperSlide,{children:(0,t.jsx)(d,{...e,onFocus:()=>(e=>{var t;c(i),null==(t=u.current)||t.slideTo(e),(()=>{var e;let t=null==(e=u.current)?void 0:e.el;t&&(t.scrollLeft=0,requestAnimationFrame(()=>{t.scrollLeft=0}))})(),(()=>{var e;let t=null==(e=u.current)?void 0:e.el;if(!t)return;let l=()=>{let e=t.getBoundingClientRect(),l=window.scrollY+e.top-(window.innerHeight-e.height)/2;t.scrollLeft=0,window.scrollTo({top:Math.max(l,0),behavior:"auto"})};requestAnimationFrame(()=>{l(),requestAnimationFrame(()=>{l(),window.setTimeout(l,0)})})})()})(l)})},l))})})},h={src:e.i(66672).default,width:375,height:355,blurWidth:0,blurHeight:0},m={src:e.i(84701).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApElEQVR42mWNuw6CMBiFe/mFVmxAO3GNEghx8JLI7Ni4OBkmCCGd+jR9ZpFgIvHL2b5zchCawWPWQL00SXyt9bXv+/PXodAX6X0fPVwAVymVN01zn
1MS42DzzqFOH8MUo4RhjxBijyHEc6q1ARMJLt0Hg4+lhxhhz69r2VFWV/CwWWGvVMAyXLMvEnwQAEsexKMtyJ6XkhJBlg3MORVEEdV2Hv/INc1oSoDGfVpgAAAAASUVORK5CYII="},A={src:e.i(31837).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApUlEQVR42lWOSwqDMBRFk/ipCUFMxUKaItYfSMF24Bp01lECnSSDDFxA19FFt+kPPZMH77z7uAB8gRACSmmY53lsrb0YY/qfA5xzOk1TiTH2x3EslVLdW7iE1rqXUnaEkMB9iaLIAwGCIWOMHIsiec2NE39kxedb385txk6L9Yf7uXxcq7057DKxSjk8CH0hRNw0zTZNU4wQWl+4hnVdJ8Mw8KV8AqqCEjGqqLtjAAAAAElFTkSuQmCC"},g={src:e.i(37105).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApUlEQVR42mXMTQuCMBzH8W3NPdi0bB1aAyVRhoceIE/dS7qWxwlCF6H34muuRUXS9/r5/38AvIMQAiEEWYy5tjtzvxar28eAUkpUVZUySr3Dcn48F+nlBe6jaZpNXdeF7/sefA4xxigghIzCMKRJkkyiKKJu/lvXdXtr7doYIwfg6vv+1LbtNo7j4A8xxkhrHeR5PpNScoTQ8IJzjrMsm5ZlqX7xAWlDEsMlWXr9AAAAAElFTkSuQmCC"},p={src:e.i(16215).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAoklEQVR42mXOSw6CMBCA4baUoZBaXgvERApsEI3Exx3
1KBWAHLFhxmp5Za5SE+G+/mckg9A1jjDjnkGWZmOf5Nk1T8zOUpilv27Z0XZcqpcq+7+sPmI1xHJuu62rP82xzhTFmIQCwhBCOlNIPw9AxsLYsy3MYhmtVVfEGTFpr9X7gnud58IeUUnKMAnk6JBcf7JhgRDYDDIAV+6Q4R7sHwXjFF0t8E6INJNcTAAAAAElFTkSuQmCC"},w={src:e.i(92608).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAqUlEQVR42lWMzQqCQBRGx5mr5phYqNBMI9iPzqqIwm1LCaSFtFRcCIJP4zM3E/3Y4a7u4XwIvTHUUSBuLITfdd2pbdvjxyHme/E14TcbwC7Lcl9VlXwJVczvO94UG/aYEexQSs0oihxkWRZxTfCSYLFdc74iiu/cMAyXpq4PMssCQ4GmjONY9H1/TtN0CQD4T+qHEMKTUgZhGDoY41+tpxhjri7zPGdT+QTfsxO8yqW+WQAAAABJRU5ErkJggg=="},v={src:e.i(1284).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAp0lEQVR42lWOTQ6CMBCFOy0QqQ1JkU2t1gRiwZigG87AipVduKGLmnAAz+GhbY0/+C3nm3lvEHoDAIgxliilMufc2VrbfhwSQrC+78s0TaNhGPbGmOYlwsU4jq0fHCilcVjI83yBYgwJ55xqrVdSSkYIgW+cqcR0bfWkC36EUDznfiofl2Z3q9S2jDx/kgBEGymzuq4LD8UY/65Dkv906Tt513XruXwCGWkTVf8Ie2IAAAAASUVORK5CYII="},C={src:e.i(84843).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAqElEQVR42lWOuw6CMBiFe4G2QG0gMohlkQQaBo3R8AIOEhMnZSyTadLEd+kza403zvh/+c5/AHgHQgg452SRRFJv1f3arm4fBoqi4H3fV4zS8FDJ86mtLi/gjXEcN8MwtHEch4wxmqWpAIQQLISgdV1nUkqOMYbfOmvtXmu9VkrN/d9JnHNHY8zOm0EQoAn0h7IsZ97M8zxCCP10X/VcmjRNk3Vdt/yHD9qPE+RFxd9eAAAAAElFTkSuQmCC"},x={src:e.i(99309).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAq0lEQVR42lXNTQ6CMBAF4A4t5Se1oRCJFSVG0iBRiQl3kBU72AELNnAaziwYhfCW8828QegXAECMMRqGIe+67tW2bfo3JKVkeZ5fLcsiRVGoqqqSL8wXTdOkZVkmtm3rpmkSIYSBKKWYc24opUQQBAxjDEvdMAxZXdfPOI69+e8m4zi++77PbhMSQrQNzoOz61ySk3w4hu5pgNaFqQoO/t6PjjK6u7tMA1jwA7UfFLlWJ8ecAAAAAElFTkSuQmCC"},f={src:e.i(117).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApUlEQVR42lWOsQ6CMBRFS/ugIBJMmw5Qmqg0dNKYyOyoMjiQuKEMTHwN32wxSuDkbefdm4vQD8feCkiosizuuu7Utu3x71ASR+qyTe8UgFZVldd1bb7CJtaPXL5ve/n0gQSUUsIY85HneSR0IdoJppXKUtcy1fV9f341zcEYwx0LmjMMw3UcoLXeEEKWEgCwlDIqioJxzgOM8fJBCBGMybIsk7n8ANdTE403k9zQAAAAAElFTkSuQmCC"},b={src:e.i(35207).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApUlEQVR42lWN0QqCMBiF908dbCxlaBdDJ2FtWIF14TsIXnWR0I0SXvgAPUcP3RYl+l2ej3MOQj8AAHHOSZ7n4TiO12EYqr9DUkreNE1BKfXbtj10XXf8Ctfo+76ywYkxFhBCcBRFBAUYiBCClWUZK6U2Tsxz972cHpWZzFacwR0veV2K901nz0JlO8+ykh6An6ZpaIyJLRRjvG4nSUK11qKua7mUHwyLExy/NI+AAAAAAElFTkSuQmCC"},j={src:e.i(96796).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApklEQVR42lWNsQ6CMBRFSwtFsBClDDYNMSrQYKIhkd1NwkzYyoILif/Sb7Y1auiZ3st5714AvjiOAwgheLcOuKzFq68Oz58DjDHStu1x5fvefc+6rjr1H2E+xnG8DsNwDsPQM8RxTADGGOnBF0IkWZZFeof/uHmeb1LKi5bU9FoopR7TNNV5nm8QQrZ1XRdyzqOyLBNKaQAhtA/SNA2Kotg2TcOW8g3NOxOrT6bhwgAAAABJRU5ErkJggg=="},N={src:e.i(73669).default,width:1224,height:1367,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAApklEQVR42lWNywqDMBBF8zKipMGYjSnEghTTSivF/kNduNaVutCNX+M3N5Yq5KxmODP3AvAHQggYYzRNUz5N02scx3J3QCnF6rrOgiAgTdNcu667/8T2MQxD2bZtEYahZ0GccwoopdgOvjEm1lqf7I6OuGVZ3n3fP62UW6/Duq6feZ4rk+cSY+xaQgjScXS5nZNH5HsSQYCcAymEyFSSFYJVCMJDfgGq+xSE9KlblgAAAABJRU5ErkJggg=="},y=[1431,1430,1440,1433,1428,1429],S=[1447,1443,1453,1446,1456,1450],H=[1457,1459,1458,1479,1474,1478,1467],L=[1504,1503,1490,1488,1492,1495],V=e=>{var s,r,o,c,d,V,E,B,k,R,I,U,T,M,F,D,_,W,O,Q,P,Y,G,K,z,Z,q;let{locale:X,dict:J}=e,[$,ee]=(0,l.useState)([]),[et,el]=(0,l.useState)(!0),ei=(0,l.useRef)({}),[ea,en]=(0,l.useState)("east"),[es,er]=(0,l.useState)("east"),eo="home-spot home-spot--".concat(ea),ec=e=>{en(e),er(e)},ed=[{id:"east",areaId:1,dictKey:"Dongyin",name:(null==J||null==(o=J.Homepage)||null==(r=o.Spot)||null==(s=r.Area)?void 0:s.Dongyin)||"æ±å¼"},{id:"north",areaId:2,dictKey:"Began",name:(null==J||null==(V=J.Homepage)||null==(d=V.Spot)||null==(c=d.Area)?void 0:c.Began)||"åç«¿"},{id:"south",areaId:3,dictKey:"Nangan",name:(null==J||null==(k=J.Homepage)||null==(B=k.Spot)||null==(E=B.Area)?void 0:E.Nangan)||"åç«¿"},{id:"light",areaId:4,dictKey:"Jukuang",name:(null==J||null==(U=J.Homepage)||null==(I=U.Spot)||null==(R=I.Area)?void 0:R.Jukuang)||"æ±è"}],eu={title:null==J||null==(F=J.Homepage)||null==(M=F.Spot)||null==(T=M.Explore)?void 0:T.Title,content:null==J||null==(W=J.Homepage)||null==(_=W.Spot)||null==(D=_.Explore)?void 0:D.Content},eh={title:null==J||null==(P=J.Homepage)||null==(Q=P.Spot)||null==(O=Q.Adventure)?void 0:O.Title,content:null==J||null==(K=J.Homepage)||null==(G=K.Spot)||null==(Y=G.Adventure)?void 0:Y.Content};return((0,l.useEffect)(()=>{!async function(){try{let e=async(e,t)=>(await Promise.all(e.map(async e=>{try{var l,a,n,s;let r="".concat("https://www.matsu-nsa.gov.tw/api","/attractions/").concat(e),o=await i.api.get(r,{},{headers:{"Accept-Language":X||"zh-TW"},cache:"no-store",locale:X}),c=null==(a=o.data)||null==(l=a.images)?void 0:l[0];return{linkto:"".concat(X,"/attractions/").concat(e),picSource:(null==c?void 0:c.url)||"/images/default.jpg",picAlt:(null==c?void 0:c.alt)||(null==(n=o.data)?void 0:n.title)||"",name:(null==(s=o.data)?void 0:s.title)||"",place:t}}catch(t){return console.error("[HomeSpot] fixed id fetch failed: ".concat(e),t),null}}))).filter(e=>null!==e),t=ed.map(async(t,l)=>{var a,n,s,r,o,c;let d=(null==J||null==(r=J.Homepage)||null==(s=r.Spot)||null==(n=s.Area)||null==(a=n[t.dictKey])?void 0:a.Title)||t.name;if("east"===t.id){let i=await e(y,d);return i.length?{id:t.id,active:0===l,name:d,item:i}:null}if("north"===t.id){let i=await e(S,d);return i.length?{id:t.id,active:0===l,name:d,item:i}:null}if("south"===t.id){let i=await e(H,d);return i.length?{id:t.id,active:0===l,name:d,item:i}:null}if("light"===t.id){let i=await e(L,d);return i.length?{id:t.id,active:0===l,name:d,item:i}:null}let u="".concat("https://www.matsu-nsa.gov.tw/api","/attractions?areaId=").concat(t.areaId,"&limit=6"),h=await i.api.get(u,{},{headers:{"Accept-Language":X||"zh-TW"},cache:"no-store",locale:X});if((null==h?void 0:h.status)!==200||!((null==(c=h.data)||null==(o=c.list)?void 0:o.length)>0))return null;{let e=h.data.list.map(e=>{var t,l;return{linkto:"".concat(X,"/attractions/").concat(e.id),picSource:(null==(t=e.image)?void 0:t.url)||"/images/default.jpg",picAlt:(null==(l=e.image)?void 0:l.alt)||e.title,name:e.title,place:d}});return{id:t.id,active:0===l,name:d,item:e}}}),l=(await Promise.all(t)).filter(e=>!!e);ee(l),l.length>0&&(en(l[0].id),er(l[0].id))}catch(e){console.error("Failed to fetch spot data:",e)}finally{el(!1)}}()},[J,X]),et)?(0,t.jsx)("div",{className:eo,children:(0,t.jsx)("div",{className:"container text-center py-5",children:(0,t.jsx)("p",{children:"Loading..."})})}):$.length?(0,t.jsx)("div",{className:eo,children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"home-sp
1ot__main",children:[(0,t.jsx)(a,{title:eu.title,content:eu.content}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"title",children:null==J||null==(Z=J.Homepage)||null==(z=Z.Spot)?void 0:z.Title}),(0,t.jsx)("ul",{className:"nav nav-tabs",id:"home-spot-tab",role:"tablist","aria-orientation":"horizontal",children:$.map((e,l)=>(0,t.jsx)(n.default,{id:e.id,active:e.id===es,name:e.name,controlsId:"".concat(e.id,"-pane"),useBootstrap:!1,tabIndex:e.id===es?0:-1,buttonRef:t=>{ei.current[e.id]=t},onClick:()=>{ec(e.id)},onKeyDown:e=>((e,t)=>{var l;if(!({ArrowLeft:!0,ArrowRight:!0,Home:!0,End:!0})[e.key]||!$.length)return;e.preventDefault();let i=$.length-1,a=t;"ArrowRight"===e.key?a=t===i?0:t+1:"ArrowLeft"===e.key?a=0===t?i:t-1:"Home"===e.key?a=0:"End"===e.key&&(a=i);let n=null==(l=$[a])?void 0:l.id;n&&(ec(n),requestAnimationFrame(()=>{var e;null==(e=ei.current[n])||e.focus()}))})(e,l)},l))}),(0,t.jsx)("div",{className:"tab-content",id:"home-spot-tabcontent",children:$.map((e,l)=>(0,t.jsx)(u,{id:e.id,active:e.id===es,spotItem:e.item,onActivate:e=>ec(e)},l))})]})]}),(0,t.jsxs)("div",{className:"home-spot__map d-lg-block d-none",children:[(0,t.jsx)(a,{title:eh.title,content:eh.content}),(0,t.jsx)("img",{src:(null==(q=({east:{"zh-TW":g,"en-US":C,jp:g,kr:j},north:{"zh-TW":m,"en-US":w,jp:m,kr:f},south:{"zh-TW":A,"en-US":v,jp:A,kr:b},light:{"zh-TW":p,"en-US":x,jp:p,kr:N}})[ea][X])?void 0:q.src)||h.src,alt:"馬ç¥å°å",width:300,height:330,style:{height:"auto"}})]})]})}):(0,t.jsx)("div",{className:eo,children:(0,t.jsx)("div",{className:"container text-center py-5",children:(0,t.jsx)("p",{children:"No data available."})})})}},43135,e=>{"use strict";e.s(["default",()=>c],43135);var t=e.i(43476),l=e.i(22016),i=e.i(71645),a=e.i(93012);let n={src:e.i(66182).default,width:291,height:32,blurWidth:0,blurHeight:0};var s=e.i(94467),r=e.i(83984);let o=[1,3],c=e=>{var c,d,u,h,m,A,g,p,w,v,C,x,f;let{locale:b,dict:j}=e,[N,y]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=!1,t=async e=>{let t="".concat("https://www.matsu-nsa.gov.tw/api","/liveStream/").concat(e),{list:l}=await s.api.get(t,{},{headers:{"Accept-Language":b||"zh-TW"},cache:"no-store",locale:b});return l.map(e=>({title:e.title,linkto:"/".concat(b,"/liveArticle/").concat(e.id)}))};return(async()=>{try{let l=await Promise.allSettled(o.map(e=>t(e))),i=l.flatMap(e=>"fulfilled"===e.status?e.value:[]);l.forEach((e,t)=>{"rejected"===e.status&&console.log("é¦é live å
ä»¶åå¾å表é¯èª¤ type ".concat(o[t]),e.reason)}),e||y(i.slice(0,5))}catch(e){console.log("é¦é live å
ä»¶åå¾å表é¯èª¤",e)}})(),()=>{e=!0}},[b]);let S={islink:!0,linkto:"/".concat(b,"/live"),newwindow:!1,text:null!=(C=null==j||null==(d=j.Homepage)||null==(c=d.Live)?void 0:c.Button)?C:"",title:(0,r.buildAccessibleActionLabel)(null!=(x=null==j||null==(h=j.Homepage)||null==(u=h.Live)?void 0:u.Button)?x:"è§ç峿影å",null!=(f=null==j||null==(A=j.Homepage)||null==(m=A.Live)?void 0:m.Title)?f:"Live馬ç¥ç¾æ¯å³æç"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})}),theme:"primary",hasmodal:!1,modaltarget:"",otherClass:""};return(0,t.jsxs)("div",{className:"home-live",children:[(0,t.jsx)("div",{className:"home-live__title",children:(0,t.jsxs)("div",{className:"gap-2 mb-4",children:[(0,t.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,t.jsx)("h2",{children:null==j||null==(p=j.Homepage)||null==(g=p.Live)?void 0:g.Title}),(0,t.jsx)("img",{src:n.src,alt:"","aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:"d-flex align-items-center gap-2",style:{float:"right"},children:[(0,t.jsx)("span",{className:"home-live__subtitle",children:null==j||null==(v=j.Homepage)||null==(w=v.Live)?void 0:w.Subtitle}),(0,t.jsx)("span",{className:"home-live__badge",children:"Live"})]})]})}),(0,t.jsx)("ul",{children:N.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsxs)(l.default,{href:e.linkto,children:[(0,t.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4695 13.4951C10.9605 13.4951 9.7325 12.2681 9.7325 10.7591C9.7325 9.25012 10.9605 8.02212 12.4695 8.02212C13.9785 8.02212 15.2055 9.25012 15.2055 10.7591C15.2055 12.2681 13.9785 13.4951 12.4695 13.4951ZM18.0835 4.65212C16.5525 3.07312 14.5585 2.20312 12.4695 2.20312C10.3785 2.20312 8.3845 3.07313 6.8525 4.65313C5.2975 6.25712 4.4435 8.41212 4.5105 10.5661C4.6995 16.6701 11.8895 21.4231 12.1965 21.6221L12.4655 21.7971L12.7375 21.6251C13.0435 21.4311 20.2385 16.7931 20.4285 10.5651C20.4945 8.41213 19.6395 6.25612 18.0835 4.65212Z",fill:"#AEAEAE"})}),(0,t.jsx)("span",{children:e.title})]})},i))}),(0,t.jsx)(a.default,{...S})]})}},21241,e=>{"use strict";e.s(["default",()=>a],21241);var t=e.i(43476);let l={src:e.i(57998).default,width:754,height:436,blurWidth:8,blurHeight:5,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAoElEQVR42k2NTwuCMByGt99yq+ZMazQWUoFmRZc6GGh/KDPyYFDHEDp2KL+DXz1P0Xt8nwce1KCMsbYw5TDwrb6rMRBA/xNyoGe7PPOi7OSt06OQWmEM+CdQOQr4JE6c7fOjwvyuVueLYSttONoF1ubIXKS3TlJW3bSsrKh4t/w44fNDZm+KF1X+FCEMAAZriuX1Qcfhvj7qAhDCnV7NyBdZOBIaUXC15wAAAABJRU5ErkJggg=="},i={src:e.i(96202).default,width:687,height:346,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAAAAAAAAAAAAAAAAAQDAwQZFBchFBARHgIBAQIAAAAAAA8RERE/QUJNOjw9Sj0/QkuWmKzFd3uJwElZZG0PFBcVABcgJCdqj6bDdJiv03Set9t/sMvraaPE7z56oL4GEhgYAAMFBwQSISkfFSEmIxksNTQTLjs8
1EC08PgcZIyMAAgMC1Rgeb5z+UJoAAAAASUVORK5CYII="},a=e=>{var a,n,s,r;let{dict:o}=e;return(0,t.jsxs)("div",{className:"home-travel",children:[(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"home-travel__text",children:[(0,t.jsx)("h2",{className:"travel-title",dangerouslySetInnerHTML:{__html:null==o||null==(n=o.Homepage)||null==(a=n.Travel)?void 0:a.Title}}),(0,t.jsx)("p",{children:null==o||null==(r=o.Homepage)||null==(s=r.Travel)?void 0:s.Content})]})}),(0,t.jsx)("img",{src:l.src,className:"home-travel__fish",alt:"","aria-hidden":"true"}),(0,t.jsx)("img",{src:i.src,className:"home-travel__boat",alt:"","aria-hidden":"true"})]})}},8161,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476),l=e.i(22016);let i=e=>{let{linkto:i,picSource:a,picAlt:n,title:s,content:r,days:o,hasDays:c,onFocus:d,onKeyDown:u}=e;return(0,t.jsxs)(l.default,{href:i||"#",className:"home-journey-item",onFocus:d,onKeyDown:u,children:[(0,t.jsx)("div",{className:"home-journey-item__pic",children:(0,t.jsx)("img",{src:a,alt:"","aria-hidden":"true",className:"object-cover w-full h-auto"})}),(0,t.jsxs)("div",{className:"home-journey-item__text",children:[(0,t.jsxs)("div",{className:"home-journey-item__title flex items-center justify-between",children:[(0,t.jsx)("h3",{children:s}),(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})})]}),(0,t.jsx)("p",{className:"home-journey-item__content",children:r}),c&&(0,t.jsxs)("div",{className:"home-journey-item__days flex items-center gap-2 mt-2",children:[(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7348 3.845V2.125H15.2348V6.675H14.2348V3.845H9.2648V2.125H7.7648V6.675H6.7648V3.845H3.1748V8.975H20.8248V3.845H16.7348Z",fill:"#5B5B5B"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6448 16.185V17.685H7.1448L7.1348 16.185H8.6448ZM8.6448 12.595V14.095H7.1448L7.1348 12.595H8.6448ZM12.7548 16.185V17.685H11.2548L11.2448 16.185H12.7548ZM12.7548 12.595V14.095H11.2548L11.2448 12.595H12.7548ZM16.8648 16.185V17.685H15.3648L15.3548 16.185H16.8648ZM16.8648 12.595V14.095H15.3648L15.3548 12.595H16.8648ZM3.1748 21.875H20.8248V10.475H3.1748V21.875Z",fill:"#5B5B5B"})]}),(0,t.jsx)("p",{children:o})]})]})]})}},67792,e=>{"use strict";e.s(["default",()=>d],67792);var t=e.i(43476),l=e.i(71645),i=e.i(19163),a=e.i(80401);e.i(41983);var n=e.i(79053),s=e.i(86301),r=e.i(8161);let o=e=>{let{id:i,active:o,journeyItem:c,onActivate:d}=e,u=(0,l.useRef)(null),h=()=>{var e;let t=null==(e=u.current)?void 0:e.el;if(!t)return;let l=t.getBoundingClientRect(),i=window.scrollY+l.top-(window.innerHeight-l.height)/2;t.scrollLeft=0,window.scrollTo({top:Math.max(i,0),behavior:"auto"})};return(0,t.jsx)("div",{className:o?"tab-pane fade show active":"tab-pane fade",id:"".concat(i,"-pane"),"data-recommend-panel":i,role:"tabpanel","aria-labelledby":"".concat(i,"-tab"),hidden:!o,children:(0,t.jsx)(a.Swiper,{modules:[n.Navigation,s.Pagination],spaceBetween:32,slidesPerView:3,breakpoints:{0:{slidesPerView:1.4,spaceBetween:16},768:{slidesPerView:3,spaceBetween:32}},pagination:{clickable:!0},navigation:!0,className:"arrow-fill",onSwiper:e=>{u.current=e},children:c.map((e,l)=>(0,t.jsx)(a.SwiperSlide,{children:(0,t.jsx)(r.default,{...e,onFocus:()=>(e=>{var t;d(i),null==(t=u.current)||t.slideTo(e),requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h(),window.setTimeout(h,0)})})})(l)})},l))})})};var c=e.i(94467);let d=e=>{var a,n;let{locale:s,dict:r}=e,[d,u]=(0,l.useState)([]),[h,m]=(0,l.useState)(!0),[A,g]=(0,l.useState)(null),[p,w]=(0,l.useState)(""),v=(0,l.useRef)({}),C=e=>{w(e)},x=async()=>{let e=await c.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/trips/types"),{},{headers:{"Accept-Language":s||"zh-TW"},cache:"no-store",locale:s});if(200===e.status)return e.data;throw Error("ç¡æ³åå¾è¡ç¨é¡å¥è³æ")},f=async e=>{var t;let l="".concat("https://www.matsu-nsa.gov.tw/api","/trips?types=").concat(e,"&limit=6"),i=await c.api.get(l,{},{headers:{"Accept-Language":s||"zh-TW"},cache:"no-store",locale:s});return 200===i.status&&(null==(t=i.data)?void 0:t.list)?i.data.list:[]};return((0,l.useEffect)(()=>{(async()=>{try{let e=await x(),t=await Promise.all(e.map(async(e,t)=>{let l=await f(e.id);return{id:"type-".concat(e.id),active:0===t,name:e.title,item:l.map(e=>{var t,l,i,a,n;return{linkto:"/".concat(s,"/trips/").concat(e.id),picSource:(null==(t=e.image)?void 0:t.url)||"/images/default-trip.jpg",picAlt:(null==(l=e.image)?void 0:l.alt)||"è¡ç¨å°é¢å",title:e.title,content:e.content,days:(null==(a=e.tripDays)||null==(i=a[0])?void 0:i.title)||"",hasDays:!!(null==(n=e.tripDays)?void 0:n.length)}})}}));u(t),t.length>0&&w(t[0].id)}catch(e){g(e.message||"è³æè¼å
¥å¤±æ")}finally{m(!1)}})()},[s]),h)?(0,t.jsx)("div",{className:"home-recommend text-center py-5",children:(0,t.jsx)("p",{children:"Loading..."})}):A?(0,t.jsx)("div",{className:"home-recommend text-center text-danger py-5",children:(0,t.jsxs)("p",{children:["Failed to load: ",A]})}):(0,t.jsx)("div",{className:"home-recommend",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h2",{className:"title",children:null==r||null==(n=r.Homepage)||null==(a=n.Recommend)?void 0:a.Title}),(0,t.jsx)("ul",{className:"nav nav-tabs",id:"home-recommend-tab",role:"tablist","aria-orientation":"horizontal",children:d.map((e,l)=>(0,t.jsx)(i.default,{id:e.id,active:e.id===p,name:e.name,controlsId:"".concat(e.id,"-pane"),useBootstrap:!1,tabIndex:e.id===p?0:-1,buttonRef:t=>{v.current[e.id]=t},onClick:()=>C(e.id),onKeyDown:e=>((e,t)=>{var l;if(!({ArrowLeft:!0,ArrowRight:!0,Home:!0,End:!0})[e.key]||!d.length)return;e.preventDefault();let i=d.length-1,a=t;"ArrowRight"===e.key?a=t===i?0:t+1:"ArrowLeft"===e.key?a=0===t?i:t-1:"Home"===e.key?a=0:"End"===e.key&&(a=i);let n=null==(l=d[a])?void 0:l.id;n&&(C(n),requestAnimationFrame(()=>{var e;null==(e=v.current[n])||e.focus()}))})(e,l)},l))}),(0,t.jsx)("div",{className:"tab-content",id:"home-recommend-tabcontent",children:d.map((e,l)=>(0,t.jsx)(o,{id:e.id,active:e.id===p,journeyItem:e.item,onActivate:C},l))})]})})}},88629,e=>{"use strict";e.s(["default",()=>m],88629),e.i(47167);var t=e.i(43476),l=e.i(71645),i=e.i(80401);e.i(41983);var a=e.i(77657),a=a,n=e.i(86301),s=e.i(8161),r=e.i(94467);let o={src:e.i(99880).default,width:756,height:424,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAIAAAA8r+mnAAAAb0lEQVR42gFkAJv/AKSkocLJzK2wsrG0tbS6vMrU19Xg5NTg5QBZU0VdWlVbVlNrY19YVlZ5hYu1xsq/1NgAUU8oXGAwYWU1V1g9U1tYcIaLl7S5nsHGAGRoLG1+JXqKKYaKOYCNRXeSYYCiiIGwosEIMqj7vtE3AAAAAElFTkSuQmCC"},c={src:e.i(59336).default,width:633,height:382,blurWidth:8,blurHeight:5,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVR42gGlAFr/AAYFBQgNCwoSFxMRIjsxKlsrJSA9FBIQFwIBAQIAAAAAAEtFQmyRf3TFmIV51amWi/etnZLpn4p8yktCO14DAwIDACYkIzKQiIOzwa+j/sCpmfyonpfMw7Op86iVh9coIx8wAAAAAABPSERuqpiO/LKimO9TTUhlY2Bec6yhmNVJRD5ZAAAAAAAwLCpAXldThDYyLkgRDw4UBgYFBhsaGB8KCgkMEoI1bOHFTCoAAAAASUVORK5CYII="},d={src:e.i(66444).default,width:517,height:368,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAA0UlEQVR42gHGADn/AAAAAAAAAAAACQYDCxMMBhoMCAQPAQEAAQAAAAAAAAAAAAIBAQItGg1CcT4esYRII9R3QiC/QicTZAcFAwoAAAAAAC8hFTqWXDTZrGs//51mRP+cY0H/o2M39GBAJn8aFA0cAHRfPIfKn2X+wplk+XpcROF4WUTgvJFe9ceeZPhnVTZ0AG1cOX2Qd0utTUApWxkVDyUWEg0iPzMhSn1pQpVdUTJnABEPCRILCQYLAAAAAAAAAAAAAAAAAAAAAAUEAwQIBwUHwccvv42KMDUAAAAASUVORK5CYII="},u={src:e.i(74319).default,width:724,height:400,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAAAAAACAgIDDgwLESwlIDODalmbTkI7YgMDAwQAAAAAACciHjFjUkZ4mYN2wamShdPNtqf+qpKD3GVYUH8bGBYhAId3ba7Ntqb9xa+i87ehlPHApJf8v6SW/sOkmfxiVlB6AEhCPVpqYlyATEQ/Wzw2MkxVS0Ztdmhfm4Z3bqZDPDdQX8MzX/GDLe0AAAAASUVORK5CYII="},h=[],m=e=>{let{locale:m,dict:A}=e,[g,p]=(0,l.useState)(h);return(0,l.useEffect)(()=>{(async()=>{try{let e=await r.api.get("".concat("https://www.matsu-nsa.gov.tw/api","/localDelicacies"),{},{headers:{"Accept-Language":m||"zh-TW"},cache:"no-store",locale:m}),t=(null==e?void 0:e.data)||[];
1if(Array.isArray(t)&&t.length>0){let e=t.map(e=>{var t,l,i;return{id:e.id,linkto:"/".concat(m,"/feature-food"),picSource:(null==(t=e.image)?void 0:t.url)||o.src,picAlt:(null==(l=e.image)?void 0:l.alt)||e.title,title:e.title,content:(null==(i=e.content)?void 0:i.replace(/<(?:[^<>]{1,500})?>/g,""))||"",days:"",hasDays:!1}});p(e)}}catch(e){console.error("Fetch error:",e),p(h)}})()},[m]),(0,t.jsx)("section",{className:"home-food relative py-12",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsx)("h2",{className:"title text-2xl font-bold mb-8",children:(null==A?void 0:A.Homepage.Food.Title)||"å¿
åç¾é£"}),(0,t.jsx)("div",{className:"home-food__content",children:(0,t.jsx)(i.Swiper,{modules:[a.default,n.Pagination],spaceBetween:32,slidesPerView:3,grid:{rows:2},pagination:{clickable:!0},breakpoints:{0:{slidesPerView:1.4,spaceBetween:16,grid:{rows:1}},992:{slidesPerView:3,spaceBetween:32,grid:{rows:2}}},className:"arrow-fill",children:(e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let l=Math.floor(Math.random()*(e+1));[t[e],t[l]]=[t[l],t[e]]}return t})(g).slice(0,6).map(e=>(0,t.jsx)(i.SwiperSlide,{children:(0,t.jsx)(s.default,{...e})},e.id))})}),(0,t.jsx)("img",{src:c.src,className:"home-food__house home-food__house-1",alt:"","aria-hidden":"true"}),(0,t.jsx)("img",{src:d.src,className:"home-food__house home-food__house-2",alt:"","aria-hidden":"true"}),(0,t.jsx)("img",{src:u.src,className:"home-food__house home-food__house-3",alt:"","aria-hidden":"true"})]})})}},51710,e=>{"use strict";e.s(["default",()=>d],51710);var t=e.i(43476),l=e.i(80401);e.i(41983);var i=e.i(86301),a=e.i(22016),n=e.i(94575);let s=e=>{let{icon:l,title:i,linkto:s}=e,r=s.startsWith("http"),o=r?(0,n.withNewWindowNotice)(i):void 0;return(0,t.jsxs)(a.default,{href:s,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,title:o,"aria-label":o,className:"c-home-findus-link-item group flex items-center gap-3 transition-colors hover:text-primary",children:[(0,t.jsx)("span",{className:"c-home-findus-link-item__icon text-xl","aria-hidden":"true",children:l}),(0,t.jsx)("span",{className:"c-home-findus-link-item__title text-base font-semibold",children:i}),(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"c-home-findus-link-item__arrow ml-auto transition-transform group-hover:translate-x-1",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2385 4.56152L11.8275 5.97852L16.8705 10.9995H3.2915V12.9995H16.8695L11.8275 18.0215L13.2385 19.4385L20.7085 11.9995L13.2385 4.56152Z",fill:"#976B43"})})]})};var r=e.i(71645),o=e.i(83984);let c=e=>{var l,i,s,c,d,u,h,m;let{picSource:A,picAlt:g,text:p,linkto:w,media_type:v,dict:C,locale:x}=e,f="VIDEO"===v,b=(0,r.useRef)(null),[j,N]=(0,r.useState)(!1),y=(null==C||null==(i=C.Homepage)||null==(l=i.Findus)?void 0:l.OpenPost)||"Open Instagram post",S="string"==typeof p?(0,o.normalizeAccessibleText)(p):(0,o.normalizeAccessibleText)((null==C||null==(c=C.Homepage)||null==(s=c.Findus)?void 0:s.VideoContent)||"Instagram video content"),H=(0,n.getNewWindowNotice)(x),L="en-US"===x?150:75,V=(0,o.normalizeAccessibleText)(y),E=Math.max(0,L-Array.from("".concat(V).concat(S?"ï¼":"").concat(H)).length),B=(0,o.truncateAccessibleText)(S,E),k="".concat(V).concat(B?"ï¼".concat(B):"").concat(H);return(0,r.useEffect)(()=>{let e=b.current;if(!e)return;let t=()=>N(!0),l=()=>N(!1),i=()=>N(!1);return e.addEventListener("play",t),e.addEventListener("pause",l),e.addEventListener("ended",i),()=>{e.removeEventListener("play",t),e.removeEventListener("pause",l),e.removeEventListener("ended",i)}},[]),(0,t.jsxs)("div",{className:"c-home-findus-item-wrap",children:[f&&(0,t.jsx)("button",{type:"button",className:"c-home-findus-item__media-toggle",onClick:e=>{e.preventDefault(),e.stopPropagation();let t=b.current;if(t){if(t.paused)return void t.play();t.pause()}},"aria-label":j?(null==C||null==(u=C.Homepage)||null==(d=u.Findus)?void 0:d.PauseVideo)||"Pause Instagram video":(null==C||null==(m=C.Homepage)||null==(h=m.Findus)?void 0:h.PlayVideo)||"Play Instagram video",children:(0,t.jsx)("span",{"aria-hidden":"true",children:j?"II":"â¶"})}),(0,t.jsxs)(a.default,{href:w,className:"c-home-findus-item",target:"_blank",rel:"noopener noreferrer","aria-label":k,title:k,onFocus:()=>{var e;null==(e=b.current)||e.pause()},children:[f?(0,t.jsx)("video",{ref:b,src:A,tabIndex:-1,"aria-hidden":"true",loop:!0,muted:!0,playsInl
1ine:!0,preload:"metadata",className:"w-100 h-100 position-absolute",style:{aspectRatio:"197/264",objectFit:"cover"}}):(0,t.jsx)("img",{src:A,alt:"","aria-hidden":"true"}),(0,t.jsx)("p",{className:"ellipsis-multi-line-5",children:(0,t.jsx)("span",{children:p})})]})]})},d=e=>{let{dict:a,instagramData:n,locale:r}=e,o=[{icon:(0,t.jsxs)("svg",{width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M47.9002 23.6498V9.8498C47.9002 4.4498 43.5094 0.0498047 38.0208 0.0498047H23.9501H9.87942C4.39085 0.0498047 0 4.4498 0 9.9498V23.7498C0 23.9498 0 24.2498 0 24.4498V38.2498C0 43.6498 4.39085 48.0498 9.87942 48.0498H38.1206C43.5094 48.0498 48 43.6498 48 38.1498V24.3498C47.9002 24.1498 47.9002 23.9498 47.9002 23.6498Z",fill:"#976B43"}),(0,t.jsx)("path",{d:"M34.7283 14.3496C35.7263 13.9496 36.9238 14.1496 38.0215 14.0496C38.8198 14.0496 39.6181 14.0496 40.5163 14.0496C40.5163 11.8496 40.5163 9.74965 40.5163 7.54965C38.8198 7.34965 37.1233 7.24965 35.5267 7.24965C34.2294 7.14965 32.9321 7.34965 31.6348 7.64965C30.2377 8.04965 28.9404 8.84965 27.9425 9.94965C26.4456 11.5496 25.747 13.6496 25.6473 15.7496C25.5475 16.3496 25.6473 16.9496 25.6473 17.5496C25.6473 19.0496 25.6473 20.5496 25.6473 22.1496C23.5516 22.1496 21.456 22.1496 19.3604 22.1496C19.3604 24.2496 19.3604 26.2496 19.3604 28.3496C19.3604 28.6496 19.3604 29.0496 19.3604 29.3496C21.456 29.3496 23.5516 29.3496 25.6473 29.3496C25.6473 35.5496 25.6473 41.7496 25.6473 47.9496C25.6473 47.9496 33.431 47.9496 33.1317 47.9496C33.1317 41.7496 33.1317 35.5496 33.1317 29.3496C35.2273 29.3496 37.2231 29.3496 39.3188 29.3496C39.6181 26.9496 39.9175 24.5496 40.2169 22.1496C37.8219 22.1496 35.4269 22.1496 33.1317 22.1496C33.1317 20.8496 33.1317 19.5496 33.1317 18.2496C33.1317 17.3496 33.0319 16.3496 33.431 15.5496C33.6306 14.9496 34.1296 14.5496 34.7283 14.3496Z",fill:"white"})]}),title:null==a?void 0:a.Homepage.Findus.Media.Facebook,linkto:"https://zh-tw.facebook.com/Go.go.Matsu"},{icon:(0,t.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M45.0982 4.11914H3.98242V44.1612H45.0982V4.11914Z",fill:"#FDFDFD"}),(0,t.jsx)("path",{d:"M47.8065 10.4099C48 11.2088 48 12.0076 48 12.8065C48 18.3984 48 23.9903 47.9032 29.5822C47.9032 30.5808 48 31.4795 47.8065 32.478C47.8065 34.6748 47.9033 36.8717 47.5163 39.0685C47.0326 42.2639 45.001 45.2595 42.1954 46.6575C41.4215 47.0569 40.6475 47.3565 39.8736 47.5562C38.7127 47.8558 37.6485 47.9556 36.4876 47.9556C35.8104 47.9556 35.1332 47.9556 34.456 47.9556C34.069 47.9556 33.5853 47.9556 33.1983 47.9556C29.0384 47.9556 24.7817 47.9556 20.6217 47.9556C18.6869 48.0555 16.752 47.9556 14.8172 47.9556C12.3019 47.9556 9.59305 48.1553 7.17448 47.3565C6.59402 47.1568 5.9168 46.9571 5.43309 46.4578C4.85263 46.3579 4.46566 45.8587 3.98194 45.5591C3.49823 45.0598 2.91777 44.5605 2.5308 43.9614C1.95034 43.2624 1.56337 42.4636 1.07965 41.6647C0.595939 40.2667 0.305715 38.8688 0.208973 37.4708C0.11223 34.575 0.112224 31.6792 0.112224 28.7834C-0.0812624 24.889 0.112218 20.9946 0.0154747 17.1003C0.0154747 15.0033 -0.0812565 12.9063 0.208973 10.9092C0.208973 10.4099 0.305721 9.91066 0.305721 9.31153C0.499207 8.11326 0.886185 6.915 1.3699 5.81659V5.91644C1.56339 5.21745 2.04708 4.51846 2.5308 3.91933C3.69171 2.4215 5.43311 1.32309 7.17448 0.624097C9.59305 0.0249639 11.9149 0.0249639 14.2367 0.0249639C17.9129 0.0249639 21.6859 -0.0748917 25.3621 0.124819C27.5872 0.0249639 29.9091 0.0249639 32.2309 0.124819C33.0048 0.0249639 33.7788 0.124819 34.6495 0.124819C36.2941 0.124819 37.9387 0.0249639 39.5834 0.524242C41.0345 0.723953 42.3889 1.32309 43.4531 2.22179C45.001 3.3202 46.2586 4.91789 46.9358 6.71528L47.0326 6.81514C47.4195 7.91355 47.613 9.11182 47.8065 10.4099ZM41.5182 31.8789C41.8085 26.5865 41.7117 21.1943 41.5182 15.902C41.4215 14.8036 41.228 13.805 40.841 12.7066C40.5508 11.9078 40.1638 11.1089 39.6801 10.4099C39.3899 10.0105 39.0996 9.6111 38.7127 9.31153C37.842 8.41283 36.7778 7.71384 35.6169 7.21456C34.069 6.61543 32.3276 6.31586 30.5863 6.31586C28.4579 6.21601 26.4263 6.21601 24.298 6.21601C21.8794 6.21601 19.3641 6.21601 16.9455 6.31586C16.6553 6.31586 16.365 6.31586 16.1716 6.31586C13.8497 6.41572 11.5279 7.11471 9.68977 8.71239C9.39954 9.01196 9.10932 9.31153 8.81909 9.51124C8.43212 9.91066 8.14189 10.3101 7.85166 10.8094C7.07772 12.0076 6.69075 13.3057 6.49727 14.7037C6.30378 15.5026 6.49726 16.4013 6.40052 17.2001C6.20703 21.6936 6.30377 26.0873 6.30377 30.5808C6.30377 31.1799 6.30377 31.779 6.40052 32.3782C6.594 33.5764 6.78748 34.7747 7.2712 35.8731C7.75491 37.0714 8.43213 38.0699 9.39956 38.9686C10.4637 40.067 11.8181 40.766 13.2693 41.1654C14.7204 41.5649 16.2683 41.6647 17.8162 41.7646C20.2348 41.8644 22.6534 41.7646 25.0719 41.7646C27.5872 41.6647 30.1993 41.7646 32.7146 41.465C34.2625 41.2653 35.7137 40.766 37.0681 39.9672C39.8736 38.4693 41.4215 35.1741 41.5182 31.8789Z",fill:"#976B43"}),(0,t.jsx)("path",{d:"M38.5191 23.2915C38.5191 26.4869 38.6158 29.5824 38.2288 32.7778C38.0354 33.976 37.6484 35.1743 36.8744 36.073C35.52 37.9702 33.101
15 38.5694 30.8764 38.5694C29.8122 38.5694 28.6513 38.6692 27.5871 38.6692C26.2327 38.7691 24.7816 38.7691 23.4272 38.6692C20.9119 38.7691 18.3966 38.6692 15.8812 38.5694C14.2366 38.4695 12.6887 37.9702 11.4311 36.772C9.78642 35.1743 9.39945 32.7778 9.49619 30.5809C9.39945 29.3827 9.49619 28.0845 9.39944 26.7864C9.39944 25.3884 9.3027 23.9905 9.39944 22.6923C9.39944 20.5954 9.30271 18.3986 9.49619 16.3016C9.49619 16.002 9.4962 15.6026 9.59294 15.303C9.78643 13.3059 10.9473 11.4087 12.6887 10.51C14.5268 9.51142 16.6552 9.51142 18.59 9.51142C20.4281 9.41156 22.363 9.41156 24.2011 9.51142C26.8132 9.41156 29.3285 9.51142 31.9405 9.61127C33.3917 9.81098 35.0363 10.2104 36.0038 11.3088C36.3907 11.6084 36.7777 11.9079 36.8744 12.4072H37.0679L37.1647 12.6069L37.0679 12.8066C37.2614 13.0064 37.3582 13.2061 37.4549 13.5056L37.5517 13.4058L37.4549 13.7053H37.6484C37.6484 13.8052 37.6484 14.0049 37.6484 14.1048C38.1321 15.0035 38.0354 16.1019 38.1321 17.1004C38.1321 18.099 38.3256 19.1974 38.1321 20.196C38.6158 21.1945 38.5191 22.2929 38.5191 23.2915ZM35.4233 15.2032C35.7135 14.5042 35.4233 13.7053 34.9396 13.1062C34.1656 12.4072 33.0047 12.2075 32.134 12.9065C31.3601 13.4058 31.1666 14.4043 31.2634 15.303C31.5536 15.9022 32.0373 16.5013 32.7145 16.701C33.8754 17.0006 35.1331 16.3016 35.4233 15.2032ZM31.1666 29.6822C33.0047 27.2857 33.5852 23.8906 32.6178 20.9948C31.6503 18.099 29.2318 15.9022 26.3295 15.2032C23.9109 14.5042 21.2988 15.0035 19.1705 16.3016C17.4291 17.4 16.1714 19.0975 15.4942 20.9948C15.0105 22.3928 14.9138 23.8906 15.1073 25.3884C15.3975 26.9861 16.0747 28.5838 17.0421 29.7821C18.3965 31.4796 20.4281 32.578 22.5565 33.0773C24.2011 33.277 25.8457 33.1772 27.2969 32.578C28.748 32.0788 30.1024 30.9804 31.1666 29.6822Z",fill:"#976B43"}),(0,t.jsx)("path",{d:"M29.7158 22.4928C30.1027 24.1904 29.9093 26.0876 28.8451 27.3857C28.5549 27.885 28.0711 28.2844 27.6842 28.6839C26.5232 29.5826 25.0721 29.982 23.7177 29.8821C20.9122 29.7823 18.3969 27.2859 18.2034 24.3901C18.1066 23.3915 18.3001 22.4928 18.6871 21.5941C19.2675 20.3958 20.235 19.2974 21.3959 18.6983C23.234 17.7996 25.5558 17.7996 27.2005 18.898C28.4581 19.7967 29.3288 21.0948 29.7158 22.4928Z",fill:"#976B43"})]}),title:null==a?void 0:a.Homepage.Findus.Media.Instagram,linkto:"https://www.instagram.com/matsu_nsa/?hl=zh-tw"},{icon:(0,t.jsxs)("svg",{width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M38.2 0H9.89996C4.49996 0 0 4.4 0 9.9V38.2C0 43.6 4.39996 48.1 9.89996 48.1H38.2C43.6 48.1 48.1 43.7 48.1 38.2V9.9C48.1 4.4 43.7 0 38.2 0Z",fill:"#976B43"}),(0,t.jsx)("path",{d:"M19.3996 11.8001C23.6996 11.7001 27.8996 11.7001 32.1996 11.9001C33.5996 12.0001 34.9996 12.0001 36.2996 12.2001C36.9996 12.3001 37.7996 12.4001 38.4996 12.7001C39.6996 13.3001 40.5996 14.4001 40.7996 15.6001C41.1996 17.2001 41.2996 18.8001 41.3996 20.5001C41.4996 23.0001 41.4996 25.5001 41.3996 28.1001C41.2996 29.5001 41.1996 30.9001 40.7996 32.3001C40.4996 33.6001 39.5996 34.6001 38.3996 35.2001C37.5996 35.6001 36.7996 35.6001 35.9996 35.8001C33.8996 36.0001 31.6996 36.1001 29.5996 36.2001C25.0996 36.3001 20.4996 36.3001 15.9996 36.1001C14.2996 36.0001 12.4996 35.9001 10.7996 35.6001C9.49962 35.4001 8.29958 34.5001 7.69958 33.4001C7.29958 32.6001 7.19963 31.8001 6.99963 31.0001C6.69963 28.8001 6.59961 26.5001 6.59961 24.2001C6.59961 22.0001 6.69963 19.8001 6.99963 17.6001C7.09963 16.6001 7.29962 15.6001 7.79962 14.7001C8.19962 13.9001 8.89958 13.3001 9.69958 12.9001C10.4996 12.5001 11.2996 12.5001 12.0996 12.3001C14.5996 12.0001 16.9996 11.9001 19.3996 11.8001ZM20.5996 18.8001C20.5996 22.3001 20.5996 25.8001 20.5996 29.2001C23.5996 27.5001 26.5996 25.7001 29.5996 24.0001C26.5996 22.3001 23.5996 20.5001 20.5996 18.8001Z",fill:"white"}),(0,t.jsx)("path",{d:"M20.5996 18.7998C23.5996 20.4998 26.5996 22.2998 29.5996 23.9998C26.5996 25.6998 23.5996 27.4998 20.5996 29.1998C20.5996 25.6998 20.5996 22.2998 20.5996 18.7998Z",fill:"#976B43"})]}),title:null==a?void 0:a.Homepage.Findus.Media.Youtube,linkto:"https://www.youtube.com/@matsunationalscenicarea9539"}],d=n.map(e=>{let{caption:t,media_url:l,permalink:i,media_type:a}=e;return{picSource:l,picAlt:"ig pic",text:t,linkto:i,media_type:a}});return 0===d.length?null:(0,t.jsxs)("div",{className:"home-findus",children:[(0,t.jsx)("h2",{className:"title",children:null==a?void 0:a.Homepage.Findus.Title}),(0,t.jsx)("div",{className:"home-findus__link",children:o.map((e,l)=>(0,t.jsx)(s,{icon:e.icon,title:e.title,linkto:e.linkto},l))}),(0,t.jsx)(l.Swiper,{modules:[i.Pagination],spaceBetween:16,slidesPerView:1.4,breakpoints:{768:{slidesPerView:4.5,spaceBetween:24},992:{slidesPerView:4.5,spaceBetween:50}},pagination:{clickable:!0},className:"pagination-gray",children:d.map((e,i)=>(0,t.jsx)(l.SwiperSlide,{children:(0,t.jsx)(c,{...e,dict:a,locale:r})},i))})]})}}]);
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.