PageSourceSearch

https://www.knf.gov.pl/_next/static/chunks/app/%5Blocale%5D/page-ed1b27792c226e08.js

js knf.gov.pl collected 2026-10-01 09:08:34 UTC 26,481 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{29382:(e,s,t)=>{Promise.resolve().then(t.bind(t,8621)),Promise.resolve().then(t.bind(t,76189)),Promise.resolve().then(t.bind(t,62294)),Promise.resolve().then(t.bind(t,92690)),Promise.resolve().then(t.bind(t,69220)),Promise.resolve().then(t.bind(t,66321)),Promise.resolve().then(t.bind(t,46464)),Promise.resolve().then(t.bind(t,55691)),Promise.resolve().then(t.bind(t,75973)),Promise.resolve().then(t.bind(t,71165)),Promise.resolve().then(t.bind(t,73827)),Promise.resolve().then(t.bind(t,97705)),Promise.resolve().then(t.bind(t,87279)),Promise.resolve().then(t.bind(t,85937)),Promise.resolve().then(t.bind(t,52224)),Promise.resolve().then(t.bind(t,72255)),Promise.resolve().then(t.bind(t,89372))},46464:(e,s,t)=>{"use strict";t.d(s,{HomePageDataProvider:()=>o,s:()=>i});var a=t(95155),r=t(12115),l=t(6636);let n=(0,r.createContext)({slides:[],campaigns:[],loading:!0,error:!1});function i(){return(0,r.useContext)(n)}function o({children:e}){let s=(0,l.Y)(),[t,i]=(0,r.useState)({slides:[],campaigns:[],loading:!0,error:!1});return(0,r.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch(`/api/home-page?locale=${encodeURIComponent(s)}`);if(!t.ok)throw Error("Failed to load home page data");let a=await t.json();e||i({slides:Array.isArray(a.slides)?a.slides:[],campaigns:Array.isArray(a.campaigns)?a.campaigns:[],loading:!1,error:!1})}catch{e||i(e=>({...e,loading:!1,error:!0}))}}(),()=>{e=!0}},[s]),(0,a.jsx)(n.Provider,{value:t,children:e})}},55691:(e,s,t)=>{"use strict";t.d(s,{MultimediaSectionWithApi:()=>c});var a=t(95155),r=t(12115),l=t(72255),n=t(6636);let i=({items:e})=>{let s=(0,n.c)("home"),t=(0,n.Y)();return(0,a.jsx)("section",{className:"py-10",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:s("multimedia")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map(e=>(0,a.jsxs)("a",{href:e.url,className:"group",children:[(0,a.jsx)("div",{className:"aspect-[4/3] overflow-hidden rounded-sm mb-3",children:(0,a.jsx)("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),(0,a.jsx)("h3",{className:"text-lg font-bold text-foreground mb-2 group-hover:text-primary transition-colors",children:e.title}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-bold text-primary group-hover:text-sky",children:[s("showGallery"),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})]},e.id))}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)(l.Link,{href:"en"===t?"/multimedia":"/dla_mediow",className:"inline-flex items-center gap-2 text-foreground hover:text-sky transition-colors group",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:s("allMultimedia")}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})})]})})};function o(){return(0,a.jsx)("section",{className:"py-10",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("div",{className:"h-8 w-44 skeleton-loading mb-8",style:{maxWidth:"14rem"}}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"group",children:[(0,a.jsx)("div",{className:"aspect-[4/3] rounded-sm mb-3 skeleton-loading"}),(0,a.jsx)("div",{className:"h-5 w-full skeleton-loading mb-2"}),(0,a.jsx)("div",{className:"h-4 w-24 skeleton-loading"})]},e))}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsx)("div",{className:"h-4 w-28 skeleton-loading inline-block"})})]})})}function c(){let e=(0,n.Y)(),[s,t]=(0,r.useState)([]),[l,c]=(0,r.useState)(!0),[d,m]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let s=!1;return c(!0),async function(){try{let a=await fetch(`/api/multimedia?items=4&locale=${encodeURIComponent(e)}`);
1if(!a.ok)throw Error("Failed to load multimedia");let r=await a.json(),l=Array.isArray(r)?r:[];s||(l.length>0?t(l):m(!0))}catch{s||m(!0)}finally{s||c(!1)}}(),()=>{s=!0}},[e]),l)?(0,a.jsx)(o,{}):d||0===s.length?(0,a.jsx)("section",{className:"py-10",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:"Multimedia"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Nie udało się załadować multimedi\xf3w. Spr\xf3buj ponownie p\xf3źniej."})]})}):(0,a.jsx)(i,{items:s})}},62294:(e,s,t)=>{"use strict";t.d(s,{CareerSection:()=>d});var a=t(95155),r=t(72255),l=t(4903),n=t(50770),i=t(96840),o=t(16491),c=t(6636);let d=()=>{let e=(0,c.c)("home"),s=[{icon:l.A,label:e("jobOffers"),url:"/kariera/oferty_pracy"},{icon:n.A,label:e("careerAboutUs"),url:"/o_nas/urzad_komisji/kariera/o_nas"},{icon:i.A,label:e("howWeRecruit"),url:"/o_nas/urzad_komisji/kariera/jak_rekrutujemy"},{icon:o.A,label:e("whatMattersToUs"),url:"/o_nas/urzad_komisji/kariera/wazne_dla_nas"}];return(0,a.jsx)("section",{className:"py-10 max-w-[1920px] mx-auto",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e("careerTitle")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(e=>(0,a.jsxs)(r.Link,{href:e.url,className:"flex items-center gap-3 p-4 border border-border hover:bg-secondary transition-all group rounded-sm",children:[(0,a.jsx)(e.icon,{className:"w-10 h-10 text-sky mx-1"}),(0,a.jsx)("span",{className:"text-sm font-medium text-foreground group-hover:text-sky transition-colors",children:e.label}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]},e.label))})]})})}},66321:(e,s,t)=>{"use strict";t.d(s,{HeroSection:()=>m});var a=t(95155),r=t(12115),l=t(72255),n=t(6636);let i=({items:e})=>{let s=(0,n.c)("home"),[t,i]=(0,r.useState)(0),[o,c]=(0,r.useState)(!0),d=e=>e.replace(/<br\s*\/?>/gi," ").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim(),m=(0,r.useCallback)(()=>{i(s=>(s+1)%e.length)},[e.length]),x=(0,r.useCallback)(()=>{i(s=>(s-1+e.length)%e.length)},[e.length]);(0,r.useEffect)(()=>{if(!o)return;let e=setInterval(m,5e3);return()=>clearInterval(e)},[o,m]);let h=e[t];return(0,a.jsxs)("section",{className:"relative w-full max-w-[1920px] mx-auto mb-2",children:[(0,a.jsxs)("div",{className:"relative w-full aspect-[4/3] sm:aspect-[16/9] lg:aspect-[9/5] max-h-[320px] sm:max-h-[400px] lg:max-h-[465px] overflow-hidden bg-secondary",children:[e.map((e,s)=>(0,a.jsx)("div",{className:`absolute inset-0 transition-opacity duration-700 ${s===t?"opacity-100 z-10":"opacity-0 z-0"}`,children:(0,a.jsx)("img",{src:e.image,alt:d(e.title),className:"absolute inset-0 size-full object-cover object-center sm:object-[center_35%] lg:object-left xl:object-[40%_center]",loading:0===s?"eager":"lazy",decoding:"async"})},e.id)),(0,a.jsxs)("div",{className:"relative w-full h-full",children:[(0,a.jsx)("button",{onClick:x,onMouseEnter:()=>c(!1),onMouseLeave:()=>c(!0),className:"absolute left-4 md:left-10 top-1/2 -translate-y-1/2 w-12 h-12 md:w-14 md:h-14  bg-white/20 backdrop-blur-md border border-white/30  flex justify-center items-center rounded-full cursor-pointer z-20  hover:bg-white/30 hover:border-white/50 hover:scale-105 active:scale-95 transition-all duration-300 shadow-lg","aria-label":"Poprzedni slajd",children:(0,a.jsx)("span",{className:"icon-long-arrow-left text-sky text-xl w-6 h-6 md:w-7 md:h-7 text-white drop-shadow-md"})}),(0,a.jsx)("button",{onClick:m,onMouseEnter:()=>c(!1),onMouseLeave:()=>c(!0),className:"absolute right-4 md:right-10 top-1/2 -translate-y-1/2 w-12 h-12 md:w-14 md:h-14  bg-white/20 backdrop-blur-md border border-white/30  flex justify-center items-center rounded-full cursor-pointer z-20  hover:bg-white/30 hover:border-white/50 hover:scale-105 active:scale-95 transition-all duration-300 shadow-lg","aria-label":"Następny slajd",children:(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl w-6 h-6 md:w-7 md:h-7 text-white drop-shadow-md"})})]}),(0,a.jsx)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-2 z-[999]",children:e.map((e,s)=>(0,a.jsx)("button",{onClick:()=>i(s),className:`w-2 h-2 rounded-full transition-all duration-300 ${s===t?"w-6 bg-white":"bg-white/50 hover:bg-white/70"}`,"aria-label":`Przejdź do slajdu ${s+1}`},s))})]}),(0,a.jsx)("div",{className:"py-8 bg-secondary",children:(0,a.jsxs)("div",{className:"knf-container ",children:[(0,a.jsx)(l.Link,{href:h.url,children:(0,a.jsx)("h2",{className:"text-[2.33em] font-bold text-foreground mb-4 hover:text-primary transition-colors",children:d(h.title)})}),(0,a.jsxs)(l.Link,{href:h.url,className:"inline-flex items-center gap-2 text-primary hover:text-sky transition-colors group",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:s("readMore")}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})]})}),(0,a.jsx)("div",{className:"h-1 bg-border",children:(0,a.jsx)("div",{className:"h-full bg-primary opacity-20 transition-all duration-300",style:{width:`${(t+1)/e.length*100}%`}})})]})};var o=t(46464);function c(){return(0,a.jsxs)("section",{className:"relative w-screen max-w-none mb-2",children:[(0,a.jsx)("div",{className:"relative w-full aspect-[4/3] sm:aspect-[16/9] lg:aspect-[9/5] max-h-[320px] sm:max-h-[400px] lg:max-h-[465px] overflow-hidden rounded-none skeleton-loading"}),(0,a.jsx)("div",{className:"py-8 bg-secondary",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("div",{className:"h-8 w-3/4 max-w-xl skeleton-loading mb-4"}),(0,a.jsx)("div",{className:"h-4 w-24 skeleton-loading"})]})}),(0,a.jsx)("div",{className:"h-1 bg-border",children:(0,a.jsx)("div",{className:"h-full w-1/4 skeleton-loading"})})]})}function d(){return(0,a.jsx)("section",{className:"relative w-screen max-w-none mb-2",children:(0,a.jsx)("div",{className:"py-12 bg-secondary",children:(0,a.jsx)("div",{className:"knf-container text-center",children:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Nie udało się załadować banera. Spr\xf3buj ponownie p\xf3źniej."})})})})}function m(){let{slides:e,loading:s,error:t}=(0,o.s)();return s?(0,a.jsx)(c,{}):t||0===e.length?(0,a.jsx)(d,{}):(0,a.jsx)(i,{items:e})}},69220:(e,s,t)=>{"use strict";t.d(s,{FinancialEducationSection:()=>d});
1var a=t(95155),r=t(72255),l=t(41641),n=t(21362),i=t(12115),o=t(6636);let c=({showTitle:e})=>{let[s,t]=(0,i.useState)(()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[r,c]=(0,i.useState)({}),[d,m]=(0,i.useState)(null),[x,h]=(0,i.useState)(null),u=(0,i.useRef)(null),g=function(){let[e,s]=i.useState(void 0);return i.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),t=()=>{s(window.innerWidth<768)};return e.addEventListener("change",t),s(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),p=(0,o.c)("calendar"),f=p("days").split(","),j=p("months").split(",");(0,i.useEffect)(()=>{let e=!1;return fetch("/api/seminary-dates").then(e=>e.json()).then(s=>{!e&&s?.byDate&&c(s.byDate)}).catch(()=>{}),()=>{e=!0}},[]);let{daysInMonth:v,startingDay:N}=(0,i.useCallback)(e=>{let s=e.getFullYear(),t=e.getMonth(),a=new Date(s,t,1);return{daysInMonth:new Date(s,t+1,0).getDate(),startingDay:0===a.getDay()?6:a.getDay()-1}},[])(s),b=s.getFullYear(),w=s.getMonth(),k=String(w+1).padStart(2,"0"),y=(0,i.useCallback)(e=>{let s=String(e).padStart(2,"0");return r[`${b}-${k}-${s}`]??[]},[r,b,k]),S=(0,i.useCallback)(()=>{m(null),h(null)},[]),A=(0,i.useCallback)((e,s,t)=>{if(m({day:e,events:s}),t&&u.current){let e=t.getBoundingClientRect(),s=u.current.getBoundingClientRect();h({x:e.left-s.left+e.width/2,y:e.top-s.top})}},[]);(0,i.useEffect)(()=>{if(!g||!d)return;let e=e=>{u.current&&!u.current.contains(e.target)&&S()};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[g,d,S]);let P=(e,s)=>{if(g)return;let t=y(e);
10!==t.length&&A(e,t,s)},C=(e,s)=>{if(!g)return;let t=y(e);0===t.length||d?.day===e?S():A(e,t,s)};return(0,a.jsxs)("div",{ref:u,className:"flex flex-col p-4 relative",onPointerLeave:()=>{g||S()},children:[e&&(0,a.jsx)("h2",{className:"knf-section-title",children:"Wydarzenia edukacyjne"}),(0,a.jsxs)("div",{className:"m-auto",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{t(new Date(s.getFullYear(),s.getMonth()-1,1)),S()},className:"p-2 hover:bg-secondary rounded-sm transition-colors","aria-label":"Poprzedni miesiąc",children:(0,a.jsx)(l.A,{className:"w-5 h-5"})}),(0,a.jsxs)("h3",{className:"text-sm font-semibold text-foreground",children:[j[s.getMonth()]," ",s.getFullYear()]}),(0,a.jsx)("button",{type:"button",onClick:()=>{t(new Date(s.getFullYear(),s.getMonth()+1,1)),S()},className:"p-2 hover:bg-secondary rounded-sm transition-colors","aria-label":"Następny miesiąc",children:(0,a.jsx)(n.A,{className:"w-5 h-5"})})]}),(0,a.jsx)("div",{className:"grid grid-cols-7 gap-1 mb-2",children:f.map(e=>(0,a.jsx)("div",{className:"p-2 text-xs text-center text-muted-foreground font-medium",children:e},e))}),(0,a.jsx)("div",{className:"grid grid-cols-7 gap-1",children:(()=>{let e=[],s=new Date,t=s.getFullYear()===b&&s.getMonth()===w,r=s.getDate();for(let s=0;s<N;s++)e.push((0,a.jsx)("div",{className:"p-2"},`empty-${s}`));for(let s=1;s<=v;s++){let l=y(s),n=l.length>0,i=Math.min(l.length,3),o=t&&s===r;e.push((0,a.jsxs)("button",{type:"button",className:`relative p-2 text-xs rounded-sm transition-colors ${n?"bg-primary text-primary-foreground font-semibold hover:bg-primary/90 curs
1or-pointer":o?"text-primary font-bold border-2 border-primary cursor-default":"text-foreground hover:bg-secondary cursor-default"}`,onPointerEnter:e=>P(s,e.currentTarget),onClick:e=>{e.stopPropagation(),C(s,e.currentTarget)},children:[s,n&&(0,a.jsx)("span",{className:"absolute bottom-1 left-1/2 -translate-x-1/2 flex gap-0.5 justify-center items-center",children:Array.from({length:i}).map((e,s)=>(0,a.jsx)("span",{className:"w-1 h-1 rounded-full bg-primary-foreground shrink-0"},s))})]},s))}return e})()})]}),d&&d.events.length>0&&x&&(0,a.jsx)("div",{className:"absolute z-50 min-w-[200px] max-w-[320px] py-2 px-3 bg-popover text-popover-foreground text-xs shadow-lg border border-border rounded-md",style:{left:x.x,top:x.y-8,transform:"translate(-50%, -100%)"},onClick:e=>e.stopPropagation(),children:(0,a.jsx)("ul",{className:"space-y-3 list-none p-0 m-0",children:d.events.map((e,s)=>(0,a.jsx)("li",{children:e.href?(0,a.jsx)("a",{href:e.href,className:"text-primary hover:underline block",children:e.title}):(0,a.jsx)("span",{className:"block",children:e.title})},s))})})]})},d=()=>{let e=(0,o.c)("home");return(0,a.jsx)("section",{className:"py-10 bg-secondary max-w-[1920px] mx-auto",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e("financialEducation")}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,a.jsx)("div",{className:"col-span-1 lg:col-span-2",children:(0,a.jsxs)("div",{className:"relative bg-[url(/images/slider/edukacja.png)] w-full min-h-[220px] lg:h-full rounded-sm overflow-hidden",style:{backgroundSize:"140%",backgroundPositionX:"100%",backgroundPositionY:"65%"},children:[(0,a.jsx)("div",{className:"absolute right-0 top-[50%] translate-y-[-50%] w-[360px] backdrop-blur-sm p-4"}),(0,a.jsxs)(r.Link,{href:"/co_robimy/edukacja_finansowa",className:"absolute right-4 bottom-4 inline-flex items-center gap-2 rounded-xs px-3 py-1.5 text-2xl font-large text-white underline transition-colors group",children:[(0,a.jsx)("span",{children:"Więcej"}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-white text-xl group-hover:translate-x-1 transition-transform"})]})]})}),(0,a.jsxs)("div",{className:"bg-white rounded-sm lg:col-span-1",children:[(0,a.jsx)(c,{showTitle:!1}),(0,a.jsx)("div",{className:"flex items-center justify-center px-4 pb-4",children:(0,a.jsxs)(r.Link,{href:`/dla_rynku/edukacja_cedur/seminaria_szkoleniowe/seminaria_${new Date().getFullYear()}`,className:"inline-flex items-center justify-center gap-2 text-foreground hover:text-sky transition-colors group",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:e("eventSchedule")}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})})]})]})]})})}},71165:(e,s,t)=>{"use strict";t.d(s,{SupervisoryBlogSectionWithApi:()=>o});var a=t(95155),r=t(12115),l=t(75779),n=t(6636);function i(){return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"h-8 w-56 skeleton-loading mb-6"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-10 w-full",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-14 h-14 skeleton-loading rounded-sm"}),(0,a.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,a.jsx)("div",{className:"h-4 w-full skeleton-loading"}),(0,a.jsx)("div",{className:"h-4 w-3/4 skeleton-loading"})]})]},e))}),(0,a.jsx)("div",{className:"h-4 w-28 skeleton-loading mt-6"})]})}function o({title:e,viewAllUrl:s,viewAllText:t}){let o=(0,n.Y)(),[c,d]=(0,r.useState)([]),[m,x]=(0,r.useState)(!0),[h,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=!1;return x(!0),async function(){try{let s=await fetch(`/api/supervisory-blog?locale=${encodeURIComponent(o)}`);if(!s.ok)throw Error("Failed to load supervisory blog");let t=await s.json(),a=Array.isArray(t)?t:[];e||(a.length>0?d(a):u(!0))}catch{e||u(!0)}finally{e||x(!1)}}(),()=>{e=!0}},[o]),m)?(0,a.jsx)(i,{}):h||0===c.length?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Could not load supervisory blog entries. Please try again later."})]}):(0,a.jsx)(l.N,{title:e,items:c,viewAllUrl:s,viewAllText:t})}},73827:(e,s,t)=>{"use strict";t.r(s),t.d(s,{AccordionNavLabelLink:()=>l});var a=t(95155);t(12115);var r=t(72255);function l({href:e,className:s,children:t,disabled:l=!1}){let n=e?.startsWith("http");return l?(0,a.jsx)("span",{className:s,children:t}):(0,a.jsx)(r.Link,{href:e,className:s,target:n?"_blank":void 0,rel:n?"noreferrer":void 0,onClick:e=>{e.stopPropagation()},children:t})}},75779:(e,s,t)=>{"use strict";t.d(s,{N:()=>l});var a=t(95155),r=t(72255);let l=({title:e,items:s,viewAllUrl:t,viewAllText:l})=>(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-10 w-full",children:s.map(e=>{let s=e.url?.startsWith("http"),t="flex items-start gap-4 group knf-card transition-all",l=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"knf-date-badge flex-shrink-0 rounded-sm",children:[(0,a.jsx)("span",{className:"knf-date-day",children:e.day}),(0,a.jsx)("span",{className:"knf-date-month",children:e.month})]}),(0,a.jsxs)("div",{className:"flex-1 flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-sm text-foreground group-hover:text-primary transition-colors font-bold",children:e.title}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})]});return s?(0,a.jsx)("a",{href:e.url,className:t,children:l},e.id):(0,a.jsx)(r.Link,{href:e.url,className:t,children:l},e.id)})}),(0,a.jsxs)(r.Link,{href:t,className:"inline-flex items-center gap-2 mx-auto mt-6 text-foreground hover:text-sky transition-colors group self-start",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:l}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})]})},75973:(e,s,t)=>{"use strict";t.d(s,{NewsSectionWithApi:()=>o});var a=t(95155),r=t(12115),l=t(75779),n=t(6636);function i(){return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"h-8 w-48 skeleton-loading mb-6"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-10 w-full",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-14 h-14 skeleton-loading rounded-sm"}),(0,a.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,a.jsx)("div",{className:"h-4 w-full skeleton-loading"}),(0,a.jsx)("div",{className:"h-4 w-3/4 skeleton-loading"})]})]},e))}),(0,a.jsx)("div",{className:"h-4 w-24 skeleton-loading mt-6"})]})}function o({title:e,viewAllUrl:s,viewAllText:t}){let o=(0,n.Y)(),[c,d]=(0,r.useState)([]),[m,x]=(0,r.useState)(!0),[h,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=!1;return x(!0),async function(){try{let s=await fetch(`/api/news?locale=${encodeURIComponent(o)}`);if(!s.ok)throw Error("Failed to load news");let t=await s.json(),a=Array.isArray(t)?t:[];e||(a.length>0?d(a):u(!0))}catch{e||u(!0)}finally{e||x(!1)}}(),()=>{e=!0}}
1,[o]),m)?(0,a.jsx)(i,{}):h||0===c.length?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Nie udało się załadować aktualności. Spr\xf3buj ponownie p\xf3źniej."})]}):(0,a.jsx)(l.N,{title:e,items:c,viewAllUrl:s,viewAllText:t})}},76189:(e,s,t)=>{"use strict";t.d(s,{CampaignsSectionWithApi:()=>c});var a=t(95155),r=t(72255),l=t(6636);let n=({items:e})=>{let s=(0,l.c)("home");return(0,a.jsx)("section",{className:"py-10 bg-secondary max-w-[1920px] mx-auto",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:s("campaigns")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map(e=>(0,a.jsxs)(r.Link,{href:e.url,className:"bg-background overflow-hidden border border-border hover:shadow-lg transition-all group rounded-sm",children:[(0,a.jsx)("div",{className:"aspect-[4/3] overflow-hidden",children:(0,a.jsx)("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-foreground mb-2 group-hover:text-primary transition-colors",children:e.title}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-bold text-primary group-hover:text-sky",children:[s("showCampaignPage"),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})]})]},e.id))}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)(r.Link,{href:"/kampanie",className:"inline-flex items-center gap-2 text-foreground hover:text-sky transition-colors group",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:s("allCampaigns")}),(0,a.jsx)("span",{className:"icon-long-arrow-right text-sky text-xl group-hover:translate-x-1 transition-transform"})]})})]})})};var i=t(46464);function o(){return(0,a.jsx)("section",{className:"py-10 bg-secondary max-w-[1920px]",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("div",{className:"h-8 w-40 skeleton-loading mb-8",style:{maxWidth:"12rem"}}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"bg-background overflow-hidden border border-border rounded-sm",children:[(0,a.jsx)("div",{className:"aspect-[4/3] skeleton-loading"}),(0,a.jsxs)("div",{className:"p-8 space-y-3",children:[(0,a.jsx)("div",{className:"h-5 w-4/5 skeleton-loading"}),(0,a.jsx)("div",{className:"h-3 w-full skeleton-loading"}),(0,a.jsx)("div",{className:"h-3 w-3/4 skeleton-loading"}),(0,a.jsx)("div",{className:"h-3 w-20 skeleton-loading mt-2"})]})]},e))}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsx)("div",{className:"h-4 w-32 skeleton-loading inline-block"})})]})})}function c(){let{campaigns:e,loading:s,error:t}=(0,i.s)();return s?(0,a.jsx)(o,{}):t||0===e.length?(0,a.jsx)("section",{className:"py-10 bg-secondary max-w-[1920px]",children:(0,a.jsxs)("div",{className:"knf-container",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:"Kampanie"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Nie udało się załadować kampanii. Spr\xf3buj ponownie p\xf3źniej."})]})}):(0,a.jsx)(n,{items:e})}},92690:(e,s,t)=>{"use strict";t.d(s,{CommunicatesSectionWithApi:()=>o});var a=t(95155),r=t(12115),l=t(75779),n=t(6636);function i(){return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"h-8 w-56 skeleton-loading mb-6"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-10 w-full",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-14 h-14 skeleton-loading rounded-sm"}),(0,a.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,a.jsx)("div",{className:"h-4 w-full skeleton-loading"}),(0,a.jsx)("div",{className:"h-4 w-3/4 skeleton-loading"})]})]},e))}),(0,a.jsx)("div",{className:"h-4 w-28 skeleton-loading mt-6"})]})}function o({title:e,viewAllUrl:s,viewAllText:t}){let o=(0,n.Y)(),[c,d]=(0,r.useState)([]),[m,x]=(0,r.useState)(!0),[h,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=!1;return x(!0),async function(){try{let s=await fetch(`/api/communicates?locale=${encodeURIComponent(o)}`);if(!s.ok)throw Error("Failed to load communicates");let t=await s.json(),a=Array.isArray(t)?t:[];e||(a.length>0?d(a):u(!0))}catch{e||u(!0)}finally{e||x(!1)}}(),()=>{e=!0}}
1,[o]),m)?(0,a.jsx)(i,{}):h||0===c.length?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h2",{className:"knf-section-title",children:e}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Nie udało się załadować komunikat\xf3w. Spr\xf3buj ponownie p\xf3źniej."})]}):(0,a.jsx)(l.N,{title:e,items:c,viewAllUrl:s,viewAllText:t})}}},e=>{e.O(0,[4545,8500,3865,7353,6609,2717,7790,5799,9818,8441,3794,7358],()=>e(e.s=29382)),_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.