1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[844],{5349:(e,t,i)=>{"use strict";i.d(t,{Presentational:()=>m});var n=i(5155),s=i(7769),r=i(7816),a=i(2115);i(9509).env.API_DOMAIN;let o={information:{list:"".concat("https://cyrecords.g.kuroco.app","/rcms-api/1/information/list")}};async function c(e,t){let{method:i,headers:n,credentials:s,...r}=t||{};return await fetch(e,{method:null!=i?i:"GET",credentials:null!=s?s:"include",...r}).then(e=>{if(!e.ok)throw Error(e.statusText);return e.json()}).catch(e=>{console.error("Failed.",e)})}async function l(e){let t=new URLSearchParams;(null==e?void 0:e.page)&&t.set("pageID",e.page.toString()),(null==e?void 0:e.limit)&&t.set("cnt",e.limit.toString());let i=t.size>0?"?".concat(t.toString()):"";return c("".concat(o.information.list).concat(i))}function m(){let[e,t]=(0,a.useState)([]),[i,o]=(0,a.useState)(1),[c,m]=(0,a.useState)(!0),[g,u]=(0,a.useState)(null),f=(0,a.useRef)(null),d=(0,a.useRef)(null),h=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=sessionStorage.getItem("information_articles"),i=sessionStorage.getItem("information_page"),n=sessionStorage.getItem("information_hasMore"),s=sessionStorage.getItem("information_scrollY");e&&i&&n?(t(JSON.parse(e)),o(Number(i)),m("true"===n),(async()=>{u((await l({page:1,limit:10})).pageInfo.totalPageCnt)})(),setTimeout(()=>{d.current&&s&&(d.current.scrollTop=Number(s))},0)):(async()=>{let e=await l({page:1,limit:10});t(e.list),o(2),u(e.pageInfo.totalPageCnt),m(2<=e.pageInfo.totalPageCnt)})()},[]),(0,a.useEffect)(()=>{e.length>0&&(sessionStorage.setItem("information_articles",JSON.stringify(e)),sessionStorage.setItem("information_page",i.toString()),sessionStorage.setItem("information_hasMore",c.toString()))},[e,i,c]),(0,a.useEffect)(()=>{if(!c||!f.current||!g)return;let e=new IntersectionObserver(async e=>{if(e[0].isIntersecting&&!h.current){h.current=!0;let e=await l({page:i,limit:10});t(t=>[...t,...e.list.filter(e=>!t.some(t=>t.topics_id===e.topics_id))]);let n=i+1;o(n),m(n<=g),h.current=!1}},{rootMargin:"100px"});return e.observe(f.current),()=>e.disconnect()},[i,c,g]);let p=t=>{sessionStorage.setItem("information_articles",JSON.stringify(e)),sessionStorage.setItem("information_page",i.toString()),sessionStorage.setItem("information_hasMore",c.toString()),sessionStorage.setItem("information_scrollY",d.current?d.current.scrollTop.toString():"0"),window.location.href=t};return(0,n.jsx)("div",{className:"contents",ref:d,children:(0,n.jsxs)("div",{className:"wrap",children:[(0,n.jsx)("h2",{className:"contents__head",children:(0,n.jsx)("span",{className:"contents__head__inner",children:"Information"})}),(0,n.jsx)("ul",{className:"informationList",children:(0,n.jsxs)("div",{className:"jscroll-inner",children:[e.map(e=>{let{slug:t,subject:i,ymd:a,body_text:o,information_image_pc:c,information_image_sp:l}=e,m="/information/detail/".concat(t.replace(/^info-/,"")),g=o.replace(/(<([^>]+)>)/gi,"").replace(/&[a-z]+;/gi,""),u=g.length>70?"".concat(g.slice(0,70),"â¦"):g;return(0,n.jsx)("li",{className:"informationList__item",children:(0,n.jsxs)(r.N,{href:m,onClick:e=>{e.preventDefault(),p(m)},className:"informationList__wrap",children:[(0,n.jsx)("figure",{className:"informationList__thumb",children:(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:l||"/images/noimage.png",media:"(max-width: 600px)"}),(0,n.jsx)("source",{srcSet:c||"/images/noimage.png",media:"(min-width: 601px)"}),(0,n.jsx)(s.E,{src:c||"/images/noimage.png",alt:i,width:220,height:220})]})}),(0,n.jsxs)("div",{className:"informationList__overview",children:[(0,n.jsx)("h3",{className:"informationList__head",children:i}),(0,n.jsx)("p",{className:"informationList__date",children:a.replaceAll("-",".")}),(0,n.jsx)("p",{className:"informationList__txt",children:u})]})]})},t)}),c&&(0,n.jsx)("div",{ref:f,style:{height:"1px",background:"transparent"}})]})})]})})}},5904:(e,t,i)=>{Promise.resolve().then(i.bind(i,5349))},7769:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(5155);function s(e){let{src:t,alt:i,width:s,height:r,isRetina:a}=e;return(0,n.jsx)("img",{src:t,alt:i,width:void 0===s?void 0:a?s/2:s,height:void 0===r?void 0:a?r/2:r})}},7816:(e,t,i)=>{"use strict";i.d(t,{N:()=>a});var n=i(5155),s=i(6874),r=i.n(s);function a(e){return(0,n.jsx)(r(),{...e})}}},e=>{var t=t=>e(e.s=t);e.O(0,[874,441,684,358],()=>t(5904)),_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.