PageSourceSearch

https://www.oishii-hakodate.jp/_next/static/chunks/pages/news-275e26d1b7287576.js

js oishii-hakodate.jp collected 2026-10-08 15:03:03 UTC 7,172 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[134],{10830:function(n,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return a(64084)}])},36134:function(n,e,a){"use strict";a.d(e,{Z:function(){return m}});var t=a(85893),i=a(67294),s=a(11163),r=a(47166),l=a.n(r),o=a(3796),c=a(40195),u=a.n(c),d=l().bind(u());function m(n){var e=n.categories,a=n.date,r=n.className,l=d(u().wrap,r),c=(0,s.useRouter)(),m=[];null==a||a.map(function(n){var e=parseInt(n.month,10),a="".concat(n.year,"年").concat(n.month,"月"),t="".concat(n.year).concat(e>10?0+e:e);m.push({name:a,date:t})});var h=(0,i.useState)(""),f=h[0];h[1],(0,i.useEffect)(function(){f&&(window.location.href=f)},[f]);var g=c.asPath.match(/date=(\d+)/);return g&&g[1],(0,t.jsx)("div",{className:"b-filter01",children:(0,t.jsxs)("div",{className:"b-filter01__wrapper",children:[(0,t.jsx)("p",{className:"b-filter01__title",children:"絞り込み"}),(0,t.jsx)("div",{className:l,children:(0,t.jsxs)("ul",{className:"b-categoryList",children:[(0,t.jsx)("li",{className:"b-categoryList__item",children:(0,t.jsx)(o.r,{href:"/news",children:(0,t.jsx)("a",{className:"b-buttonCategory ".concat(("/news/"===c.asPath||c.asPath.indexOf("/news/page/")>-1)&&"active"),children:"ALL"})})}),null==e?void 0:e.map(function(n,e){return(0,t.jsx)("li",{className:"b-categoryList__item",children:(0,t.jsx)(o.r,{href:n.slug,children:(0,t.jsx)("a",{className:"b-buttonCategory ".concat(c.asPath.indexOf(n.slug)>-1&&"active"),children:n.name})})},e)})]})})]})})}},54665:function(n,e,a){"use strict";a.d(e,{Z:function(){return u}});var t=a(85893),i=a(67294),s=a(47166),r=a.n(s),l=a(3796),o=a(86887),c=a.n(o);r().bind(c());function u(n){var e,a,s=n.current,r=n.getPageUrl,o=n.lastPageId,c=n.firstPageId,u=n.className,d=(0,i.useState)(s),m=d[0],h=d[1],f=s-1.5<1?1:s-Math.floor(1.5)>o-3+1?o-3+1:s-Math.floor(1.5),g=f+3-1>o?o:f+3-1,_=(void 0===c?1:c)===s?null:null!==(e=r(s-1))&&void 0!==e?e:null,p=o===s?null:null!==(a=r(s+1))&&void 0!==a?a:null;return(0,t.jsxs)("ul",{className:"b-pagination ".concat(u),children:[_?(0,t.jsx)("li",{className:"b-pagination__prev",children:(0,t.jsx)(l.r,{href:_,children:(0,t.jsx)("a",{className:"b-pagination__prevLink",children:"前へ"})})}):(0,t.jsx)("li",{className:"b-pagination__prev"}),g-3>0&&(0,t.jsx)("li",{className:"b-pagination__number",children:(0,t.jsx)(l.r,{href:r(1),className:"num",children:(0,t.jsx)("a",{className:"b-pagination__numberLink",children:"1"})})}),s>=3&&o>3&&(0,t.jsx)("li",{className:"b-pagination__point",children:(0,t.jsx)("span",{className:"b-pagination__numberLink",children:"..."})}),Array(g-f+1).fill(0).map(function(n,e){var a=e+f;return(0,t.jsx)(t.Fragment,{children:a===s?(0,t.jsx)("li",{className:"b-pagination__number",children:(0,t.jsx)("span",{className:"b-pagination__numberLink active",onClick:function(){return h(m-1)},children:a})},e):(0,t.jsx)("li",{className:"b-pagination__number",children:(0,t.jsx)(l.r,{href:r(a),children:(0,t.jsx)("a",{className:"b-pagination__numberLink",children:a})})},e)})}),o-Math.floor(1.5)-1>s&&(0,t.jsx)("li",{className:"b-pagination__point",children:(0,t.jsx)("span",{className:"b-pagination__numberLink",children:"..."})}),o-f>=3&&(0,t.jsx)("li",{className:"b-pagination__number",children:(0,t.jsx)(l.r,{href:r(o),children:(0,t.jsx)("a",{className:"b-pagination__numberLink",children:o})})}),p?(0,t.jsx)("li",{className:"b-pagination__next",children:(0,t.jsx)(l.r,{href:p,children:(0,t.jsx)("a",{className:"b-pagination__nextLink",children:"次へ"})})}):(0,t.jsx)("li",{className:"b-pagination__next"})]})}},64084:function(n,e,a){"use strict";a.r(e),a.d(e,{__N_SSG:function(){return j},default:function(){return b}});var t=a(41799),i=a(69396),s=a(85893),r=a(55850),l=a(17283),o=a(36134),c=a(66630),u=a(33955),d=a(14044),m=a(46383),h=a(84050),f=a(95763),g=a(73536),_=a(54665),p=a(36433),x=a(66887),j=!0;function b(){var n,e=(0,r.a)(b.query).data;((null==e?void 0:e.generalSettings)||{}).title;var a=(null==e?void 0:e.posts)||{},l=a.nodes,j=a.pageInfo,v=((null==e?void 0:e.newsCategories)||{}).nodes,N=((null==e?void 0:e.postYearMonthCounts)||{}).items,w={current:1,lastPageId:(null==j?void 0:j.offsetPagination.total)%15==0?j.offsetPagination.total/15:Math.floor((null==j?void 0:j.offsetPagination.total)/15)+1,getPageUrl:function(n){return"/news/page/".concat(n)}},y=null==l?void 0:l.map(function(n){var e,a,t,i;return{href:n.uri,thumbnail:n.featuredImage?n.featuredImage.node.sourceUrl:(0,x.Z)(n.content),category:{name:(null===(a=null===(e=n.newsCategories)||void 0===e?void 0:e.nodes[0])||void 0===a?void 0:a.name)||"",href:(null===(i=null===(t=n.newsCategories)||void 0===t?void 0:t.nodes[0])||void 0===i?void 0:i.uri)||""},date:n.date,title:n.title,content:n.content}}),P=null==v?void 0:v.map(function(n){return{name:n.name,slug:n.uri}}),L=null==N?void 0:N.map(function(n){return{month:n.month,year:n.year}});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(f.Z,{children:[(0,s.jsx)("title",{children:"函館「食」ニュース | おいしい函館"}),(0,s.jsx)("meta",{name:"description",content:"「おいしい函館」は、歴史や文化に彩られ、豊かな自然に恵まれた函館で出会える「食」の魅力をお伝えするサイト。情熱あふれる料理人による一皿が味わえる飲食店、四季折々の豊富な旬の食材、魅力あふれる商品やそれを扱う市場・商店、多彩な食に出会うイベントなどの最新情報をご紹介します。"})]}),(0,s.jsx)(u.Z,{}),(0,s.jsxs)(m.Z,{children:[(0,s.jsx)(h.Z,{}),(0,s.jsxs)(d.Z,{children:[(0,s.jsx)(p.Z,{title:"函館「食」ニュース",type:"others"}),(0,s.jsx)(o.Z,{categories:P,date:L}),(0,s.jsx)("div",{className:"max-w-[950px] grid sm:grid-cols-2 md:grid-cols-3 gap-x-14 gap-y-24 md:gap-y-28 justify-center mt-[30px] md:mt-[60px] mx-auto px-5",children:null==y?void 0:y.map(function(n,e){return(0,s.jsx)(g.Z,{href:n.href,thumbnail:n.thumbnail,date:n.date,title:n.title,content:n.content,category:{name:n.category.name,href:n.category.href}},e)})}),(0,s.jsx)(_.Z,(0,i.Z)((0,t.Z)({},w),{className:"justify-center mt-[95px]"}))]})]}),(0,s.jsx)(c.Z,{})]})}b.query=(0,l.Ps)("\n  query GetNewsPage {\n    posts : newsPosts (\n      where: {\
1n        offsetPagination: { offset: 0, size: 15 },\n      }\n    ) {\n      pageInfo {\n        offsetPagination {\n          hasMore\n          hasPrevious\n          total\n        }\n      }\n      nodes {\n        id\n        title\n        date\n        content\n        uri\n        newsCategories {\n          nodes {\n            name\n            uri\n          }\n        }\n        featuredImage {\n          node {\n            sourceUrl(size: MEDIUM)\n          }\n        }\n      }\n    }\n    newsCategories {\n      nodes {\n        name\n        uri\n      }\n    }\n    postYearMonthCounts {\n      items {\n        month\n        year\n      }\n    }\n    generalSettings {\n      title\n    }\n  }\n")},40195:function(n){n.exports={wrap:"Filter02_wrap___5uJQ","b-categoryList":"Filter02_b-categoryList__gYqlU"}},86887:function(){}},function(n){n.O(0,[818,774,888,179],function(){return n(n.s=10830)}),_N_E=n.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.