PageSourceSearch

https://golfschule-mallorca.net/_next/static/chunks/pages/blog-32eaccda84dabb16.js

js golfschule-mallorca.net collected 2026-10-07 04:20:54 UTC 3,694 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{7286:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return t(1283)}])},1283:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return h},default:function(){return p}});var s=t(2729),l=t(5893),r=t(1664),a=t.n(r),d=t(7294),i=t(8806),o=t(8413),c=t(7257),u=t(5533),g=t(7311),f=t(9008),x=t.n(f);function m(){let e=(0,s._)(["\n  query GetPosts($language: String!, $first: Int!, $after: String, $slug: String!) {\n		pageBy(uri: $slug) {\n			seo {\n				title\n				fullHead\n			}\n		}\n    posts(where: { language: $language }, first: $first, after: $after) {\n      edges {\n        node {\n          id\n          title\n          slug\n          excerpt\n          featuredImage {\n            node {\n              sourceUrl\n            }\n          }\n        }\n      }\n      pageInfo {\n        endCursor\n        hasNextPage\n      }\n    }\n    featuredPost: posts(where: { language: $language }, first: 1) {\n      edges {\n        node {\n          id\n          title\n          slug\n          excerpt\n          featuredImage {\n            node {\n              sourceUrl\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return m=function(){return e},e}var h=!0;function p(e){let{initialPosts:n,initialPageInfo:t,language:s,featuredPost:r,frontendUrl:i,seo:f}=e,[m,h]=(0,d.useState)(n||[]),[p,N]=(0,d.useState)(t||{}),[b,w]=(0,d.useState)(!1),v=(0,g.ZP)(f.fullHead).filter(e=>"link"!==e.type||!e.props||"canonical"!==e.props.rel);(0,c.F)();let _=async()=>{if(!p.hasNextPage)return;w(!0);let{data:e}=await o.Z.query({query:j,variables:{slug:"blog",language:s,first:5,after:p.endCursor}});h([...m,...e.posts.edges]),N(e.posts.pageInfo),w(!1)};return(0,l.jsxs)("div",{children:[(0,l.jsxs)(x(),{children:[(0,l.jsx)("title",{children:f.title}),v,(0,l.jsx)("link",{rel:"canonical",href:"https://".concat(i,"/blog")})]}),(0,l.jsxs)("section",{className:"max-w-6xl mx-auto py-12 mt-36 px-4 md:px-0",children:[r&&(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-12",children:[(0,l.jsx)("div",{children:r.featuredImage&&(0,l.jsx)("img",{src:r.featuredImage.node.sourceUrl,alt:r.title,className:"w-full h-[600px] object-cover rounded-lg shadow-md"})}),(0,l.jsxs)("div",{className:"bg-[#F99A00] p-8 rounded-lg flex flex-col justify-center",children:[(0,l.jsx)("h3",{className:"uppercase text-sm font-semibold text-white-300 mb-4 ",children:"Featured Story"}),(0,l.jsx)("h2",{className:"text-4xl font-bold mb-4",children:r.title}),(0,l.jsx)(a(),{href:"/blog/".concat(r.slug),children:(0,l.jsx)("p",{className:"text-white font-semibold hover:underline",children:(0,u.t)("readmore",s)})})]})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-16",children:m.map(e=>(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("div",{className:"mb-4",children:e.node.featuredImage&&(0,l.jsx)("img",{src:e.node.featuredImage.node.sourceUrl,alt:e.node.title,className:"w-full h-48 object-cover rounded-lg shadow-md"})}),(0,l.jsx)("h3",{className:"text-xl text-gray-700 mb-4",children:e.node.title}),(0,l.jsx)(a(),{href:"/blog/".concat(e.node.slug),children:(0,l.jsx)("p",{className:"text-[#F99A00] font-semibold hover:underline",children:(0,u.t)("readmore",s)})})]},e.node.id))}),(0,l.jsx)("div",{className:"flex items-center justify-center my-16",children:p.hasNextPage&&(0,l.jsx)("button",{onClick:_,className:"mt-4 p-4 text-xl bg-[#F99A00] text-white rounded",disabled:b,children:b?(0,u.t)("loading",s):(0,u.t)("viewmore",s)})})]})]})}let j=(0,i.Ps)(m())}},function(e){e.O(0,[311,888,774,179],function(){return e(e.s=7286)}),_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.