1import{j as t}from"./vendor-react-L0q64dx4.js";import{C as N}from"./CmsBodyContent-Cmvc4GUU.js";import{I as v}from"./ImageWithFallback-B2vmH3Hn.js";import{r as y,P as k,ae as P,_ as S,af as p,I as l}from"./index-CFKwIOB_.js";import{P as T}from"./PageHero-C7aacZ-d.js";import{C as c}from"./CmsMainBody-D5jGMQYc.js";import{P as A}from"./PageMeta-CpaDGdoe.js";import{P as E}from"./PageShell-EoitFACq.js";import{n as M,c as i}from"./cmsFields-DPGCgmtc.js";import{Q as x,M as F,A as R}from"./vendor-icons---mCY1un.js";import"./cmsRichText-BBX63rVg.js";import"./browser-eBr90eji.js";function d(e){if(!e)return"";const a=new Date(`${e}T12:00:00`);return Number.isNaN(a.getTime())?e:new Intl.DateTimeFormat("pl-PL",{day:"2-digit",month:"long",year:"numeric"}).format(a)}function C(e){const a=d(e.date),s=e.dateEnd&&e.dateEnd!==e.date?d(e.dateEnd):"";return s?`${a} - ${s}`:a}function D({event:e}){const{t:a}=y(),s=p[e.type]||p.inne,o=`/dla-skoczka/wydarzenia/${e.slug}`;return t.jsxs("article",{className:"grid overflow-hidden rounded-lg border border-gray-100 bg-white shadow-[0_12px_36px_rgba(26,45,90,0.07)] lg:grid-cols-[minmax(240px,38%)_1fr]",children:[t.jsx(l,{to:o,className:"block aspect-[16/9] bg-slate-100 lg:aspect-auto lg:min-h-[190px]",children:t.jsx(v,{src:e.bannerUrl,alt:e.bannerAlt||e.title,className:"h-full w-full object-cover"})}),t.jsxs("div",{className:"flex flex-col p-5 sm:p-6",children:[t.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-[0.12em] text-white",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",backgroundColor:s.color},children:s.label}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-pls-navy/5 px-2.5 py-0.5 text-[11px] font-semibold text-pls-navy",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif"},children:[t.jsx(x,{size:12})," ",C(e)]}),e.location?t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-slate-100 px-2.5 py-0.5 text-[11px] font-semibold text-slate-600",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif"},children:[t.jsx(F,{size:12})," ",e.location]}):null]}),t.jsx(l,{to:o,className:"text-pls-navy transition hover:text-pls-sky",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",fontSize:"clamp(1.2rem, 2vw, 1.6rem)",fontWeight:900,lineHeight:1.12},children:e.title}),e.excerpt?t.jsx("p",{className:"mt-2 line-clamp-2 text-[#4f5b6f]",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",fontSize:"14px",lineHeight:1.65},children:e.excerpt}):null,t.jsxs(l,{to:o,className:"mt-4 inline-flex w-fit items-center gap-2 rounded-md bg-pls-red px-4 py-2.5 text-white transition hover:bg-pls-red-hover",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",fontSize:"12px",fontWeight:800,letterSpacing:"0.03em"},children:[a("events.viewEvent","Zobacz wydarzenie")," ",t.jsx(R,{size:14})]})]})]})}function q(){var n;const{t:e}=y(),{map:a}=k(),{events:s,loading:o,error:f}=P(),r=M((n=a["skydiver.events"])==null?void 0:n.fields),b=i(r,"metaTitle",e("events.metaTitle","Wydarzenia - PL Strefa")),u=i(r,"metaDescription",e("events.metaDescription","Kalendarz wydarzeÅ, boogie, szkoleÅ i terminów specjalnych PL Strefa.")),h=i(r,"heroEyebrow",e("events.heroEyebrow","WYDARZENIA")),g=i(r,"heroTitle",e("events.heroTitle","Wydarzenia dla skoczków")),j=i(r,"heroSubtitle",e("events.heroSubtitle","Boogie, szkolenia, campy i terminy specjalne na strefach PL Strefa.")),z=i(r,"emptyTitle",e("events.emptyTitle","Nie ma teraz opublikowanych wydarzeÅ")),w=i(r,"emptyBody",e("events.emptyBody","WrÃ³Ä za chwilÄ albo odezwij siÄ do nas, jeÅli szukasz konkretnego terminu szkolenia lub campu."));return t.jsxs(E,{children:[t.jsx(A,{title:b,description:u,canonical:"/dla-skoczka/wydarzenia"}),t.jsx(T,{eyebrow:h,title:g,subtitle:j,icon:t.jsx(x,{size:32,className:"text-white/60"})}),t.jsx(c,{value:i(r,"mainBody","")}),t.jsx("section",{className:"bg-[#f8f9fb] py-10 sm:py-12",children:t.jsxs("div",{className:"mx-auto max-w-5xl px-4 sm:px-6 lg:px-8",children:[o&&s.length===0?t.jsx(S,{label:e("events.loading","Åadowanie wydarzeÅ...")}):null,f&&s.length>0?t.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif"},children:e("events.refreshError","Nie udaÅo siÄ teraz odÅwieżyÄ wydarzeÅ. Pokazujemy ostatnio zapisane terminy.")}
1):null,!o&&s.length===0?t.jsxs("div",{className:"rounded-lg border border-dashed border-gray-300 bg-white px-6 py-10 text-center",children:[t.jsx("p",{className:"text-pls-navy",style:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",fontSize:"18px",fontWeight:800},children:z}),t.jsx("div",{className:"mt-3",children:t.jsx(N,{value:w,paragraphClassName:"text-pls-navy/70",paragraphStyle:{fontFamily:"Montserrat, system-ui, -apple-system, Roboto, Arial, sans-serif",fontSize:"15px",lineHeight:1.7}})})]}):null,s.length>0?t.jsx("div",{className:"space-y-5",children:s.map(m=>t.jsx(D,{event:m},m.id))}):null]})}),t.jsx(c,{value:i(r,"bottomBody","")})]})}export{q as WydarzeniaPage};
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.