5 lines
12 KiB
JavaScript
5 lines
12 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="698b5502-691d-0004-e178-d2693aeca1a0")}catch(e){}}();
|
|
module.exports=[500874,(a,b,c)=>{b.exports=a.x("buffer",()=>require("buffer"))},193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},994367,a=>{a.n(a.i(216893))},298936,a=>{a.n(a.i(55385))},711681,a=>{a.n(a.i(539051))},153884,a=>{a.n(a.i(932922))},727894,a=>{a.n(a.i(787368))},530419,a=>{a.n(a.i(627641))},999040,a=>{a.n(a.i(144505))},727501,a=>{a.n(a.i(825138))},514504,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/Reveal.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/Reveal.tsx <module evaluation>","default")},479251,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/Reveal.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/Reveal.tsx","default")},473270,a=>{"use strict";a.i(514504);var b=a.i(479251);a.n(b)},709144,a=>{"use strict";var b=a.i(522734),c=a.i(814747),d=a.i(328860),e=a.i(459341);function f(a){return(!1!==a.frontmatter.public||!e.config.isProduction)&&!(new Date(a.frontmatter.date)>new Date&&e.config.isProduction)}async function g(a,e){let f=c.default.join(process.cwd(),"content",e,"blog"),g=c.default.join(f,`${a}.mdx`);if(!b.default.existsSync(g))return null;let h=b.default.readFileSync(g,"utf8"),{content:i,data:j}=(0,d.default)(h);return{slug:a,frontmatter:j,content:i}}async function h(a){let d=c.default.join(process.cwd(),"content",a,"blog");if(!b.default.existsSync(d))return[];let e=b.default.readdirSync(d).filter(a=>a.endsWith(".mdx"));return(await Promise.all(e.map(async b=>{let c=b.replace(".mdx","");return await g(c,a)}))).filter(a=>null!==a).filter(f).sort((a,b)=>new Date(b.frontmatter.date).getTime()-new Date(a.frontmatter.date).getTime())}async function i(a,b){let c=await h(b),d=c.findIndex(b=>b.slug===a);if(-1===d)return{prev:null,next:null};let e=d>0?c[d-1]:null;return{prev:d<c.length-1?c[d+1]:null,next:e}}function j(a){return Math.ceil(a.split(/\s/g).length/200)}function k(a){return a.split("\n").filter(a=>a.match(/^#{2,4}\s/)).map(a=>{let b=a.match(/^#+/)?.[0].length||2,c=a.replace(/^#+\s/,"").trim();return{id:c.toLowerCase().replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/ß/g,"ss").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")||"heading",text:c,level:b}})}c.default.join(process.cwd(),"content","blog"),a.s(["getAdjacentPosts",()=>i,"getAllPosts",()=>h,"getHeadings",()=>k,"getPostBySlug",()=>g,"getReadingTime",()=>j])},738690,a=>{a.n(a.i(868139))},915229,a=>{"use strict";a.s(["BlogPaginationKeyboardObserver",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call BlogPaginationKeyboardObserver() from the server but BlogPaginationKeyboardObserver is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/blog/BlogPaginationKeyboardObserver.tsx <module evaluation>","BlogPaginationKeyboardObserver")},43482,a=>{"use strict";a.s(["BlogPaginationKeyboardObserver",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call BlogPaginationKeyboardObserver() from the server but BlogPaginationKeyboardObserver is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/blog/BlogPaginationKeyboardObserver.tsx","BlogPaginationKeyboardObserver")},223509,a=>{"use strict";a.i(915229);var b=a.i(43482);a.n(b)},469984,a=>{"use strict";var b=a.i(998511),c=a.i(892858),d=a.i(122490),e=a.i(709144);a.i(280896);var f=a.i(14826),g=a.i(873035),h=a.i(277870),i=a.i(291511),j=a.i(14906),k=a.i(401719),l=a.i(473270),m=a.i(183751),n=a.i(838742),o=a.i(630035),p=a.i(223509);async function q({params:a}){let{locale:b}=await a,c=await (0,m.getTranslations)({locale:b,namespace:"Blog.meta"});return{title:c("title"),description:c("description"),alternates:{canonical:`${o.SITE_URL}/${b}/blog`,languages:{de:`${o.SITE_URL}/de/blog`,en:`${o.SITE_URL}/en/blog`,"x-default":`${o.SITE_URL}/en/blog`}},openGraph:{title:`${c("title")} | E-TIB`,description:c("description"),url:`${o.SITE_URL}/${b}/blog`},twitter:{card:"summary_large_image",title:`${c("title")} | E-TIB`,description:c("description")}}}async function r({params:a}){let{locale:o}=await a;(0,n.setRequestLocale)(o);let q=await (0,m.getTranslations)("Blog"),r=[...await (0,e.getAllPosts)(o)].sort((a,b)=>new Date(b.frontmatter.date).getTime()-new Date(a.frontmatter.date).getTime()),s=r[0],t=r.slice(1);return(0,b.jsxs)("div",{className:"bg-neutral-light min-h-screen",children:[(0,b.jsx)(l.default,{children:(0,b.jsxs)("article",{className:"relative h-[50vh] md:h-[70vh] min-h-[400px] md:min-h-[600px] flex items-center overflow-hidden bg-primary-dark",children:[s&&s.frontmatter.featuredImage&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.default,{src:s.frontmatter.featuredImage.split("?")[0],alt:s.frontmatter.title,fill:!0,className:"absolute inset-0 w-full h-full object-cover opacity-40 md:opacity-60",style:{objectPosition:`${s.frontmatter.focalX??50}% ${s.frontmatter.focalY??50}%`},sizes:"100vw",priority:!0}),(0,b.jsx)("div",{className:"absolute inset-0 bg-neutral-dark/20"})]}),(0,b.jsx)(g.Container,{className:"relative z-10",children:(0,b.jsxs)("div",{className:"max-w-4xl",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4 md:mb-6",children:[(0,b.jsx)(j.Badge,{variant:"saturated",children:q("featuredPost")}),s&&(new Date(s.frontmatter.date)>new Date||!1===s.frontmatter.public)&&(0,b.jsx)("span",{className:"px-2 py-0.5 border border-white/40 text-white/80 rounded uppercase tracking-widest text-[10px] md:text-xs font-bold",children:"Draft Preview"})]}),s&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Heading,{level:1,className:"text-white mb-4 md:mb-8",children:s.frontmatter.title}),(0,b.jsx)("p",{className:"text-base md:text-xl text-white/80 mb-6 md:mb-10 line-clamp-3 md:line-clamp-4 max-w-2xl",children:s.frontmatter.excerpt}),(0,b.jsxs)(k.Button,{href:`/${o}/blog/${s.slug}`,variant:"accent",size:"lg",className:"group w-full md:w-auto md:h-16 md:px-10 md:text-xl",children:[q("readFullArticle"),(0,b.jsx)("span",{className:"ml-3 transition-transform group-hover:translate-x-2",children:"→"})]})]})]})})]})}),(0,b.jsx)(f.Section,{className:"bg-neutral-light py-12 md:py-28",children:(0,b.jsxs)(g.Container,{children:[(0,b.jsx)(l.default,{children:(0,b.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-end justify-between mb-8 md:mb-16 gap-4 md:gap-6",children:[(0,b.jsx)(h.Heading,{level:2,subtitle:q("latestNews"),className:"mb-0",children:q("allArticles")}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:[(0,b.jsx)(j.Badge,{variant:"primary",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:q("categories.all")}),(0,b.jsx)(j.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:q("categories.industry")}),(0,b.jsx)(j.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:q("categories.technical")}),(0,b.jsx)(j.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:q("categories.sustainability")})]})]})}),(0,b.jsx)("div",{className:"grid grid-cols-1 gap-12",children:t.map((a,e)=>(0,b.jsx)(l.default,{delay:50*e,children:(0,b.jsx)(c.default,{href:`/${o}/blog/${a.slug}`,className:"group block focus:outline-none",children:(0,b.jsxs)(i.Card,{tag:"article",className:"relative flex flex-col justify-end border-none shadow-lg hover:shadow-2xl transition-all duration-500 rounded-3xl overflow-hidden min-h-[450px] md:min-h-[500px]",children:[a.frontmatter.featuredImage&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.default,{src:a.frontmatter.featuredImage.split("?")[0],alt:a.frontmatter.title,fill:!0,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-1000 group-hover:scale-105",style:{objectPosition:`${a.frontmatter.focalX??50}% ${a.frontmatter.focalY??50}%`},sizes:"(max-width: 768px) 100vw, 100vw",loading:"lazy"}),(0,b.jsx)("div",{className:"absolute inset-0 bg-neutral-dark/10 group-hover:bg-neutral-dark/5 transition-colors duration-500"})]}),(0,b.jsxs)("div",{className:"relative z-10 w-full p-6 md:p-10 bg-gradient-to-t from-neutral-dark/95 via-neutral-dark/70 to-transparent flex flex-col pt-40",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[a.frontmatter.category&&(0,b.jsx)(j.Badge,{variant:"accent",className:"shadow-md",children:a.frontmatter.category}),(new Date(a.frontmatter.date)>new Date||!1===a.frontmatter.public)&&(0,b.jsx)("span",{className:"px-2 py-0.5 border border-white/40 text-white/90 rounded uppercase tracking-widest text-[10px] md:text-xs font-bold bg-neutral-dark/40 shadow-sm",children:"Draft Preview"})]}),(0,b.jsx)("div",{className:"flex items-center gap-3 text-xs md:text-sm font-bold text-white/80 mb-3 tracking-widest uppercase",children:(0,b.jsx)("time",{dateTime:a.frontmatter.date,suppressHydrationWarning:!0,children:new Date(a.frontmatter.date).toLocaleDateString(o||"de",{year:"numeric",month:"long",day:"numeric"})})}),(0,b.jsx)("h3",{className:"text-xl md:text-3xl font-bold text-white mb-4 group-hover:text-accent transition-colors drop-shadow-md leading-tight max-w-4xl",children:a.frontmatter.title}),a.frontmatter.excerpt&&(0,b.jsx)("p",{className:"text-white/90 text-sm md:text-lg line-clamp-3 mb-6 max-w-4xl drop-shadow-sm leading-relaxed",children:a.frontmatter.excerpt}),(0,b.jsxs)("div",{className:"mt-auto flex items-center justify-between border-t border-white/20 pt-6",children:[(0,b.jsx)("span",{className:"text-accent text-sm md:text-base font-extrabold group-hover:text-white transition-colors",children:q("readMore")}),(0,b.jsx)("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-accent group-hover:bg-accent group-hover:text-primary-dark transition-all duration-300 backdrop-blur-sm border border-white/20",children:(0,b.jsx)("svg",{className:"w-5 h-5 transition-transform group-hover:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})})]})]})]})})},a.slug))}),(0,b.jsxs)("div",{className:"mt-12 md:mt-24 flex justify-center gap-2 md:gap-4",children:[(0,b.jsx)(k.Button,{href:"#",variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base pointer-events-none opacity-50","aria-disabled":"true","aria-keyshortcuts":"ArrowLeft",tabIndex:-1,children:q("prev")}),(0,b.jsx)(k.Button,{href:`/${o}/blog?page=1`,variant:"primary",size:"sm",className:"md:h-11 md:px-6 md:text-base","aria-current":"page",children:"1"}),(0,b.jsx)(k.Button,{href:`/${o}/blog?page=2`,variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base",children:"2"}),(0,b.jsx)(k.Button,{href:`/${o}/blog?page=2`,variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base","aria-keyshortcuts":"ArrowRight",children:q("next")})]}),(0,b.jsx)(p.BlogPaginationKeyboardObserver,{currentPage:1,totalPages:2,locale:o})]})})]})}a.s(["default",()=>r,"generateMetadata",()=>q])}];
|
|
|
|
//# debugId=698b5502-691d-0004-e178-d2693aeca1a0
|
|
//# sourceMappingURL=%5Broot-of-the-server%5D__a1ab7840._.js.map
|