1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1738],{14934:function(e,t,s){Promise.resolve().then(s.bind(s,31995)),Promise.resolve().then(s.bind(s,60636))},60636:function(e,t,s){"use strict";s.d(t,{default:function(){return a}});var r=s(2265);function a(e){let{children:t,blogposts:s}=e,[a,n]=(0,r.useState)(null),[l,i]=(0,r.useState)(""),[o,c]=(0,r.useState)(s);(0,r.useEffect)(()=>{c(s.filter(e=>{let t=!a||e.category===a,s=(e.title||"").toLowerCase().includes(l.toLowerCase())||(e.content||"").toLowerCase().includes(l.toLowerCase());return t&&s}))},[a,l,s]);let d=e=>{n(e)},m=e=>{i(e)};return"function"==typeof t?t({blogposts:s,selectedCategory:a,handleCategorySelect:d,filteredPosts:o,searchQuery:l,handleSearch:m}):r.cloneElement(t,{blogposts:s,selectedCategory:a,handleCategorySelect:d,filteredPosts:o,searchQuery:l,handleSearch:m})}},85589:function(e,t,s){"use strict";var r=s(57437);t.Z=()=>(0,r.jsx)("div",{className:"sidebar-banner-add",style:{backgroundImage:"url(/images/misc/match-entry-mini.jpg)"},children:(0,r.jsxs)("div",{className:"banner-content",children:[(0,r.jsxs)("h4",{children:["Sprzedaż ",(0,r.jsx)("br",{}),"gadżet\xf3w klubowych"]}),(0,r.jsx)("p",{children:"DostÄpna już wkr\xf3tce"})]})})},31995:function(e,t,s){"use strict";s.d(t,{default:function(){return u}});var r=s(57437),a=s(2265),n=e=>{let{onSearch:t,searchQuery:s}=e,[n,l]=(0,a.useState)(s||"");return(0,a.useEffect)(()=>
1{l(s||"")},[s]),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),console.log("Search submitted:",n),"function"==typeof t&&t(n)},children:[(0,r.jsx)("input",{type:"text",placeholder:"Wyszukaj..",value:n,onChange:e=>{let s=e.target.value;l(s),console.log("Search input changed:",s),"function"==typeof t&&t(s)}}),(0,r.jsx)("button",{type:"submit",children:(0,r.jsx)("i",{className:"bi bi-search"})})]})},l=e=>{let{blogposts:t,onCategorySelect:s,selectedCategory:a}=e,n=t.reduce((e,t)=>{let s=t.category;return e[s]=(e[s]||0)+1,e},{}),l=t.length;return(0,r.jsxs)("ul",{className:"style-none",children:[(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:"#",onClick:e=>{e.preventDefault(),s(null)},style:{fontWeight:null===a?"bold":"normal",color:null===a?"#003082":"inherit"},children:["Wszystkie",(0,r.jsxs)("span",{className:"float-end",children:["(",l,")"]})]})},"all"),Object.entries(n).map((e,t)=>{let[n,l]=e;return(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:"#",onClick:e=>{e.preventDefault(),s(n)},style:{fontWeight:n===a?"bold":"normal",color:n===a?"#003082":"inherit"},children:[n,(0,r.jsxs)("span",{className:"float-end",children:["(",l,")"]})]})},t)})]})},i=s(45762),o=s(85589),c=s(27648);s(33145);var d=e=>{let{blogposts:t}=e,s=e=>{if(!e)return"/images/blog/placeholder.jpg";if(e.startsWith("http"))return e;let t="https://goldfish-app-7nvx8.ondigitalocean.app/cms/api".replace("/api","");return"".concat(t).concat(e)};if(!t||0===t.length)return(0,r.jsx)("div",{children:"Brak post\xf3w."});let a=e=>new Date(e).toLocaleDateString("pl-PL",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\./g,"/");return(0,r.jsx)(r.Fragment,{children:t.map(e=>{var t;let n=(null===(t=e.postimg)||void 0===t?void 0:t.url)||"";return(0,r.jsx)("div",{className:"col-md-6 d-flex","data-aos":"fade-up","data-aos-delay":100,children:(0,r.jsx)("article",{className:"blog-meta-six-unia d-flex flex-column position-relative zn2 mt-40",style:{backgroundImage:"url(".concat(s(n),")")},children:(0,r.jsxs)("div",{className:"post-data position-relative d-flex flex-column h-100",children:[(0,r.jsxs)("div",{className:"blog-header",children:[(0,r.jsx)("div",{children:(0,r.jsx)(c.default,{href:"/blog/".concat(e.id),className:"tag text-uppercase fw-500 tran3s mb-20",children:e.category})}),(0,r.jsx)(c.default,{href:"/blog/".concat(e.id),children:(0,r.jsx)("h4",{className:"tran3s blog-title",children:e.title})})]}),(0,r.jsxs)("div",{className:"blog-footer d-flex align-items-center justify-content-between mt-auto",children:[(0,r.jsxs)("div",{className:"blog-date tran3s fw-500 tx-dark",children:["Dodano",(0,r.jsxs)("span",{className:"fw-normal tran3s",children:[" ",a(e.publishedAt)]})]}),(0,r.jsx)(c.default,{href:"/blog/".concat(e.id),className:"read-more tran3s",children:(0,r.jsx)("i",{className:"bi bi-arrow-up-right"})})]})]})})},e.id)})})},m=e=>{let{postsPerPage:t,totalPosts:s,paginate:a,currentPage:n}=e,l=[];for(let e=1;e<=Math.ceil(s/t);e++)l.push(e);return(0,r.jsx)("ul",{className:"d-flex align-items-center style-none",children:l.map(e=>(0,r.jsx)("li",{className:"page-item ".concat(n===e?"active":""),children:(0,r.jsx)("a",{onClick:t=>{t.preventDefault(),a(e)},href:"!#",className:"page-link",children:e})},e))})};function f(e){let{blogposts:t}=e,[s,n]=(0,a.useState)(1);(0,a.useEffect)(()=>{n(1)},[t]);let l=6*s,i=t.slice(l-6,l);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"blog-meta-wrapper pe-xxl-5",children:(0,r.jsx)("div",{className:"row",children:i.length>0?(0,r.jsx)(d,{blogposts:i}):(0,r.jsx)("p",{children:"Brak post\xf3w do wyÅwietlenia."})})}),(0,r.jsx)("div",{className:"page-pagination-one pt-15",children:(0,r.jsx)(m,{postsPerPage:6,totalPosts:t.length,paginate:e=>n(e),currentPage:s})})]})}function u(e){let{blogposts:t,selectedCategory:s,handleCategorySelect:a,filteredPosts:c,searchQuery:d,handleSearch:m}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fancy-feature-fiftyOne position-relative mt-200",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-lg-7","data-aos":"fade-right",children:(0,r.jsx)("div",{className:"title-style-five mb-65 lg-mb-40",children:(0,r.jsx)("h2",{className:"main-title fw-500 tx-dark",children:"AktualnoÅci klubowe"})})})})})}),(0,r.jsx)("div",{className:"blog-section-five mt-70 lg-mt-30",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"border-bottom pb-130 lg-pb-60",children:(0,r.jsxs)("div",{className:"row gx-xl-5",children:[(0,r.jsx)("div",{className:"col-lg-8",children:(0,r.jsx)(f,{blogposts:c})}),(0,r.jsx)("div",{className:"col-lg-4 col-md-8",children:(0,r.jsxs)("div",{className:"blog-sidebar md-mt-70",children:[(0,r.jsx)("div",{className:"blog-sidebar-search mb-25 mt-40 md-mb-40",children:(0,r.jsx)(o.Z,{})}),(0,r.jsx)("div",{className:"blog-sidebar-search mb-55 md-mb-40",children:(0,r.jsx)(n,{onSearch:m,searchQuery:d})}),(0,r.jsxs)("div",{className:"blog-sidebar-category mb-60 md-mb-50",children:[(0,r.jsx)("h4",{className:"sidebar-title",children:"Kategorie"}),(0,r.jsx)(l,{blogposts:t,onCategorySelect:a,selectedCategory:s})]}),(0,r.jsxs)("div",{className:"sidebar-recent-news mb-60 md-mb-50",children:[(0,r.jsx)("h4",{className:"sidebar-title",children:"Ostatnie newsy"}),(0,r.jsx)(i.Z,{blogposts:t})]})]})})]})})})})]})}},45762:function(e,t,s){"use strict";var r=s(57437),a=s(29),n=s.n(a),l=s(27648),i=s(33145);t.Z=e=>{let{blogposts:t}=e,s=e=>{if(!e)return"/images/blog/placeholder.jpg";if(e.startsWith("http"))return e;let t="https://goldfish-app-7nvx8.ondigitalocean.app/cms/api".replace("/api","");return"".concat(t).concat(e)},a=t.sort((e,t)=>
1new Date(t.publishedAt)-new Date(e.publishedAt)).slice(0,3),o=e=>new Date(e).toLocaleDateString("pl-PL",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\./g,"/");return(0,r.jsxs)(r.Fragment,{children:[a.map(e=>{var t;let a=(null===(t=e.postimg)||void 0===t?void 0:t.url)||"";return(0,r.jsxs)("div",{className:"jsx-5e88f8953df91cd9 news-block d-flex align-items-center pt-20 pb-20 border-top border-bottom recent-post-title",children:[(0,r.jsx)("div",{className:"jsx-5e88f8953df91cd9",children:(0,r.jsx)(i.default,{width:80,height:90,src:s(a),alt:e.title,className:"lazy-img"})}),(0,r.jsxs)("div",{className:"jsx-5e88f8953df91cd9 post ps-4",children:[(0,r.jsx)("h4",{className:"jsx-5e88f8953df91cd9 mb-5",children:(0,r.jsx)(l.default,{href:"/blog/".concat(e.id),className:"title tran3s",children:e.title})}),(0,r.jsx)("div",{className:"jsx-5e88f8953df91cd9 date",children:o(e.publishedAt)})]})]},e.id)}),(0,r.jsx)(n(),{id:"5e88f8953df91cd9",children:'.recent-post-title.jsx-5e88f8953df91cd9{}.recent-post-title.jsx-5e88f8953df91cd9::after{content:"";position:absolute;width:100%;-webkit-transform:scalex(0);-moz-transform:scalex(0);-ms-transform:scalex(0);-o-transform:scalex(0);transform:scalex(0);height:2px;bottom:0;left:0;background-color:#003082;-webkit-transform-origin:bottom left;-moz-transform-origin:bottom left;-ms-transform-origin:bottom left;-o-transform-origin:bottom left;transform-origin:bottom left;-webkit-transition:-webkit-transform.3s ease-out;-moz-transition:-moz-transform.3s ease-out;-o-transition:-o-transform.3s ease-out;transition:-webkit-transform.3s ease-out;transition:-moz-transform.3s ease-out;transition:-o-transform.3s ease-out;transition:transform.3s ease-out}.recent-post-title.jsx-5e88f8953df91cd9:hover{background-color:#FFD000;-webkit-transform:scalex(1);-moz-transform:scalex(1);-ms-transform:scalex(1);-o-transform:scalex(1);transform:scalex(1);-webkit-transform-origin:bottom left;-moz-transform-origin:bottom left;-ms-transform-origin:bottom left;-o-transform-origin:bottom left;transform-origin:bottom left}.recent-post-title.jsx-5e88f8953df91cd9:hover::after{color:#003082;-webkit-transform:scalex(1);-moz-transform:scalex(1);-ms-transform:scalex(1);-o-transform:scalex(1);transform:scalex(1);-webkit-transform-origin:bottom left;-moz-transform-origin:bottom left;-ms-transform-origin:bottom left;-o-transform-origin:bottom left;transform-origin:bottom left}h4.jsx-5e88f8953df91cd9:hover{a {\ncolor: #fff;\n}\ncolor: #fff;}'})]})}},33145:function(e,t,s){"use strict";s.d(t,{default:function(){return a.a}});var r=s(48461),a=s.n(r)},48461:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return o},getImageProps:function(){return i}});let r=s(47043),a=s(55346),n=s(65878),l=r._(s(5084));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.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,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let o=n.Image}},function(e){e.O(0,[2972,5878,5861,2971,2117,1744],function(){return e(e.s=14934)}),_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.