(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{1741:function(e,t,r){Promise.resolve().then(r.bind(r,7222))},7222:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Guide}});var n=r(7437),o=r(2265);r(6691);var s=r(1396),a=r.n(s),i=r(6009);function Guide(){let[e,t]=(0,o.useState)();(0,o.useEffect)(()=>{getResourcesGuide()},[]);let getResourcesGuide=async()=>{try{let e="".concat("https://api.lokahsu.org.tw").concat("/api/front_end/resources_guide"),r=await fetch(e);if(r&&200===r.status){let e=await r.json();console.log("result",e),t(e.data)}}catch(e){console.error(e)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsxs)("div",{className:"md:w-2/3 flex flex-col",children:[(0,n.jsx)("div",{className:"bg-[#6D4F19] text-white text-3xl text-center px-10 py-2 border-2 border-[#FFFFFF]",children:"原住民族語言能力認證測驗 - 中高級應考指南 下載"}),(0,n.jsx)("div",{className:"flex flex-col md:grid md:grid-cols-4",children:e&&e.map(e=>(0,n.jsxs)("div",{className:"border-2 border-[#FFFFFF] px-5 py-2 bg-[#F5F2E6] hover:bg-[#D3F4ED]",children:[e.language_name,(0,n.jsx)(i.Z,{src:"/assets/images/download-btn-pdf.png",hoverSrc:"/assets/images/download-btn-pdf-hover.png",width:"50",height:"50",onClick:()=>{window.open(e.url)},alt:"download"})]}))})]})}),(0,n.jsx)("div",{className:"flex justify-center mt-5",children:(0,n.jsx)(a(),{href:"/resources",className:"text-white bg-blue-500 px-5 py-2 rounded-lg",children:"回上一頁"})})]})}},6009:function(e,t,r){"use strict";r.d(t,{Z:function(){return ImageButton}});var n=r(7437),o=r(6691),s=r.n(o),a=r(2265);function ImageButton(e){let{src:t,hoverSrc:r,onClick:o,width:i=200,height:l=100,className:u=""}=e,[c,d]=(0,a.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onClick:e=>{"function"==typeof o&&o(e)},className:u,children:(0,n.jsx)(s(),{src:c?r:t,width:i,height:l,alt:"no image"})})})}},679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return l}});let n=r(1024),o=r(7929),s=r(2637),a=r(413),i=n._(r(9950)),unstable_getImgProps=e=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,o.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},l=a.Image},622:function(e,t,r){"use strict";/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(2265),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function q(e,t,r){var n,s={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:s,_owner:i.current}}t.Fragment=s,t.jsx=q,t.jsxs=q},7437:function(e,t,r){"use strict";e.exports=r(622)},6691:function(e,t,r){e.exports=r(679)},1396:function(e,t,r){e.exports=r(8326)}},function(e){e.O(0,[413,326,971,472,744],function(){return e(e.s=1741)}),_N_E=e.O()}]);