PageSourceSearch

https://www.crosspaint.tv/_next/static/chunks/63-d4c51dba6045c9d5.js?dpl=dpl_FEma8ZTCRe8CuRqAj8e9Wpxf4vS3

js crosspaint.tv collected 2026-09-25 02:39:45 UTC 95,603 bytes, 1,020 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63],{3733:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var l=a(67255),i=a(82079),s=a(71740),n=a.n(s),r=a(55385),o=a(28791),c=a(84474),d=a(51209),u=a(11758),m=a(65016),g=a(37602),p=a(84535);function h({topics:e,ctas:t,...a}){let i=e?.filter(e=>(e?.videoCount??0)>0)??[];return i.length?(0,l.jsx)("section",{className:"bg-canvas section-pad-medium",...(0,o.A)(a),children:(0,l.jsxs)("div",{className:"mx-auto w-full max-w-xxlarge px-8 max-md:px-4",children:[(0,l.jsx)("div",{className:"flex w-full flex-col gap-12 md:gap-16",children:i.map((e,t)=>(0,l.jsx)(f,{topic:e},e._id??t))}),(0,l.jsx)(u.A,{ctas:t,className:"mt-module-gap justify-center gap-3"})]})}):null}function f({topic:e}){let t=(0,r.Q)(e.name??"").trim(),a=(0,r.Q)(e.videos?.[0]?.language??"")||void 0,s=(0,g.N3)(a??"de"),[n,o]=(0,i.useState)(e.videos??[]),[c,d]=(0,i.useState)(!1),u=e.videoCount-n.length;async function h(){d(!0);let t=await (0,p.k)(e._id,a??"de",n.length);o(e=>[...e,...t??[]]),d(!1)}return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-5 justify-start",children:[(0,l.jsx)("header",{className:"mx-auto flex w-full flex-col items-start gap-2",children:t&&(0,l.jsx)("h2",{className:"font-display text-h2 text-ink leading-tight font-medium tracking-[-0.01em]",children:t})}),(0,l.jsxs)("div",{className:"bg-canvas-muted w-full rounded-lg",children:[(0,l.jsx)("div",{className:"grid w-full grid-cols-2 gap-4 p-4 md:grid-cols-4 md:gap-8 md:p-8",children:n.map(e=>(0,l.jsx)(x,{video:e},e._id))}),u>0&&(0,l.jsx)("div",{className:"flex justify-center pb-6",children:(0,l.jsx)("button",{onClick:h,disabled:c,className:(0,m.cn)("rounded-full border border-ink/20 px-5 py-2 text-small font-medium text-ink","transition-colors duration-150 hover:bg-ink/5","disabled:opacity-50 disabled:cursor-not-allowed"),children:c?s.loading:s.loadMore.replace("{remaining}",String(u))})})]})]})}function x({video:e}){let t=(0,r.Q)(e.title??"").trim(),a=(0,r.Q)(e.language??"")||void 0,i=e.metadata?.slug?.current?(0,c.A)(e,{base:!1,language:a}):void 0,s=(0,m.cn)("group bg-canvas flex h-full flex-col gap-3 rounded-lg p-2.5","shadow-lg","transition-transform duration-200 motion-safe:hover:-translate-y-1","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"),o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,m.cn)("relative aspect-[340/200] w-full overflow-hidden rounded-md","shadow-md"),children:(0,l.jsx)(d.E9,{className:"absolute inset-0 h-full w-full object-cover",image:e.thumbnail,width:488,sizes:"(min-width: 1280px) 244px, (min-width: 768px) calc((100vw - 304px) / 4), calc((100vw - 100px) / 2)",alt:t})}),t&&(0,l.jsxs)("div",{className:"flex flex-col gap-1 px-2.5 pb-2.5",children:[(0,l.jsx)("p",{className:"text-regular text-ink font-semibold leading-normal",children:t}),e.publishedAt&&(0,l.jsx)("p",{className:"text-tiny text-ink-muted",children:function(e,t){let[a,l,i]=e.split("-").map(Number);return new Intl.DateTimeFormat("de"===t?"de-DE":"en-US",{year:"numeric",month:"short",day:"numeric"}).format(new Date(a,l-1,i))}(e.publishedAt,a??"de")})]})]});return i?(0,l.jsx)(n(),{href:i,className:s,"aria-label":t||void 0,children:o}):(0,l.jsx)("div",{className:s,children:o})}},5043:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(67255),i=a(65016);let s={sm:"size-6",md:"size-8",lg:"size-10"},n={sm:14,md:16,lg:20};function r({size:e="md",className:t}){let a=n[e];return(0,l.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("grid shrink-0 place-items-center rounded-full bg-canvas-muted text-ink",s[e],t),children:(0,l.jsx)("svg",{width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M6.667 10l2.5 2.5L13.333 7.5M18.333 10a8.333 8.333 0 1 1-16.666 0 8.333 8.333 0 0 1 16.666 0Z",stroke:"currentColor",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"})})})}},7701:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(67255),i=a(76508),s=a(65016);function n({direction:e,onClick:t,disabled:a,label:r,className:o,style:c}
1){let d="prev"===e,u=d?i._42:i.tSz;return(0,l.jsx)("button",{type:"button",onClick:t,disabled:a,"aria-label":r??(d?"Previous slide":"Next slide"),style:c,className:(0,s.cn)("grid size-11 place-items-center rounded-button border","border-neutral-darkest bg-canvas text-ink shadow-sm","transition-[opacity,background-color] duration-150 ease-out","hover:bg-canvas-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","disabled:pointer-events-none disabled:opacity-0",o),children:(0,l.jsx)(u,{className:"size-4","aria-hidden":!0})})}},11758:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(67255),i=a(82079),s=a(54454),n=a(67853),r=a(65016);function o({ctas:e,className:t,ctaClassName:a}){let c=e?.filter(e=>!!(0,n.f)(e))??[];return c.length?(0,l.jsx)("div",{className:(0,r.cn)("flex flex-wrap items-center gap-[.5em]",t),children:c.map((e,t)=>(0,i.createElement)(s.default,{className:(0,r.cn)("max-sm:w-full",a),...e,key:e._key??t}))}):null}},11888:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var l=a(67255),i=a(82079),s=a(71740),n=a.n(s),r=a(55385),o=a(28791),c=a(84474),d=a(80663),u=a(74619),m=a(51209),g=a(65016);function p({title:e,intro:t,tabsHeading:a,tabs:s,...n}){let c=s??[],d=(0,i.useId)(),[m,x]=(0,i.useState)(0),[b,v]=(0,i.useState)(null),[y,w]=(0,i.useState)(!1),_=Math.min(m,c.length-1),j=(0,i.useRef)(0),k=(0,i.useRef)([]),N=(0,i.useRef)([]),$=(0,i.useRef)(null),A=(0,i.useCallback)(()=>{$.current&&clearInterval($.current),$.current=setInterval(()=>x(e=>(e+1)%c.length),6e3)},[c.length]);if((0,i.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>w(!e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,i.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=window.matchMedia("(max-width: 767px)"),t=e=>{e.matches?$.current&&clearInterval($.current):A()};return e.matches||A(),e.addEventListener("change",t),()=>{$.current&&clearInterval($.current),e.removeEventListener("change",t)}},[A]),(0,i.useEffect)(()=>{if("u"<typeof IntersectionObserver)return;let e=window.matchMedia("(max-width: 767px)"),t=null,a=()=>{t?.disconnect(),t=null,e.matches&&(t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).map(e=>Number(e.target.dataset.tabIndex)).filter(e=>!Number.isNaN(e));t.length&&x(Math.min(...t))},{rootMargin:"-35% 0px -55% 0px",threshold:0}),N.current.forEach(e=>{e&&t.observe(e)}))};return a(),e.addEventListener("change",a),()=>{t?.disconnect(),e.removeEventListener("change",a)}},[c.length]),(0,i.useEffect)(()=>{j.current!==_&&(v(j.current),j.current=_)},[_]),!c.length)return null;let E=c[_],C=(0,r.Q)(a??"").trim(),L=e=>{let t=(e+c.length)%c.length;x(t),A(),k.current[t]?.focus()};return(0,l.jsx)("section",{className:"bg-canvas section-pad-medium overflow-hidden",...(0,o.A)(n),children:(0,l.jsxs)("div",{className:"mx-auto w-full max-w-xxlarge px-8 max-md:px-4",children:[(0,l.jsx)(u.A,{title:e,intro:t,align:"start",className:"mx-0 max-w-xlarge gap-5"}),(0,l.jsxs)("div",{className:"mt-6 grid grid-cols-1 items-start gap-12 md:gap-16 lg:grid-cols-2 lg:items-center",children:[(0,l.jsxs)("div",{className:"flex w-full flex-col",children:[C&&(0,l.jsx)("p",{id:`${d}-heading`,className:"text-large text-ink pb-5 font-semibold leading-relaxed",children:C}),(0,l.jsx)("div",{"aria-labelledby":C?`${d}-heading`:void 0,className:"flex flex-col",children:c.map((e,t)=>{let a=t===_,i=(0,r.Q)(e.title??"").trim(),s=(0,r.Q)(e.subtitle??"").trim();return(0,l.jsx)("div",{ref:e=>{N.current[t]=e},"data-tab-index":t,className:"w-full",children:(0,l.jsxs)("div",{className:(0,g.cn)("flex flex-col gap-4 border-l-4 py-4 pl-6","transition-colors duration-150 motion-reduce:transition-none",a?"border-ink":"border-canvas-muted"),children:[(0,l.jsx)("button",{ref:e=>{k.current[t]=e},type:"button","aria-current":a||void 0,onClick:()=>{x(t),A()},onKeyDown:e=>((e,t)=>{switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),L(t+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),L(t-1);break;case"Home":e.preventDefault(),L(0);break;case"End":e.preventDefault(),L(c.length-1)}})(e,t),className:(0,g.cn)("block w-full text-start","rounded-sm focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-accent"),children:(0,l.jsxs)("span",{className:"flex flex-col gap-1 leading-relaxed",children:[i&&(0,l.jsx)("span",{className:"text-medium text-ink font-semibold",children:i}),s&&(0,l.jsx)("span",{className:"text-regular text-ink font-normal",children:s})]})}),(0,l.jsx)(f,{tab:e})]})},e._key??t)})})]}),(0,l.jsxs)("div",{"aria-live":"polite",className:"relative w-full overflow-hidden rounded-sm max-md:hidden",children:[null!==b&&b!==_&&(0,l.jsx)("div",{"aria-hidden":!0,
1className:"anim-fade-out motion-reduce:animate-none absolute inset-0",onAnimationEnd:()=>v(null),children:(0,l.jsx)(h,{tab:c[b],allowMotion:y})}),(0,l.jsx)(h,{tab:E,allowMotion:y},_)]})]})]})})}function h({tab:e,allowMotion:t}){if(!e)return null;let a=(0,r.Q)(e.video?.asset?.url??"").trim(),i=(0,r.Q)(e.video?.asset?.mimeType??"").trim(),s=!!e.image?.image?.asset;if(a&&t){let t=s?(0,d.d)(e.image.image).width(2e3).auto("format").url():void 0;return(0,l.jsx)("video",{poster:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata","aria-hidden":!0,className:"anim-fade-in motion-reduce:animate-none block h-auto w-full object-contain",children:(0,l.jsx)("source",{src:a,type:i||void 0})})}return s?(0,l.jsx)(m.oC,{img:e.image,width:1600,sizes:"(min-width: 1024px) 50vw, 100vw",className:"anim-fade-in motion-reduce:animate-none block h-auto w-full object-contain"}):null}function f({tab:e}){let t=e.link,a=(0,r.Q)(t?.type??"");if("internal"!==a&&"external"!==a)return null;let i="internal"===a&&t?.internal?(0,c.A)(t.internal,{base:!1,params:t.params??void 0,language:(0,r.Q)(t.internal.language??"")||void 0}):"external"===a&&t?.external?(0,r.Q)(t.external):void 0;if(!i)return null;let s=(0,r.Q)(e.linkLabel??"").trim()||(0,r.Q)(t?.label??"").trim()||(0,r.Q)(t?.internal?.title??"").trim();if(!s)return null;let o=(0,g.cn)("group/link inline-flex items-center gap-1.5 self-start","text-regular font-semibold text-accent-darker","underline-offset-2 hover:underline","focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-accent rounded-sm"),d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:s}),(0,l.jsx)(x,{})]});return"external"===a?(0,l.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:o,children:d}):(0,l.jsx)(n(),{href:i,className:o,children:d})}function x(){return(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"shrink-0 transition-transform duration-150 group-hover/link:translate-x-0.5 motion-reduce:transition-none",children:(0,l.jsx)("path",{d:"M4.16667 10H15.8333M15.8333 10L10 4.16667M15.8333 10L10 15.8333",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})})}},12935:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var l=a(67255),i=a(82079),s=a(65016);let n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];function r({url:e,title:t,className:a,fallbackHeight:o=573.5}){let[c,d]=(0,i.useState)(),u=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t;try{t=new URL(e).origin}catch{return}let a=e=>{let a=u.current?.contentWindow;a&&a.postMessage(e,t)},l=e=>{a({type:"consent",analytics:"boolean"==typeof e?e:function(){try{let e=window;if("function"==typeof e.getCkyConsent){let t=e.getCkyConsent();if(t?.categories)return!!(t.categories.analytics||t.categories.performance)}}catch{}let e=document.cookie.match(/(?:^|; )cookieyes-consent=([^;]*)/);if(e){let t=decodeURIComponent(e[1]);return/analytics:yes/.test(t)||/performance:yes/.test(t)}return!1}()})},i=!1;function s(e){if(e.origin!==t)return;let s=function(e){if("number"==typeof e&&isFinite(e))return e;if("object"!=typeof e||null===e)return null;for(let t of["height","frameHeight","iframeHeight"]){let a=e[t];if("number"==typeof a&&isFinite(a)&&a>0)return a;if("string"==typeof a){let e=parseInt(a,10);if(!isNaN(e)&&e>0)return e}}return null}(e.data);s&&s>0&&d(s),i||(i=!0,a({type:"utm",utm:function(){let e=new URLSearchParams(window.location.search),t={};for(let a of n){let l=e.get(a);l&&(t[a]=l)}return t}(),currentURL:window.location.href}),l())}function r(e){let t=e.detail,a=t?.accepted??[];l(a.includes("analytics")||a.includes("performance"))}return window.addEventListener("message",s),window.addEventListener("cookieyes_consent_update",r),()=>{window.removeEventListener("message",s),window.removeEventListener("cookieyes_consent_update",r)}},[e]),(0,l.jsx)("iframe",{ref:u,src:e,title:t||"Embedded content",loading:"lazy",scrolling:"no",referrerPolicy:"no-referrer-when-downgrade",className:(0,s.cn)("block w-full rounded-lg shadow-2xl lg:w-[40%]",a),style:{height:c?`${c}px`:`${o}px`}})}},15574:(e,t,a)=>{"use strict";a.d(t,{default:()=>b});var l=a(67255),i=a(71740),s=a.n(i),n=a(55385),r=a(84474),o=a(51209),c=a(65016);let d=e=>!!e?.metadata?.slug?.current,u="block no-underline focus-visible:outline-[3px] focus-visible:outline-ink focus-visible:outline-offset-4",m="relative aspect-video overflow-hidden border border-border rounded-[0.625rem] bg-canvas-muted shadow-[0_3px_12px_oklch(0.2_0.005_70_/_0.06)]";function g({video:e,className:t}
1){return(0,l.jsx)(s(),{className:(0,c.cn)(u,t),href:(0,r.A)(e,{base:!1,language:(0,n.Q)(e.language)||void 0}),"aria-label":(0,n.Q)(e.title)||void 0,children:(0,l.jsxs)("div",{className:m,children:[e.thumbnail?.asset?(0,l.jsx)(o.E9,{image:e.thumbnail,width:800,sizes:"(min-width: 1024px) 400px, 90vw",alt:(0,n.Q)(e.title)||"",className:"w-full h-full object-cover"}):(0,l.jsx)("span",{className:"grid h-full place-items-center p-3 font-semibold",children:e.title}),(0,l.jsx)("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 grid place-items-center w-8 h-8 rounded-full bg-[oklch(0.1_0_0_/_0.65)] text-white text-xs pointer-events-none","aria-hidden":"true",children:"▶"})]})})}function p({parentVideo:e,className:t}){return(0,l.jsx)(s(),{className:(0,c.cn)(u,t),href:(0,r.A)(e,{base:!1,language:(0,n.Q)(e.language)||void 0}),"aria-label":"Mehr Videos ansehen",children:(0,l.jsx)("div",{className:(0,c.cn)(m,"flex items-center justify-center"),children:(0,l.jsx)("span",{className:"text-xl tracking-[0.1em] text-ink-muted font-bold pointer-events-none","aria-hidden":"true",children:"• • •"})})})}function h(e){return(e.children||[]).filter(e=>!!e&&d(e.video)).slice(0,2)}let f="__more__";function x(e){return e._key?.startsWith(f)??!1}function b({root:e}){if(!e?.video||!d(e.video))return null;let{width:t,rows:a,sizeReferenceWidth:i}=function(e){let t=function e(t){return Math.max(0,...h(t).map(t=>e(t)+1))}(e),a=Array.from({length:t+2},()=>[]),l=function e(a,l,i){let s=(function(e,t){if(x(e))return[];let a=h(e);return t&&0!==a.length&&e.video?[...a,{_key:`${f}${e.video._id}`,_moreParent:e.video}]:a})(a,l>=t-1).map((t,a)=>e(t,l+1,`${i}.${a}`)),n=[];for(let e=0;e<s.length-1;e++)n.push(Math.max(0,...s[e].edges.map((t,a)=>s[e+1].edges[a]?t.right-s[e+1].edges[a].left+6:0)));let r=n.reduce((e,t)=>e+t,0),o=s.map((e,t)=>n.slice(0,t).reduce((e,t)=>e+t,0)-r/2),c=[{node:a,depth:l,x:0,path:i}],d=400*.7**l/2,u=[{left:-d,right:d}];return s.forEach((e,t)=>{let a=1===s.length?0:o[t];c.push(...e.entries.map(e=>({...e,x:e.x+a}
1))),e.edges.forEach((e,t)=>{u[t+1]={left:Math.min(u[t+1]?.left??1/0,e.left+a),right:Math.max(u[t+1]?.right??-1/0,e.right+a)}})}),{entries:c,edges:u}}(e,0,"root"),i=Math.max(...l.edges.flatMap(e=>[-e.left,e.right]));for(l.entries.forEach(e=>a[e.depth].push({...e,x:e.x+i}));a.length>0&&0===a[a.length-1].length;)a.pop();return{width:2*i,rows:a,sizeReferenceWidth:2**t*(400*.7**t+12)-12}}(e),s=`min(25rem, calc((100cqw - 8px) / ${Math.max(t,i)/400}))`;return(0,l.jsxs)("div",{className:"[container-type:inline-size] mt-[clamp(2.5rem,5vw,4rem)]",children:[(0,l.jsx)("div",{className:"grid gap-8 mx-auto py-2 pb-4 max-lg:hidden",style:{"--root-size":s,width:"var(--tree-width)","--tree-width":`calc(var(--root-size) * ${t/400})`},children:a.map((e,i)=>(0,l.jsxs)("div",{className:"relative",style:{height:"calc(var(--video-size) * 9 / 16)","--video-size":`calc(var(--root-size) * ${.7**i})`},children:[e.map(({node:e,x:a,path:i})=>{let s=x(e);return s||e.video?(0,l.jsx)("div",{className:"absolute top-0 -translate-x-1/2","data-node-path":i,style:{left:`${a/t*100}%`},children:s?(0,l.jsx)(p,{parentVideo:e._moreParent,className:"w-[var(--video-size)]"}):(0,l.jsx)(g,{video:e.video,className:"w-[var(--video-size)]"})},i):null}),a[i+1]&&(0,l.jsx)("svg",{className:"absolute left-0 w-full h-8 overflow-visible pointer-events-none fill-none",style:{top:"100%",stroke:"var(--color-border-strong)",strokeWidth:1.25,strokeLinecap:"round"},viewBox:`0 0 ${t} 32`,preserveAspectRatio:"none","aria-hidden":"true",focusable:"false",children:a[i+1].map(t=>{let a=t.path.slice(0,t.path.lastIndexOf(".")),i=e.find(e=>e.path===a);return i&&(0,l.jsx)("path",{"data-connection-to":t.path,d:function(e,t){if(e===t)return`M ${e} 0 V 32`;let a=Math.sign(t-e),l=Math.min(6,Math.abs(t-e)/2);return`M ${e} 0 V 10 Q ${e} 16 ${e+a*l} 16 H ${t-a*l} Q ${t} 16 ${t} 22 V 32`}(i.x,t.x),vectorEffect:"non-scaling-stroke"},t.path)})})]},i))}),(0,l.jsx)("div",{className:"hidden max-lg:block max-lg:-mx-4",children:(0,l.jsx)("div",{className:"grid [grid-auto-flow:column] [grid-auto-columns:min(14rem,75cqw)] overflow-x-auto overflow-y-hidden snap-x snap-mandatory gap-3 py-2 px-4 [scroll-padding-inline:1rem] no-scrollbar",children:(function e(t){let a=[];for(let l of(t.video&&d(t.video)&&a.push(t.video),h(t)))a.push(...e(l));return a})(e).map(e=>(0,l.jsx)(g,{video:e,className:"w-full snap-start"},e._id))})})]})}},18675:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var l=a(67255),i=a(82079),s=a(55385),n=a(87327),r=a(52960),o=a(11577),c=a(37602);let d="h-12 w-full min-w-0 rounded-button border border-border bg-canvas px-4 text-regular leading-6 text-ink placeholder:text-ink-muted shadow-xs outline-none transition-[border-color,box-shadow] duration-150 motion-reduce:transition-none focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30";function u({title:e,description:t,namePlaceholder:a,emailPlaceholder:m,submitLabel:g,successMessage:p,privacyNote:h,activeCampaignTag:f,language:x}){let[b,v]=(0,i.useState)("idle"),[y,w]=(0,i.useState)(""),[_,j]=(0,i.useState)(""),k=(0,c.wn)(x??"");if(!e)return null;async function N(e){if(e.preventDefault(),!_||!y)return;let t=new FormData(e.currentTarget);v("submitting");try{let e=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:y,email:_,kind:"newsletter",source:"blog-inline-newsletter",language:x,activeCampaignTag:(0,s.Q)(f??"")||void 0,website:t.get("website"),startedAt:t.get("startedAt")})});if(!e.ok){if(409===e.status){let t=await e.json().catch(()=>({}));if("already_subscribed"===t.error)return void v("already_subscribed")}throw Error(`Request failed: ${e.status}`)}v("success")}catch{v("error")}}return(0,l.jsxs)("div",{className:"border-canvas-muted mx-auto flex w-full max-w-[65ch] flex-col items-center gap-5 border-y py-8 text-center",children:[(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("h2",{className:"font-display text-small text-ink font-semibold",children:e}),t&&(0,l.jsx)("p",{className:"text-ink-muted text-regular leading-relaxed whitespace-pre-line",children:t})]}),"success"===b?(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"text-ink text-regular",children:p||k.success}):(0,l.jsxs)("form",{onSubmit:N,className:"flex w-full max-w-xl flex-col gap-3",noValidate:!0,children:[(0,l.jsx)(o.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 min-[480px]:flex-row",children:[(0,l.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col min-[480px]:max-w-48",children:[(0,l.jsx)("span",{className:"sr-only",children:a}),(0,l.jsx)("input",{type:"text",name:"name",required:!0,"aria-required":"true",value:y,onChange:e=>w(e.target.value),placeholder:a??void 0,autoComplete:"given-name",maxLength:100,className:d})]}),(0,l.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col",children:[(0,l.jsx)("span",{className:"sr-only",children:m}),(0,l.jsx)("input",{type:"email",name:"email",required:!0,"aria-required":"true",value:_,onCh
1ange:e=>j(e.target.value),placeholder:m??void 0,autoComplete:"email",maxLength:320,className:d})]}),(0,l.jsx)(r.A,{type:"submit",variant:"primary",size:"medium",disabled:"submitting"===b||!_||!y,className:"shrink-0",children:g})]}),"error"===b&&(0,l.jsx)("p",{role:"alert",className:"text-small text-danger",children:k.error}),"already_subscribed"===b&&(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"text-small text-amber-700",children:k.alreadySubscribed}),h&&(0,l.jsx)("div",{className:"text-small text-ink-muted font-normal leading-5",children:(0,l.jsx)(n.RK,{value:h,components:{marks:{link:({value:e,children:t})=>(0,l.jsx)("a",{href:e?.href,target:e?.href?.startsWith("http")?"_blank":void 0,rel:e?.href?.startsWith("http")?"noopener noreferrer":void 0,className:"text-accent underline-offset-2 hover:underline",children:t})}}})})]})]})}},24270:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var l=a(67255),i=a(82079);function s({children:e,moduleKey:t}){let a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=a.current;if(!e||"u"<typeof IntersectionObserver||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=Array.from(e.children).filter(e=>e instanceof HTMLElement),l=window.innerHeight,i=new IntersectionObserver(e=>{for(let t of e){if(!t.isIntersecting)continue;let e=t.target;e.dataset.moduleReveal="visible",i.unobserve(e)}},{rootMargin:"0px 0px -8% 0px",threshold:.05});for(let e of t){if(e.getBoundingClientRect().top<l){e.dataset.moduleReveal="visible";continue}e.dataset.moduleReveal="pending",i.observe(e)}return()=>i.disconnect()},[t]),(0,l.jsx)("div",{ref:a,children:e})}},25276:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var l=a(67255),i=a(13867),s=a.n(i);function n({code:e}){return e?(0,l.jsx)(s(),{id:"86c000d6dcc3e47d",dynamic:[e],children:`${e}
2		`}):null}},26731:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var l=a(67255),i=a(55385),s=a(87327),n=a(82079),r=a(28791),o=a(51209),c=a(52960),d=a(11577),u=a(5043),m=a(65016),g=a(37602),p=a(84474);let h="w-full rounded-sm border border-border bg-canvas px-3.5 py-3 text-regular leading-6 text-ink shadow-xs placeholder:text-ink-muted transition-[border-color,box-shadow] duration-150 motion-reduce:transition-none focus:outline-none focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30";function f({eyebrowImage:e,eyebrowText:t,title:a,image:x,firstNameLabel:b,firstNamePlaceholder:v,emailLabel:y,emailPlaceholder:w,submitLabel:_,privacyNote:j,formAction:k,activeCampaignTag:N,successMessage:$,successRedirectPage:A,errorMessage:E,benefits:C,language:L,...z}){let[S,R]=(0,n.useState)("idle"),[T,M]=(0,n.useState)(""),[I,Q]=(0,n.useState)(""),D=(0,g.wn)(L??""),P=A?(0,p.A)(A,{base:!1,language:(0,i.Q)(A.language??"")||void 0}):void 0,q=!!v;async function B(e){if(e.preventDefault(),!I)return;let t=new FormData(e.currentTarget);R("submitting");try{let e;if(k){let t=new URLSearchParams;T&&t.set("firstName",T),t.set("email",I),e=await fetch(k,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:t})}else e=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:T||I,email:I,kind:"newsletter",activeCampaignTag:(0,i.Q)(N??"")||void 0,website:t.get("website"),startedAt:t.get("startedAt")})});if(!e.ok&&"opaque"!==e.type){if(409===e.status){let t=await e.json().catch(()=>({}));if("already_subscribed"===t.error)return void R("already_subscribed")}throw Error(`Request failed: ${e.status}`)}if(P)return void window.location.assign(P);R("success")}catch{R("error")}}let O=!!(e?.image||t);return(0,l.jsx)("section",{className:"bg-canvas section-pad-medium",...(0,r.A)(z),children:(0,l.jsx)("div",{className:"max-w-xxlarge mx-auto w-full px-8 max-md:px-4",children:(0,l.jsxs)("div",{className:"flex flex-col gap-10 md:gap-12 lg:grid lg:grid-cols-2 lg:grid-rows-[auto_1fr_auto] lg:items-start lg:gap-5",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 lg:col-start-1 lg:row-start-1",children:[O&&(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[e?.image&&(0,l.jsx)(o.E9,{image:e.image,alt:e.alt??"",height:100,className:"h-7 w-auto shrink-0 object-contain"}),t&&(0,l.jsx)("p",{className:"text-medium text-ink-muted font-bold tracking-[1px] uppercase",children:t})]}),a&&(0,l.jsx)("h2",{className:"font-display text-h2 text-ink leading-tight font-medium tracking-[-0.01em] whitespace-pre-line",children:a})]}),x?.image&&(0,l.jsx)("div",{className:"w-full lg:col-start-2 lg:row-start-1 lg:row-end-3",children:(0,l.jsx)(o.oC,{img:x,className:"block h-auto w-full object-contain",width:1400})}),!!C?.length&&(0,l.jsx)("ul",{className:(0,m.cn)("max-w-xlarge mx-auto flex flex-wrap items-center justify-start sm:justify-center","gap-x-10 gap-y-3.5","lg:mt-module-gap lg:col-start-1 lg:col-end-3 lg:row-start-3"),children:C.map((e,t)=>(0,l.jsxs)("li",{className:"flex items-center justify-center gap-3",children:[(0,l.jsx)(u.A,{size:"lg"}),(0,l.jsx)("span",{className:"text-medium text-ink font-medium",children:e})]},t))}),(0,l.jsx)("div",{className:"max-w-small min-[500px]:max-lg:max-w-none lg:col-start-1 lg:row-start-2",children:"success"===S?(0,l.jsx)("div",{role:"status","aria-live":"polite",className:"richtext text-medium text-ink",children:$?(0,l.jsx)(s.RK,{value:$}):(0,l.jsx)("p",{children:D.success})}):(0,l.jsxs)("form",{onSubmit:B,className:"flex flex-col gap-4",noValidate:!0,children:[!k&&(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 min-[500px]:flex-row min-[500px]:items-end",children:[q&&(0,l.jsxs)("label",{className:"flex flex-col gap-1.5 min-[500px]:w-32",children:[(0,l.jsx)("span",{className:"sr-only",children:b??v}),(0,l.jsx)("input",{type:"text",name:"firstName",value:T,onChange:e=>M(e.target.value),placeholder:v,autoComplete:"given-name",maxLength:100,className:h})]}),(0,l.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,l.jsx)("span",{className:"sr-only",children:y??w}),(0,l.jsx)("input",{type:"email",name:"email",required:!0,"aria-required":"true",value:I,onChange:e=>Q(e.target.value),placeholder:w,autoComplete:"email",maxLength:320,className:h})]}),(0,l.jsx)(c.A,{type:"submit",variant:"primary",size:"medium",disabled:"submitting"===S||!I,className:"hidden min-[500px]:max-lg:inline-flex min-[500px]:max-lg:shrink-0",children:_})]}),(0,l.jsx)(c.A,{type:"submit",variant:"primary",size:"medium",disabled:"submitting"===S||!I,className:"w-full min-[500px]:max-lg:hidden",children:_}),"error"===S&&E&&(0,l.jsx)("p",{role:"alert",className:"text-small text-danger",children:E}),"already_subscribed"===S&&(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"text-small text-amber-700",children:D.alreadySubscribed}),j&&(0,l.jsx)("div",{className:"text-small text-accent-dark leading-5",children:(0,l.jsx)(s.RK,{value:j})})]})})]})})})}},28791:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(55385),i=a(64748);function s({_type:e,options:t,_key:a,...n}){let r={};for(let[e,t]of Object.entries(n))(e.startsWith("data-")||e.startsWith("aria-"))&&(r[e]=t);
2return{id:(0,l.Q)(t?.uid)||"module-"+a,"data-module":e,hidden:!i.kx&&t?.hidden||void 0,...r}}},30341:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var l=a(67255),i=a(82079),s=a(65016),n=a(55385),r=a(38267),o=a.n(r);function c({headings:e}){return(0,i.useEffect)(()=>{if("u"<typeof document)return;let t=document.querySelector("body > header")?.clientHeight||0;e?.forEach(({text:e})=>{if(!e)return;let a=document.getElementById((0,s.yR)(e));if(!a)return;let l=new IntersectionObserver(t=>{t.forEach(t=>{let a=document.querySelector(`[data-toc-item="${(0,s.yR)(e)}"]`);t.isIntersecting?a?.classList.add(o().inView):a?.classList.remove(o().inView)})},{threshold:1,rootMargin:`-${t}px 0px 0px 0px`});return l.observe(a),()=>l.disconnect()})},[e]),(0,l.jsxs)("details",{className:(0,s.cn)(o().root,"group accordion max-lg:bg-ink/3 max-lg:p-3"),open:!0,children:[(0,l.jsx)("summary",{className:"font-bold lg:group-open:after:invisible",children:"Table of Contents"}),(0,l.jsx)("ol",{className:"anim-fade-to-b mt-2 leading-tight",children:e?.map(({text:e,style:t},a)=>(0,l.jsx)("li",{className:"border-ink/10 border-s transition-all","data-toc-item":(0,s.yR)(e??""),children:(0,l.jsx)("a",{className:(0,s.cn)("block py-1 hover:underline","h2"==(0,n.Q)(t)&&"ps-4","h3"==(0,n.Q)(t)&&"ps-6","h4"==(0,n.Q)(t)&&"ps-8","h5"==(0,n.Q)(t)&&"ps-10","h6"==(0,n.Q)(t)&&"ps-12"),href:`#${(0,s.yR)(e??"")}`,children:e})},a))})]})}},37573:(e,t,a)=>{"use strict";a.d(t,{Lg:()=>i,RT:()=>s,XV:()=>n});var l=a(48367);let i="42cfzvka",s="production",n=l.env.NEXT_PUBLIC_SANITY_API_VERSION||"2024-12-01"},38267:e=>{e.exports={inView:"TableOfContents_inView__5jH6W"}},46747:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var l=a(67255),i=a(82079),s=a(65016);function n({phrases:e,className:t,typeMs:a=60,deleteMs:r=40,holdMs:o=1500,betweenMs:c=500}){let d=e.filter(e=>"string"==typeof e&&e.length>0),[u,m]=(0,i.useState)(0),[g,p]=(0,i.useState)(()=>d[0]?.length??0),[h,f]=(0,i.useState)(!1),[x,b]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>b(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,i.useEffect)(()=>{if(x||0===d.length)return;let e=d[u%d.length];if(!h&&g===e.length){let e=setTimeout(()=>f(!0),o);return()=>clearTimeout(e)}if(h&&0===g){let e=setTimeout(()=>{f(!1),m(e=>(e+1)%d.length)},c);return()=>clearTimeout(e)}let t=setTimeout(()=>p(e=>e+(h?-1:1)),h?r:a);return()=>clearTimeout(t)},[g,h,u,x,d,a,r,o,c]),0===d.length)return null;let v=d[u%d.length],y=x?d[0]:v.slice(0,g),w=d.reduce((e,t)=>e.length>=t.length?e:t);return(0,l.jsxs)("span",{className:(0,s.cn)("relative inline-block w-full text-center align-baseline",t),children:[(0,l.jsx)("span",{className:"invisible",children:w}),(0,l.jsxs)("span",{className:"absolute inset-0 flex items-baseline justify-center","aria-hidden":"true",children:[(0,l.jsx)("span",{children:y}),!x&&(0,l.jsx)("span",{className:"ml-[0.05em] inline-block w-[0.06em] translate-y-[0.06em] bg-current align-baseline motion-safe:animate-pulse",style:{height:"0.9em"},"aria-hidden":"true"})]}),(0,l.jsx)("span",{className:"sr-only",children:d.join(", ")})]})}},47379:(e,t,a)=>{"use strict";a.d(t,{default:()=>T});var l=a(67255),i=a(44400),s=a(95492),n=a(20243);let r=(0,n.createServerReference)("4073a82dc7c23983bb159388021cce0d5fd14d9585",n.callServer,void 0,n.findSourceMapURL,"fetchSanityLive");var o=a(16313),c=a(64129),d=a(73779),u=a(64748);let m="'video.bibel', 'video.kurs', 'video.kommentar', 'video.crosstalk'";if(m!==u.XW.map(e=>`'${e}'`).join(", "))throw Error("[queries.ts] VIDEO_TYPES_GROQ is out of sync with VIDEO_DOC_TYPES in @/lib/env — update the literal to match.");let g=`
3	...,
4	'lqip': @.asset->metadata.lqip,
5	'assetAlt': @.asset->altText,
6	'mimeType': @.asset->mimeType
7`,p=`
8	...,
9	image { ${g} }
10`,h=`
11	...,
12	internal->{
13		_type,
14		title,
15		language,
16		metadata
17	},
18	redirectPage->{
19		_type,
20		title,
21		language,
22		metadata
23	}
24`,f=`
25	${h},
26	'icon': icon.asset->url
27`,x=`
28	...,
29	link{ ${h} },
30	'icon': icon.asset->url,
31	'iconAspectRatio': icon.asset->metadata.dimensions.aspectRatio,
32	iconHeight
33`,b=`
34	title,
35	items[]{
36		_type,
37		_key,
38		_type == 'link' => { ${h} },
39		_type == 'link.list' => {
40			link{ ${h} },
41			links[]{ ${f} },
42		},
43		_type == 'cta' => { ${x} }
44	}
45`,v=`
46	...,
47	ctas[]{ ${x} },
48	_type == 'videos-pyramid' => {
49		root{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}, children[]{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}, children[]{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}, children[]{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}, children[]{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}, children[]{..., video->{_id, _type, title, language, metadata{slug}, thumbnail{ ${g} }}}}}}}}
50	},
51	_type == 'about-story' => {
52		content[]{
53			...,
54			_type == 'image' => { ${g} }
55		},
56		timeline[]{
57			year,
58			image{ ${g} }
59		}
60	},
61	_type == 'available-at' => {
62		items[]{
63			...,
64			image{ ${p} },
65			link{ ${h} }
66		}
67	},
68	_type == 'blog-overview' => {
69		'posts': *[_type == 'blog.post' && language == $lang && publishDate <= now()] | order(publishDate desc) {
70			_id,
71			_type,
72			publishDate,
73			featured,
74			language,
75			headline,
76			subHeadline,
77			teaser,
78			'readTime': length(string::split(pt::text(body), ' ')) / 200,
79			metadata{
80				title,
81				description,
82				slug,
83				image{ ${g} }
84			},
85			authors[]->{
86				_id,
87				name,
88				slug,
89				image{ ${g} }
90			},
91			topics[]->{
92				_id,
93				name
94			}
95		},
96		'topics': *[_type == 'topic' && language == $lang] | order(name asc) {
97			_id,
98			name
99		}
100	},
101	_type == 'breadcrumbs' => { crumbs[]{ ${h} } },
102	_type == 'comparison-cards' => {
103		positiveCard{
104			...,
105			ctas[]{ ${x} }
106		},
107		footnote{
108			...,
109			image{ ${p} }
110		}
111	},
112	_type == 'donation-form' => {
113		image{ ${p} }
114	},
115	_type == 'donation-overview' => {
116		image{ ${p} }
117	},
118	_type == 'feature-tabs' => {
119		tabs[]{
120			...,
121			link{ ${h} },
122			image{ ${p} },
123			video{ asset->{ url, mimeType } }
124		}
125	},
126	_type == 'info-cards' => {
127		cards[]{
128			...,
129			image{ ${g} }
130		}
131	},
132	_type == 'infographics-overview' => {
133		'infographics': *[_type == 'infographic' && language == $lang] | order(coalesce(featured, false) desc, _createdAt desc) {
134			_id,
135			_type,
136			language,
137			title,
138			description,
139			bannerImage{ ${g} },
140			cardImage{ ${g} },
141			metadata{ slug },
142			topics[]->{
143				_id,
144				name
145			}
146		}
147	},
148	_type == 'hero.homepage' => {
149		mockupLeft{ ${p} },
150		mockupLeftVideo{ asset->{ url, mimeType } },
151		mockupCenter{ ${p} },
152		mockupCenterVideo{ asset->{ url, mimeType } },
153		mockupRight{ ${p} },
154		mockupRightVideo{ asset->{ url, mimeType } }
155	},
156	_type == 'hero.split' => {
157		eyebrowImage{ ${p} },
158		assets[]{
159			...,
160			_type == 'img' => { ${p} }
161		}
162	},
163	_type == 'hero.thank-you-page' => {
164		eyebrowImage{ ${p} },
165		assets[]{
166			...,
167			_type == 'img' => { ${p} }
168		}
169	},
170	_type == 'job-detail' => {
171		job->{
172			_id,
173			titel,
174			aufgaben,
175			anforderungen,
176			language
177		}
178	},
179	_type == 'job-list' => {
180		image{ ${p} },
181		benefits[]{
182			...,
183			'icon': icon.asset->url
184		},
185		jobs[]->{
186			_id,
187			_type,
188			titel,
189			kurzbeschreibung,
190			anstellungsart,
191			abteilung,
192			standort,
193			bewerbungslink,
194			aktiv,
195			language,
196			metadata{ slug }
197		}
198	},
199	_type == 'leitfaden-banner' => {
200		cta{ ${x} },
201		eyebrowImage{ ${p} },
202		backgroundImage{ ${p} },
203		backgroundImageMobile{ ${p} }
204	},
205	_type == 'leitfaden-product' => {
206		cta{ ${x} },
207		imageLeft{ ${p} },
208		imageRight{ ${p} }
209	},
210	_type == 'meet-the-founder' => {
211		founder->{
212			name,
213			bio,
214			'image': image{ ${g} }
215		}
216	},
217	_type == 'meet-the-team' => {
218		image{ ${g} },
219		mobileImage{ ${g} }
220	},
221	_type == 'newsletter-cta' => {
222		'language': $lang,
223		eyebrowImage{ ${p} },
224		image{ ${p} },
225		successRedirectPage->{
226			_type,
227			title,
228			language,
229			metadata
230		}
231	},
232	_type == 'person-list' => { people[]-> },
233	_type == 'reading-plans-grid' => {
234		plans[]->{
235			_id,
236			language,
237			titel,
238			dauer,
239			youversionLink,
240			bibelTvLink,
241			thumbnail{ ${g} },
242			'slug': metadata.slug.current
243		},
244		platformLogo{ ${g} }
245	},
246	_type == 'reading-plans-slider' => {
247		plans[]->{
248			_id,
249			titel,
250			youversionLink,
251			bibelTvLink,
252			stat,
253			thumbnail{ ${g} },
254			'slug': metadata.slug.current
255		},
256		platformBadge{ ${g} }
257	},
258	_type == 'resources-grid' => {
259		resources[]->{
260			...,
261			image{ ${g} },
262			link{ ${h} }
263		}
264	},
265	_type == 'resources-slider' => {
266		resources[]->{
267			...,
268			image{ ${g} },
269			link{ ${h} }
270		}
271	},
272	_type == 'social-proof.logos' => {
273		logos[]->{
274			...,
275			image{
276				default{ ${g} },
277				light{ ${g} },
278				dark{ ${g} }
279			}
280		}
281	},
282	_type == 'richtext-module' => {
283		content[]{
284			...,
285			_type == 'image' => { ${g} }
286		},
287		'headings': select(
288			tableOfContents => content[style in ['h2', 'h3', 'h4', 'h5', 'h6']]{
289				style,
290				'text': pt::text(@)
291			}
292		),
293	},
294	_type == 'stories' => {
295		cta{ ${x} },
296		stories[]->{
297			_id,
298			title,
299			name,
300			role,
301			body,
302			thumbnail{ ${g} },
303			video{ asset->{ url, mimeType } }
304		}
305	},
306	_type == 'testimonial.featured' => { testimonial-> },
307	_type == 'testimonial.grid' => {
308		testimonials[]{
309			_key,
310			_type,
311			_type == 'reference' => { 'items': [@->] },
312			_type == 'testimonialsByResourceType' => {
313				resourceType->{ _id, title },
314				'items': *[_type == 'testimonial' && language == $lang && references(^.resourceType._ref)]
315			}
316		}
317	},
318	_type == 'videos-container' => {
319		categories[]{
320			...,
321			'videos': select(
322				source == 'topic' && defined(topic._ref) =>
323					*[_type == 'video.bibel' && language == $lang && references(^.topic._ref)]
324						| order(
325							select(^.showFeaturedFirst != false => coalesce(featured, false), false) desc,
326							coalesce(_createdAt, '') desc
327						)
328						[0...100] {
329							_id,
330							_type,
331							title,
332							language,
333							thumbnail{ ${g} },
334							metadata{ slug }
335						},
336				source == 'bibelkategorie' && defined(bibelkategorie._ref) =>
337					*[_type == 'video.bibel' && language == $lang && (
338						references(^.bibelkategorie._ref) ||
339						references(*[_type == 'bibelbuch' && kategorie._ref == ^.^.bibelkategorie._ref]._id) ||
340						references(*[_type == 'bibelstelle' && buch->kategorie._ref == ^.^.bibelkategorie._ref]._id)
341					)]
342						| order(
343							coalesce(math::min((bibelReferenzen[]->)[_type == 'bibelbuch'].reihenfolge), 9999) asc,
344							select(^.showFeaturedFirst != false => coalesce(featured, false), false) desc,
345							coalesce(_createdAt, '') desc
346						)
347						[0...100] {
348							_id,
349							_type,
350							title,
351							language,
352							thumbnail{ ${g} },
353							metadata{ slug }
354						},
355				source == 'testament' && defined(testament) =>
356					*[_type == 'video.bibel' && language == $lang &&
357						references(*[_type == 'bibelbuch' && kategorie->testament == ^.^.testament]._id)
358					]
359						| order(
360							coalesce(math::min((bibelReferenzen[]->)[_type == 'bibelbuch'].reihenfolge), 9999) asc,
361							select(^.showFeaturedFirst != false => coalesce(featured, false), false) desc,
362							coalesce(_createdAt, '') desc
363						)
364						[0...100] {
365							_id,
366							_type,
367							title,
368							language,
369							thumbnail{ ${g} },
370							metadata{ slug }
371						},
372				videos[]->{
373					_id,
374					_type,
375					title,
376					language,
377					thumbnail{ ${g} },
378					metadata{ slug }
379				}
380			)
381		}
382	},
383	_type == 'crosstalk-container' => {
384		'topics': *[_type == 'topic' && language == $lang] {
385			_id,
386			name,
387			'videoCount': count(*[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]),
388			'videos': *[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]
389				| order(coalesce(publishedAt, _createdAt) desc) [0...8] {
390					_id, _type, title, language, publishedAt,
391					thumbnail{ ${g} },
392					metadata{ slug }
393				}
394		}[videoCount > 0]
395		| order(name asc)
396	},
397	_type == 'crosstalk-index' => {
398		'featured': *[_type == 'video.crosstalk' && language == $lang && defined(thumbnail.asset) && defined(publishedAt)]
399			| order(publishedAt desc) [0...6] {
400				_id, _type, title, language, publishedAt,
401				thumbnail{ ${g} },
402				metadata{ slug }
403			},
404		'topics': *[_type == 'topic' && language == $lang && defined(slug.current)] {
405			_id,
406			name,
407			'slug': slug.current,
408			'videoCount': count(*[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]),
409			'thumbnail': *[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]
410				| order(coalesce(publishedAt, _createdAt) desc) [0].thumbnail{ ${g} }
411		}[videoCount > 0]
412		| order(name asc)
413	},
414	_type == 'thank-you-gift' => {
415		image{ ${p} },
416		imageCaptionLink{ ${h} }
417	},
418	_type == 'workbooks-grid' => {
419		'workbooks': *[_type == 'workbook' && language == $lang]
420			| order(coalesce(featured, false) desc, coalesce(_createdAt, '') desc) {
421				_id,
422				_type,
423				titel,
424				activeCampaignTag,
425				language,
426				thumbnail{ ${g} },
427				metadata{ slug }
428			}
429	},
430	_type == 'courses-grid' => {
431		'courses': *[
432			_type == 'kursOderSerie'
433			&& language == $lang
434			&& defined(metadata.slug.current)
435			&& (^.filterType == null || typ == ^.filterType)
436		]|order(coalesce(sortierung, 999999) asc, coalesce(titel, '') asc)[0...60]{
437			_id,
438			_type,
439			titel,
440			beschreibung,
441			typ,
442			language,
443			thumbnail{ ${g} },
444			metadata{ slug },
445			topics[]->{ _id, name },
446			'videoCount': count(*[
447				_type == 'video.kurs'
448				&& kurs._ref == ^._id
449			]),
450			'videoDurations': *[
451				_type == 'video.kurs'
452				&& kurs._ref == ^._id
453			].duration
454		}
455	},
456`,y=`
457	string::startsWith($slug, path)
458	&& select(
459		defined(excludePaths) => count(excludePaths[string::startsWith($slug, @)]) == 0,
460		true
461	)
462`,w=`
463	'translations': *[_type == 'translation.metadata' && references(^._id)].translations[].value->{
464		'slug': metadata.slug.current,
465		language
466	}
467`;(0,d.E)((0,d.A)`
468	*[_type == 'site'][0]{
469		...,
470		ctas[]{ ${x} },
471		'ogimage': ogimage.asset->url
472	}
473`),(0,d.E)((0,d.A)`*[_type == 'navigation' && language == $lang][0]{
474	${b}
475}`),(0,d.E)((0,d.A)`*[_type == 'footer' && language == $lang][0]{
476	...,
477	columns[]{
478		...,
479		links[]{ ${h} }
480	},
481	socials[]{ ${h} },
482	bottomLinks[]{ ${h} },
483	privacyPolicy{ ${h} }
484}`);let _=(0,d.E)((0,d.A)`*[_type in ['page', 'blog.post', 'job', 'kursOderSerie', 'infographic', 'workbook', ${m}] && defined(language)]{
485	'slug': '/' + select(
486		_type == 'blog.post' => '${u.rJ}/' + metadata.slug.current,
487		_type in [${m}] => '${u.Rk}/' + metadata.slug.current,
488		_type == 'job' => '${u.lc}/' + metadata.slug.current,
489		_type == 'kursOderSerie' => '${u.Bu}/' + metadata.slug.current,
490		_type == 'infographic' => '${u.cN}/' + metadata.slug.current,
491		_type == 'workbook' => '${u.AC}/' + metadata.slug.current,
492		metadata.slug.current != 'index' => metadata.slug.current,
493		''
494	),
495	'translations': *[_type == 'translation.metadata' && references(^._id)].translations[].value->{
496		'slug': '/' + select(
497			_type == 'blog.post' => '${u.rJ}/' + language + '/' + metadata.slug.current,
498			_type in [${m}] => '${u.Rk}/' + language + '/' + metadata.slug.current,
499			_type == 'job' => '${u.lc}/' + language + '/' + metadata.slug.current,
500			_type == 'kursOderSerie' => '${u.Bu}/' + language + '/' + metadata.slug.current,
501			_type == 'infographic' => '${u.cN}/' + language + '/' + metadata.slug.current,
502			_type == 'workbook' => '${u.AC}/' + language + '/' + metadata.slug.current,
503			metadata.slug.current != 'index' => language + '/' + metadata.slug.current,
504			language
505		),
506		// Same shape as the top-level 'slug' above (dir prefix, never a
507		// language segment) but computed per translation entry instead of
508		// per queried document — the top-level field reflects whichever
509		// language document happened to be matched (proxy.ts's 'available'),
510		// which is not necessarily the DEFAULT_LANG one. proxy.ts needs the
511		// DEFAULT_LANG entry's own no-prefix slug when switching back to it,
512		// and can only get that reliably from here (identical across every
513		// duplicate row of the same translation group).
514		'defaultSlug': '/' + select(
515			_type == 'blog.post' => '${u.rJ}/' + metadata.slug.current,
516			_type in [${m}] => '${u.Rk}/' + metadata.slug.current,
517			_type == 'job' => '${u.lc}/' + metadata.slug.current,
518			_type == 'kursOderSerie' => '${u.Bu}/' + metadata.slug.current,
519			_type == 'infographic' => '${u.cN}/' + metadata.slug.current,
520			_type == 'workbook' => '${u.AC}/' + metadata.slug.current,
521			metadata.slug.current != 'index' => metadata.slug.current,
522			''
523		),
524		_type == 'blog.post' => {
525			'slugBlogAlt': '/' + language + '/${u.rJ}/' + metadata.slug.current
526		},
527		_type in [${m}] => {
528			'slugVideosAlt': '/' + language + '/${u.Rk}/' + metadata.slug.current
529		},
530		_type == 'job' => {
531			'slugJobsAlt': '/' + language + '/${u.lc}/' + metadata.slug.current
532		},
533		_type == 'kursOderSerie' => {
534			'slugCoursesAlt': '/' + language + '/${u.Bu}/' + metadata.slug.current
535		},
536		_type == 'infographic' => {
537			'slugInfographicsAlt': '/' + language + '/${u.cN}/' + metadata.slug.current
538		},
539		_type == 'workbook' => {
540			'slugWorkbooksAlt': '/' + language + '/${u.AC}/' + metadata.slug.current
541		},
542		language
543	}
544}`);(0,o.unstable_cache)(async()=>c.S.fetch(_,{},{perspective:"published",useCdn:!1,stega:!1,cache:"no-store"}),["translations-v2"],{tags:["sanity","translations"],revalidate:300}),(0,d.E)((0,d.A)`*[
545	_type == 'page'
546	&& defined(metadata.slug.current)
547	&& !(metadata.slug.current in ['index'])
548]{
549	'slug': metadata.slug.current
550}`),(0,d.E)((0,d.A)`*[
551	_type == 'page'
552	&& metadata.slug.current == $slug
553	&& language == $lang
554][0]{
555	...,
556	'modules': (
557		// global modules (before)
558		coalesce(*[_type == 'global-module' && path == '*'].before[]{ ${v} }, [])
559		// path modules (before)
560		+ coalesce(*[_type == 'global-module' && path != '*' && ${y}].before[]{ ${v} }, [])
561		// stage (hero)
562		+ coalesce(stage[]{ ${v} }, [])
563		// page modules
564		+ coalesce(modules[]{ ${v} }, [])
565		// path modules (after)
566		+ coalesce(*[_type == 'global-module' && path != '*' && ${y}].after[]{ ${v} }, [])
567		// global modules (after)
568		+ coalesce(*[_type == 'global-module' && path == '*'].after[]{ ${v} }, [])
569	),
570	metadata {
571		...,
572		'ogimage': image.asset->url + '?w=1200'
573	},
574	${w},
575}`),(0,d.E)((0,d.A)`*[_type == 'page' && metadata.slug.current == '404' && language == $lang][0]{
576	...,
577	'modules': (
578		// global modules (before)
579		coalesce(*[_type == 'global-module' && path == '*'].before[]{ ${v} }, [])
580		// page modules
581		+ coalesce(modules[]{ ${v} }, [])
582		// global modules (after)
583		+ coalesce(*[_type == 'global-module' && path == '*'].after[]{ ${v} }, [])
584	)
585}`),(0,d.E)((0,d.A)`*[_type == 'blog.post' && defined(metadata.slug.current)]{ 'slug': metadata.slug.current, language }`),(0,d.E)((0,d.A)`*[
586	_type == 'blog.post'
587	&& metadata.slug.current == $slug
588	&& language == $lang
589][0]{
590	...,
591	'heroImage': heroImage { ${g} },
592	body[]{
593		...,
594		_type == 'image' => {
595			${g},
596			asset->
597		},
598		_type == 'video-embed' => {
599			...,
600			video->{ _id, _type, title, youtubeUrl }
601		},
602		_type == 'newsletter-embed' => {
603			'title': coalesce(title, *[_type == 'site'][0].blogNewsletter.title),
604			'description': coalesce(description, *[_type == 'site'][0].blogNewsletter.description),
605			'namePlaceholder': coalesce(namePlaceholder, *[_type == 'site'][0].blogNewsletter.namePlaceholder),
606			'emailPlaceholder': coalesce(emailPlaceholder, *[_type == 'site'][0].blogNewsletter.emailPlaceholder),
607			'submitLabel': coalesce(submitLabel, *[_type == 'site'][0].blogNewsletter.submitLabel),
608			'successMessage': coalesce(successMessage, *[_type == 'site'][0].blogNewsletter.successMessage),
609			'privacyNote': coalesce(privacyNote, *[_type == 'site'][0].blogNewsletter.privacyNote),
610			'activeCampaignTag': coalesce(activeCampaignTag, *[_type == 'site'][0].blogNewsletter.activeCampaignTag)
611		}
612	},
613	'readTime': length(string::split(pt::text(body), ' ')) / 200,
614	'headings': body[style in ['h2', 'h3']]{
615		style,
616		'text': pt::text(@)
617	},
618	categories[]->,
619	topics[]->{ _id, name },
620	authors[]->,
621	metadata {
622		...,
623		'ogimage': image.asset->url + '?w=1200'
624	},
625	'relatedPosts': *[
626		_type == 'blog.post'
627		&& language == ^.language
628		&& _id != ^._id
629		&& publishDate <= now()
630	] | order(
631		select(count((topics[]._ref)[@ in ^.topics[]._ref]) > 0 => 0, 1) asc,
632		publishDate desc
633	) [0...3] {
634		_id,
635		_type,
636		publishDate,
637		language,
638		headline,
639		subHeadline,
640		teaser,
641		'readTime': length(string::split(pt::text(body), ' ')) / 200,
642		metadata { title, description, slug, image },
643		authors[]->{ name, image },
644		topics[]->{ _id, name },
645	},
646	'modulesBefore': (
647		*[_type == 'global-module' && path == '*'].before[]{ ${v} }
648		+ *[_type == 'global-module' && path == '${u.rJ}/'].before[]{ ${v} }
649	),
650	'modulesAfter': (
651		*[_type == 'global-module' && path == '${u.rJ}/'].after[]{ ${v} }
652		+ *[_type == 'global-module' && path == '*'].after[]{ ${v} }
653	),
654	${w},
655}`),(0,d.E)((0,d.A)`{
656	'blog': *[_type == 'page' && metadata.slug.current == '${u.rJ}'][0]{
657		_type,
658		title,
659		metadata,
660		'image': metadata.image.asset->url,
661	},
662	'posts': *[_type == 'blog.post']{
663		_type,
664		body,
665		publishDate,
666		authors[]->,
667		metadata,
668		'image': metadata.image.asset->url,
669		language,
670	},
671	'copyright': pt::text(*[_type == 'site'][0].copyright)
672}`),(0,d.E)((0,d.A)`*[_type == 'infographic' && defined(metadata.slug.current)]{ 'slug': metadata.slug.current, language }`),(0,d.E)((0,d.A)`*[
673	_type == 'infographic'
674	&& metadata.slug.current == $slug
675	&& language == $lang
676][0]{
677	_id,
678	_type,
679	language,
680	featured,
681	title,
682	description,
683	activeCampaignTag,
684	redirectPage->{ _type, title, language, metadata },
685	'bannerImage': coalesce(bannerImage, cardImage){ ${g} },
686	topics[]->{ _id, name },
687	metadata{
688		...,
689		'title': coalesce(metadata.title, ^.title),
690		'description': coalesce(metadata.description, ^.description),
691		'ogimage': image.asset->url + '?w=1200'
692	},
693	'settings': *[_type == 'infographic-settings' && language == $lang][0]{
694		ctaLabel,
695		checklistItems,
696		audiencesTitle,
697		audiences[]{
698			_key,
699			title,
700			body
701		},
702		faqsTitle,
703		faqs[]{
704			_key,
705			question,
706			answer,
707			open
708		}
709	},
710	'modulesBefore': (
711		*[_type == 'global-module' && path == '*'].before[]{ ${v} }
712		+ *[_type == 'global-module' && path == '${u.cN}/'].before[]{ ${v} }
713	),
714	'modulesAfter': (
715		*[_type == 'global-module' && path == '${u.cN}/'].after[]{ ${v} }
716		+ *[_type == 'global-module' && path == '*'].after[]{ ${v} }
717	),
718	${w},
719}`),(0,d.E)((0,d.A)`*[
720	_type in [${m}]
721	&& metadata.slug.current == $slug
722	&& language == $lang
723][0]{
724		_id,
725		_type,
726		_createdAt,
727		title,
728		description,
729		youtubeUrl,
730		duration,
731		transcript,
732		language,
733		thumbnail{ ${g} },
734		relatedReadingPlan->{
735			_id,
736			_type,
737			titel,
738			thumbnail{ ${g} },
739			youversionLink,
740			bibelTvLink,
741			'slug': metadata.slug.current
742		},
743		relatedBlogs[]->{
744			_id,
745			_type,
746			language,
747			publishDate,
748			metadata{
749				title,
750				description,
751				slug,
752				image{ ${g} }
753			},
754			topics[]->{ _id, name },
755			authors[]->{
756				_id,
757				name,
758				image{ ${g} }
759			}
760		},
761		relatedVideos[]->{
762			_id,
763			_type,
764			title,
765			duration,
766			language,
767			thumbnail{ ${g} },
768			metadata{ slug }
769		},
770	metadata{
771		...,
772		'ogimage': image.asset->url + '?w=1200'
773	},
774	${w}
775}`),(0,d.E)((0,d.A)`*[
776	_type in [${m}]
777	&& defined(metadata.slug.current)
778]{
779	'slug': metadata.slug.current,
780	language
781}`),(0,d.E)((0,d.A)`*[
782	_type == 'video.bibel'
783	&& (!defined(language) || language == $lang)
784	&& defined(thumbnail.asset)
785]|order(
786	select($showFeaturedFirst => featured, false) desc,
787	coalesce(youtube.publishedAt, _createdAt) desc
788)[0...$limit]{
789	_id,
790	_type,
791	title,
792	language,
793	thumbnail { ${g} },
794	metadata{ slug }
795}`),(0,d.E)((0,d.A)`*[
796	_type == 'kursOderSerie'
797	&& metadata.slug.current == $slug
798	&& language == $lang
799][0]{
800	_id,
801	_type,
802	titel,
803	beschreibung,
804	typ,
805	language,
806	thumbnail{ ${g} },
807	'videos': *[
808		_type == 'video.kurs'
809		&& kurs._ref == ^._id
810	]|order(coalesce(reihenfolge, 999) asc, _createdAt asc){
811		_id,
812		_type,
813		title,
814		description,
815		youtubeUrl,
816		language,
817		thumbnail{ ${g} },
818		metadata{ slug }
819	},
820	'modules': (
821		coalesce(modules[]{ ${v} }, [])
822		+ coalesce(*[_type == 'course-settings' && language == $lang][0].modules[]{ ${v} }, [])
823	),
824	'suggestions': *[
825		_type == 'kursOderSerie'
826		&& language == $lang
827		&& _id != ^._id
828		&& typ == ^.typ
829		&& defined(metadata.slug.current)
830		&& defined(thumbnail.asset)
831	]|order(_createdAt desc)[0...12]{
832		_id,
833		_type,
834		titel,
835		beschreibung,
836		typ,
837		language,
838		thumbnail{ ${g} },
839		topics[]->{ _id, name },
840		'videoCount': count(*[_type == 'video.kurs' && kurs._ref == ^._id]),
841		'videoDurations': *[
842			_type == 'video.kurs'
843			&& kurs._ref == ^._id
844		].duration,
845		metadata{ slug }
846	},
847	'coursesOverviewLink': *[_type == 'course-settings' && language == $lang][0].coursesOverviewLink{ ${h} },
848	metadata{
849		...,
850		'ogimage': image.asset->url + '?w=1200'
851	},
852	${w}
853}`),(0,d.E)((0,d.A)`*[
854	_type == 'kursOderSerie'
855	&& defined(metadata.slug.current)
856]{
857	'slug': metadata.slug.current,
858	language
859}`),(0,d.E)((0,d.A)`*[
860	_type == 'workbook'
861	&& defined(metadata.slug.current)
862]{
863	'slug': metadata.slug.current,
864	language
865}`),(0,d.E)((0,d.A)`*[
866	_type == 'workbook'
867	&& metadata.slug.current == $slug
868	&& language == $lang
869][0]{
870	_id,
871	_type,
872	titel,
873	beschreibung,
874	activeCampaignTag,
875	redirectPage->{ _type, title, language, metadata },
876	downloadsAnzahl,
877	language,
878	thumbnail{ ${g} },
879	heroBannerTitle,
880	heroBannerImage{ ${g} },
881	heroTestimonial->{ _id, content, author{ name, role, image{ ${g} } } },
882	previewPages[]{ ${g} },
883	hasBonus,
884	bonusImage{ ${g} },
885	bonusTestimonial->{ _id, content, author{ name, role, image{ ${g} } } },
886	topics[]->{ _id, name },
887	'settings': *[_type == 'workbook-settings' && language == $lang][0]{
888		heroCopy,
889		heroCtaLabel,
890		sliderBullets,
891		bonusBullets,
892		bonusCtaLabel,
893	},
894	'modules': coalesce(*[_type == 'workbook-settings' && language == $lang][0].modules[]{ ${v} }, []),
895	'modulesBefore': (
896		*[_type == 'global-module' && path == '*'].before[]{ ${v} }
897		+ *[_type == 'global-module' && path == '${u.AC}/'].before[]{ ${v} }
898	),
899	'modulesAfter': (
900		*[_type == 'global-module' && path == '${u.AC}/'].after[]{ ${v} }
901		+ *[_type == 'global-module' && path == '*'].after[]{ ${v} }
902	),
903	metadata{
904		...,
905		'title': coalesce(metadata.title, ^.titel),
906		'ogimage': image.asset->url + '?w=1200'
907	},
908	${w}
909}`),(0,d.E)((0,d.A)`*[
910	_type == 'job'
911	&& metadata.slug.current == $slug
912	&& language == $lang
913][0]{
914	_id,
915	_type,
916	_createdAt,
917	titel,
918	kurzbeschreibung,
919	anstellungsart,
920	abteilung,
921	standort,
922	bewerbungslink,
923	aktiv,
924	language,
925	heroBild{ ${g}, asset-> },
926	aufgaben,
927	anforderungen,
928	metadata{
929		...,
930		'ogimage': image.asset->url + '?w=1200'
931	},
932	${w}
933}`),(0,d.E)((0,d.A)`*[
934	_type == 'job'
935	&& defined(metadata.slug.current)
936]{
937	'slug': metadata.slug.current,
938	language
939}`),(0,d.E)((0,d.A)`*[
940	(
941		(_type == 'page' && !(metadata.slug.current in ['404']))
942		|| _type == 'blog.post'
943		|| _type in [${m}]
944		|| (_type == 'job' && aktiv == true)
945		|| _type == 'kursOderSerie'
946		|| _type == 'infographic'
947		|| _type == 'workbook'
948	)
949	&& defined(metadata.slug.current)
950	&& metadata.noIndex != true
951]|order(_type asc, metadata.slug.current asc){
952	_id,
953	_type,
954	language,
955	_updatedAt,
956	metadata{ slug }
957}`),(0,d.E)((0,d.A)`*[_type == 'translation.metadata']{
958	'translations': translations[defined(value)].value->{
959		_id,
960		_type,
961		language,
962		metadata{ slug }
963	}
964}`);let j=(0,d.E)((0,d.A)`*[
965	select(
966		$scope == 'pages' => _type == 'page',
967		$scope == 'path' => _type == 'page'
968			&& metadata.slug.current match $path
969			&& !(metadata.slug.current in ['404']),
970		$scope == 'blog posts' => _type == 'blog.post',
971		_type in ['page', 'blog.post'] && !(metadata.slug.current in ['404'])
972	) &&
973	[
974		body[].children[].text,
975		modules[].content[].children[].text,
976		modules[].intro[].children[].text,
977		title,
978		metadata.title,
979		metadata.description
980	] match $query
981]{
982	_id,
983	_type,
984	title,
985	language,
986	metadata
987}`);(0,d.E)((0,d.A)`*[_type == 'site'][0].announcements[]->{
988	...,
989	cta{ ${h} },
990}`),(0,d.E)((0,d.A)`*[_type == 'global-module']{
991	_id,
992	path,
993	excludePaths[]
994}`),(0,d.E)((0,d.A)`*[
995	_type == 'topic'
996	&& defined(slug.current)
997]{
998	'slug': slug.current,
999	language
1000}`),(0,d.E)((0,d.A)`*[
1001	_type == 'topic'
1002	&& slug.current == $slug
1003	&& language == $lang
1004][0]{
1005	_id,
1006	name,
1007	beschreibung,
1008	'slug': slug.current,
1009	'videoCount': count(*[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]),
1010	'videos': *[_type == 'video.crosstalk' && language == $lang && ^._id in topics[]._ref]
1011		| order(coalesce(publishedAt, _createdAt) desc) [0...8] {
1012			_id, _type, title, language, publishedAt,
1013			thumbnail{ ${g} },
1014			metadata{ slug }
1015		},
1016	'translations': *[_type == 'translation.metadata' && references(^._id)].translations[].value->{
1017		'slug': '${u.Jm}/' + slug.current,
1018		language
1019	}
1020}`);let k=(0,s.v)(e=>({loading:!1,setLoading:t=>e({loading:t}),results:[],setResults:t=>e({results:t})}));async function N({query:e,scope:t,path:a,setQuery:l,setLoading:i,setResults:s}){e||s([]),l(e),i(!0),s([]);let n=await r({query:j,params:{query:`*${e}*`,scope:t??"all",path:a??""}});i(!1),s(n)}var $=a(65016),A=a(67919);function E({className:e,children:t}){return(0,l.jsxs)("aside",{className:(0,$.cn)("flex items-center gap-2",e),children:[(0,l.jsx)(A.deV,{className:"animate-spin"}),t||"Loading..."]})}var C=a(84474);function L({query:e,scope:t,path:a}){let i=`https://www.google.com/search?q=${e} site:https://www.crosspaint.tv`+("path"===t&&a?`/${a.replace(/\/?\*$/,"")}`:"blog posts"===t?`/${u.rJ}`:"");return(0,l.jsx)("p",{className:"text-ink/50 text-center text-sm",children:(0,l.jsx)("a",{className:"hover:underline",href:i,target:"_blank",rel:"noreferrer",children:"Search on Google"})})}var z=a(55385),S=a(50581),R=a.n(S);function T({className:e,scope:t,path:a,...s}){let{query:n,setQuery:r}=(()=>{let[e,t]=(0,i.ZA)("query",{defaultValue:""});return{query:e,setQuery:t}}
1020)(),{loading:o,setLoading:c,results:d,setResults:u}=k();return(0,l.jsxs)("search",{className:(0,$.cn)(R().root,"relative",e),...s,children:[(0,l.jsxs)("label",{className:"input focus-within:border-ink/50 relative z-[2] flex items-center gap-2",children:[(0,l.jsx)(A.Lab,{}),(0,l.jsx)("input",{className:"grow outline-none",name:"query",type:"search",placeholder:"all"!==t?`Search ${"path"===t?"pages":t}`:"Search",defaultValue:n,onChange:(0,$.sg)(e=>N({query:e.target.value,scope:t,path:a,setQuery:r,setLoading:c,setResults:u}))})]}),n&&(0,l.jsx)("div",{className:(0,$.cn)(R().results,"anim-fade-to-b absolute inset-x-0 top-full z-[1]"),children:(0,l.jsx)("div",{className:"frosted-glass bg-canvas border-ink/10 mt-1 max-h-[20em] space-y-2 overflow-y-auto rounded border py-2 shadow-md *:px-3",children:o?(0,l.jsx)(E,{className:"text-ink/50 justify-center p-4 text-sm",children:"Searching..."}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-ink/50 text-center text-sm",children:(0,l.jsxs)("span",{className:"line-clamp-1",children:[(0,$.U9)(d,"result")," found for"," ",(0,l.jsxs)("output",{children:["“",n,"”"]})]})}),d.length>0&&(0,l.jsx)("ul",{children:d.map(e=>(0,l.jsx)("li",{children:(0,l.jsxs)("a",{className:"group flex gap-2 py-px",href:(0,C.A)(e,{base:!1,language:(0,z.Q)(e.language??"")||void 0})+`#:~:text=${n}`,children:[(0,l.jsx)("span",{className:"line-clamp-1 grow group-hover:underline",children:e.metadata?.title}),(0,l.jsx)("small",{className:"technical text-accent/50 shrink-0 text-xs",children:"blog.post"===e._type?"Blog":"Page"})]})},e._id))}),(0,l.jsx)(L,{query:n,scope:t,path:a})]})})})]})}},47689:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>g});var l=a(67255),i=a(82079),s=a(87327),n=a(51209),r=a(74619),o=a(54454),c=a(28791),d=a(96498),u=a(52960);let m={de:e=>`Mehr Geschichten wie die von ${e} erm\xf6glichen`,en:e=>`Enable more stories like ${e}'s`};function g({title:e,intro:t,cta:a,stories:p,...h}){let f=(0,d.A)(),[x,b]=(0,i.useState)(null),v=(0,i.useRef)(null);return((0,i.useEffect)(()=>{let e=v.current;e&&(x?e.showModal():e.close())},[x]),(0,i.useEffect)(()=>{let e=v.current;if(!e)return;let t=()=>b(null);return e.addEventListener("close",t),()=>e.removeEventListener("close",t)},[]),p?.length)?(0,l.jsxs)("section",{...(0,c.A)(h),children:[(0,l.jsxs)("div",{className:"section-pad-medium mx-auto flex max-w-xxlarge flex-col gap-module-gap px-8 max-md:px-4",children:[(0,l.jsx)(r.A,{title:e,intro:t}),(0,l.jsx)("div",{className:"flex flex-col gap-16 md:gap-24",children:p.map((e,t)=>{let i=e.video?.asset?.url;return(0,l.jsxs)("div",{className:`flex flex-col gap-8 md:grid md:grid-cols-2 md:items-center md:gap-12${t%2==1?" md:[&>*:first-child]:order-2":""}`,children:[(0,l.jsx)("div",{className:"relative overflow-hidden rounded-lg",children:e.thumbnail&&(0,l.jsx)(n.E9,{image:e.thumbnail,width:450,height:800,alt:e.thumbnail.alt||e.title||e.name||"",className:"aspect-[9/16] max-h-[70svh] object-cover w-full"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[e.title&&(0,l.jsx)("h3",{className:"font-display text-h3 leading-tight mb-2",children:e.title}),(e.name||e.role)&&(0,l.jsx)("p",{className:"text-ink-muted text-medium",children:[e.name,e.role].filter(
1020Boolean).join(" – ")}),e.body&&(0,l.jsx)("div",{className:"richtext text-ink text-regular leading-relaxed",children:(0,l.jsx)(s.RK,{value:e.body})}),a&&e.name&&(0,l.jsx)(o.default,{...a,className:"w-fit justify-center",children:(m[f]??m.de)(e.name)}),i&&(0,l.jsx)(u.A,{onClick:()=>b(i),"aria-label":`Play: ${e.title||e.name||"video"}`,children:(0,l.jsx)("svg",{className:"ml-0.5 size-5 fill-current",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M8 5v14l11-7z"})})})]})]},e._id)})})]}),(0,l.jsx)("dialog",{ref:v,className:"m-auto max-w-4xl w-full rounded-lg bg-transparent p-4 backdrop:bg-black/80",onClick:e=>{e.target===v.current&&b(null)},"aria-label":"Video player",children:(0,l.jsxs)("div",{className:"relative flex flex-col gap-3",children:[(0,l.jsx)("button",{onClick:()=>b(null),className:"self-end text-white hover:text-white/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white","aria-label":"Close video",children:(0,l.jsx)("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),x&&(0,l.jsx)("video",{src:x,controls:!0,autoPlay:!0,className:"aspect-video w-full rounded-lg"},x)]})})]}):null}},49573:(e,t,a)=>{"use strict";a.d(t,{default:()=>g});var l=a(67255),i=a(82079),s=a(28791),n=a(51209),r=a(55385);function o({icon:e,...t}){if(!e)return null;let a=function(e){let t=(0,r.Q)(e);if(t&&"string"==typeof t){if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("em")||t.endsWith("lh"))return 16*parseFloat(t)}}(e.size);return e.ic0n?(0,l.jsx)("img",{src:`https://ic0n.dev/${(0,r.Q)(e.ic0n)}`,width:a,height:a,alt:"",loading:"lazy",...t}):(0,l.jsx)(n.E9,{className:"aspect-square w-auto object-contain",image:e?.image??void 0,style:{maxHeight:(0,r.Q)(e?.size)??"40px"},...t,height:2*Number(a)})}var c=a(11758),d=a(74619),u=a(65016);function m({value:e,inView:t,delay:a}){let s=(0,i.useRef)(null),n=function(e){let t=e.match(/\d[\d.,\s]*\d|\d/);if(!t)return null;let a=Number.parseInt(t[0].replace(/\D/g,""),10);return Number.isFinite(a)?{prefix:e.slice(0,t.index),suffix:e.slice((t.index??0)+t[0].length),target:a}:null}(e),r=n?.prefix,o=n?.suffix,c=n?.target;return((0,i.useEffect)(()=>{let l=s.current;if(!l||void 0===r||void 0===o||void 0===c||!t)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){l.textContent=e;return}let i=0,n=window.setTimeout(()=>{let t=performance.now(),a=s=>{let n=Math.min((s-t)/800,1),d=Math.round(c*(1-Math.pow(1-n,3)));l.textContent=`${r}${d}${o}`,n<1?i=requestAnimationFrame(a):l.textContent=e};i=requestAnimationFrame(a)},a);return()=>{window.clearTimeout(n),cancelAnimationFrame(i)}},[a,t,r,o,c,e]),n)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{ref:s,"aria-hidden":"true",children:[n.prefix,"0",n.suffix]}),(0,l.jsx)("span",{className:"sr-only",children:e})]}):e}function g({title:e,intro:t,stats:a,ctas:n,...r}){let p=(0,i.useRef)(null),[h,f]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=p.current;if(!e||"u"<typeof IntersectionObserver)return void f(!0);let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(f(!0),t.disconnect())},{rootMargin:"0px 0px -10% 0px"});return t.observe(e),()=>t.disconnect()},[]),(0,l.jsx)("section",{className:"bg-canvas section-pad-medium",...(0,s.A)(r),children:(0,l.jsxs)("div",{className:"mx-auto w-full max-w-xxlarge px-8 max-md:px-4",children:[(0,l.jsx)(d.A,{title:e,intro:t}),a?.length?(0,l.jsx)("ul",{ref:p,"data-in-view":h,className:"group/stats mt-module-gap grid grid-cols-1 gap-x-8 gap-y-10 min-[350px]:grid-cols-2 md:gap-y-12 lg:grid-cols-4 max-md:mx-auto max-md:w-fit",children:a.map(({_key:e,icon:t,value:a,label:i},s)=>(0,l.jsxs)("li",{style:{transitionDelay:`${80*s}ms`},className:(0,u.cn)("flex items-start gap-4 max-md:w-fit","opacity-0 translate-y-4","transition-[opacity,transform] duration-500 ease-out","group-data-[in-view=true]/stats:opacity-100 group-data-[in-view=true]/stats:translate-y-0","motion-reduce:opacity-100 motion-reduce:translate-y-0 motion-reduce:transition-none"),children:[t&&(0,l.jsx)("figure",{"aria-hidden":"true",className:"bg-accent-lightest text-ink grid size-13 shrink-0 place-items-center rounded-full",children:(0,l.jsx)("div",{className:"bg-accent-lighter grid size-10 place-items-center rounded-full",children:(0,l.jsx)(o,{icon:{...t,size:"24px"},className:"size-6 object-contain"})})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[a&&(0,l.jsx)("h3",{className:"h3 leading-none text-neutral-dark mt-1",children:(0,l.jsx)(m,{value:a,inView:h,delay:80*s})}),i&&(0,l.jsx)("span",{className:"text-medium text-neutral-dark font-medium",children:i})]})]},e))}):null,n?.length?(0,l.jsx)("div",{className:"mt-module-gap flex justify-center",children:(0,l.jsx)(c.A,{ctas:n,className:"justify-center gap-3"})}):null]})})}},50581:e=>{e.exports={root:"SearchForm_root__KcOUX",results:"SearchForm_results__UPxhI"}},51209:(e,t,a)=>{"use strict";a.d(t,{E9:()=>c,oC:()=>u});var l=a(67255),i=a(58990),s=a(59066),n=a(80663),r=a(95092),o=a(55385);function c({image:e,width:t,height:a,loading:i,alt:s,decorative:n,quality:d=95,...u}){if(!e?.asset)return null;let{src:g,width:p,height:h}=m(e,t,a),f=(0,o.Q)(i??e.loading),x=!0===(0,o.Q)(n??e.decorative??void 0)?"":s??e.alt??e.assetAlt??"",b="image/gif"===e.mimeType;return(0,l.jsx)(r.default,{src:g,width:p,height:h,quality:d,unoptimized:b,placeholder:!b&&e.lqip?"blur":void 0,blurDataURL:b?void 0:e.lqip??void 0,...u,alt:x,loading:f,priority:"eager"===f})}function d({image:e,media:t="(width < 48rem)",width:a,height:s,...n}){if(!e?.asset)return null;let{src:c,width:u,height:g}=m(e,a,s),{props:p}=(0,r.getImageProps)({src:c,width:u,height:g,alt:""});"eager"===(0,o.Q)(e.loading)&&(0,i.preload)(p.src,{as:"image"});
1020let h="string"==typeof t?(0,o.Q)(t):t;return(0,l.jsx)("source",{srcSet:p.srcSet,width:p.width,height:p.height,media:h,...n})}function u({img:e,pictureProps:t,...a}){if(!e)return null;let{responsive:i,image:s,alt:n,loading:r,decorative:o}=e;return(0,l.jsxs)("picture",{...t,children:[i?.map((e,t)=>e&&(0,l.jsx)(d,{image:e.image,media:e.media??void 0},t)),(0,l.jsx)(c,{image:s,alt:n??void 0,decorative:o??void 0,loading:r??void 0,...a})]})}function m(e,t,a){let{width:l,height:i}=(0,s.vX)(e),r=t?Number(t):!!a&&Math.floor(Number(a)*l/i),o=a?Number(a):!!t&&Math.floor(Number(t)*i/l),c="image/gif"===e.mimeType;return{src:(0,n.d)(e).withOptions({width:t?Number(t):void 0,height:a?Number(a):void 0,auto:c?void 0:"format"}).url(),width:r||l,height:o||i}}},52826:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n});var l=a(67255),i=a(82079),s=a(91919);function n({url:e}){let t,[a,r]=(0,i.useState)(!1),o=(t=e?.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/|v\/))([^&\n?#]+)/),t?.[1]??null);return o?(0,l.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg border border-neutral-darkest",children:(0,l.jsx)(s.default,{children:a?(0,l.jsx)("iframe",{className:"absolute inset-0 size-full",src:`https://www.youtube.com/embed/${o}?autoplay=1`,allow:"autoplay; fullscreen",allowFullScreen:!0}):(0,l.jsxs)("button",{className:"group absolute inset-0 size-full",onClick:()=>r(!0),"aria-label":"Play video",children:[(0,l.jsx)("img",{className:"size-full object-cover",src:`https://img.youtube.com/vi/${o}/maxresdefault.jpg`,alt:""}),(0,l.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,l.jsx)("span",{className:"flex size-16 items-center justify-center rounded-full bg-black/60 transition-colors group-hover:bg-black/80 motion-reduce:transition-none",children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",className:"size-8 fill-white","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M8 5v14l11-7z"})})})})]})})}):null}},53109:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var l=a(67255),i=a(93233),s=a(72116),n=a(37602);function r({lang:e}){let t=(0,i.useRouter)(),a=(0,n.Vc)(e??"").back;return(0,l.jsxs)("button",{type:"button",onClick:()=>t.back(),className:"text-ink-muted hover:text-ink inline-flex items-center gap-1.5 text-small font-semibold leading-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-accent/30 rounded-md",children:[(0,l.jsx)(s.wwB,{"aria-hidden":!0,className:"size-4"}),a]})}},60266:e=>{e.exports={body:"PostContent_body__4_oRU"}},64129:(e,t,a)=>{"use strict";a.d(t,{S:()=>n});var l=a(90354),i=a(37573),s=a(64748);let n=(0,l.UU)({projectId:i.Lg,dataset:i.RT,apiVersion:i.XV,useCdn:!s.kx,stega:{studioUrl:"/admin"}})},68461:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var l=a(67255),i=a(82079),s=a(71740),n=a.n(s),r=a(55385),o=a(87327),c=a(44400),d=a(72116),u=a(51209),m=a(28791),g=a(84474),p=a(65016);function h({title:e,intro:t,itemsPerPage:a=9,searchPlaceholder:s="Search",categorySelectLabel:n="Select category",viewAllLabel:d="All categories",emptyLabel:u="No posts found.",previousLabel:g="Previous",nextLabel:p="Next",posts:v=[],topics:y=[],...w}){let[_,j]=(0,c.ZA)("topic",{defaultValue:"all"}),[k]=(0,c.ZA)("author"),[N,$]=(0,i.useState)(""),[A,E]=(0,c.ZA)("page",c.GJ.withDefault(1)),C=(0,r.Q)(_)||"all",L=(0,r.Q)(k??"")||void 0,z=(0,i.useMemo)(()=>{let e=new Set;return v.forEach(t=>t.topics?.forEach(t=>t?._id&&e.add(t._id))),e},[v]),S=(0,i.useMemo)(()=>y.filter(e=>e._id&&z.has(e._id)),[y,z]),R=(0,i.useMemo)(()=>{let e=N.trim().toLowerCase(),t=v.filter(t=>("all"===C||!!t.topics?.some(e=>e?._id===C))&&(!L||!!t.authors?.some(e=>e?.slug?.current===L))&&(!e||!![t.headline,t.subHeadline,t.teaser,t.metadata?.title,t.metadata?.description].filter(Boolean).join(" ").toLowerCase().includes(e))&&!0);return t.sort((e,t)=>{let a=e.publishDate?new Date(e.publishDate).getTime():0;return(t.publishDate?new Date(t.publishDate).getTime():0)-a}),t},[v,C,L,N]),T=Math.max(1,Math.ceil(R.length/a)),M=Math.min(Math.max(1,A),T),I=R.slice(a*(M-1),a*M);return(0,l.jsxs)("section",{className:"bg-canvas section-pad-medium",...(0,m.A)(w),children:[(0,l.jsx)("div",{className:"mx-auto w-full max-w-xxlarge px-8 max-md:px-4",children:(0,l.jsx)("div",{className:"mx-auto flex max-w-large flex-col items-center gap-6 text-balance md:gap-8",children:(0,l.jsxs)("div",{className:"flex w-full flex-col items-center gap-2 text-center md:gap-5",children:[e&&(0,l.jsx)("h1",{className:"h1 whitespace-pre-line",children:e}),t&&(0,l.jsx)("div",{className:"text-accent-dark text-medium md:text-large",children:(0,l.jsx)(o.RK,{value:t})})]})})}),(0,l.jsx)("div",{className:"mx-auto w-full max-w-xxlarge px-8 pt-12 max-md:px-4 md:pt-16",children:(0,l.jsxs)("div",{className:"flex flex-col gap-module-gap",children:[(0,l.jsx)(f,{topics:S,activeTopic:C,label:n,viewAllLabel:d,onChange:e=>{j(e),E(1)}}),(0,l.jsxs)("ul",{id:"blog-overview-grid",className:"flex flex-wrap gap-x-8 gap-y-8 scroll-mt-[calc(var(--header-height)+1rem)] md:gap-y-12",children:[0===I.length&&(0,l.jsx)("li",{className:"text-ink-muted w-full py-12 text-center",children:u}),I.map(e=>(0,l.jsx)("li",{className:"anim-fade flex basis-full grow-0 shrink-0 flex-col md:basis-[calc(50%-1rem)] lg:basis-[calc(33.333%-1.334rem)]",children:(0,l.jsx)(x,{post:e})},e._id))]}),T>1&&(0,l.jsx)(b,{page:M,totalPages:T,previousLabel:g,nextLabel:p,onChange:e=>{let t;E(e),t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,document.getElementById("blog-overview-grid")?.scrollIntoView({behavior:t?"auto":"smooth",block:"start"})}})]})})]})}function f({topics:e,activeTopic:t,label:a,viewAllLabel:i,onChange:s}){return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-1.5 md:w-64",children:[(0,l.jsx)("span",{className:"text-ink-muted text-small font-medium leading-normal",children:a}),(0,l.jsxs)("label",{className:"bg-canvas border-border focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/30 relative flex h-11 w-full cursor-pointer items-center gap-2 rounded-button border px-3.5 py-2.5 shadow-xs transition-[border-color,box-shadow] duration-150 motion-reduce:transition-none",children:[(0,l.jsxs)("select",{value:t,onChange:e=>s(e.target.value),className:"text-ink flex-1 cursor-pointer appearance-none bg-transparent text-regular leading-normal outline-none",children:[(0,l.jsx)("option",{value:"all",children:i}),e.map(e=>(0,l.jsx)("option",{value:e._id??"",children:e.name??""},e._id))]}
1020),(0,l.jsx)(d.zrT,{"aria-hidden":!0,className:"text-ink-muted pointer-events-none size-5 shrink-0"})]})]})}function x({post:e}){let t=(0,g.A)(e,{base:!1,language:(0,r.Q)(e.language??"")||void 0}),a=e.authors?.find(e=>e?._id)??void 0,i=e.subHeadline,s=e.headline||e.metadata?.title,o=e.teaser||e.metadata?.description,c=function(e){if(!e||e<=0)return"";let t=Math.ceil(e);return`${t} min`}(e.readTime);return(0,l.jsxs)("article",{className:"group bg-canvas relative flex h-full flex-col gap-3 rounded-lg p-2.5 shadow-lg transition-transform duration-200 motion-safe:hover:-translate-y-1",children:[(0,l.jsx)(n(),{href:t,className:"bg-canvas-muted relative block aspect-video overflow-hidden rounded-md shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",tabIndex:-1,"aria-hidden":!0,children:(0,l.jsx)(u.E9,{image:e.metadata?.image,width:800,alt:e.metadata?.title??void 0,className:"absolute inset-0 size-full object-cover"})}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-5 px-2.5 pb-2.5",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[i&&(0,l.jsx)("span",{className:"text-accent text-small font-semibold leading-normal",children:i}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("h3",{className:"font-display flex items-start justify-between gap-4 text-h6 leading-tight whitespace-pre-line",children:[(0,l.jsx)(n(),{href:t,className:"text-ink rounded-xs outline-none after:absolute after:inset-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:s}),(0,l.jsx)(d.Ajr,{"aria-hidden":!0,className:"text-ink-muted group-hover:text-ink mt-1 size-6 shrink-0 transition-colors"})]}),o&&(0,l.jsx)("p",{className:"text-ink-muted text-regular leading-relaxed line-clamp-2",children:o})]})]}),(a||c)&&(0,l.jsxs)("div",{className:"mt-auto flex w-full items-center justify-between text-small leading-normal",children:[(0,l.jsx)("div",{className:"flex items-center gap-2",children:a?.image&&(0,l.jsx)("span",{className:"bg-canvas-muted relative size-6 shrink-0 overflow-hidden rounded-full",children:(0,l.jsx)(u.E9,{image:a.image,width:60,alt:a.name??"",className:"size-full object-cover"})})}),c&&(0,l.jsx)("span",{className:"text-ink-muted",children:c})]})]})]})}function b({page:e,totalPages:t,previousLabel:a,nextLabel:i,onChange:s}){let n=function(e,t){if(t<=5)return Array.from({length:t},(e,t)=>t+1);let a=[1],l=Math.max(2,e-1),i=Math.min(t-1,e+1);l>2&&a.push("gap");for(let e=l;e<=i;e++)a.push(e);return i<t-1&&a.push("gap"),a.push(t),a}(e,t);return(0,l.jsxs)("nav",{"aria-label":"Pagination",className:"border-canvas-muted flex items-center justify-center gap-3 border-t pt-5",children:[(0,l.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,l.jsxs)("button",{type:"button",onClick:()=>s(e-1),disabled:1===e,className:"text-ink-muted hover:text-ink inline-flex items-center gap-1 rounded-md py-1 text-small font-semibold leading-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-accent/30 disabled:cursor-not-allowed disabled:opacity-40",children:[(0,l.jsx)(d.wwB,{"aria-hidden":!0,className:"size-5"}),(0,l.jsx)("span",{className:"max-md:sr-only",children:a})]})}),(0,l.jsx)("ol",{className:"flex items-start gap-0.5",children:n.map((t,a)=>"number"==typeof t?(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",onClick:()=>s(t),"aria-current":t===e?"page":void 0,className:(0,p.cn)("flex size-8 md:size-10 items-center justify-center rounded-full text-small leading-normal outline-none transition-colors focus-visible:ring-2 focus-visible:ring-accent/30",t===e?"bg-canvas-muted text-ink-muted font-medium":"text-ink-muted hover:bg-canvas-muted/60 font-medium"),children:t})},`${t}-${a}`):(0,l.jsx)("li",{"aria-hidden":!0,className:"text-ink-muted flex size-8 md:size-10 items-center justify-center text-small leading-5 font-medium",children:"…"},`gap-${a}`))}),(0,l.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-end",children:(0,l.jsxs)("button",{type:"button",onClick:()=>s(e+1),disabled:e===t,className:"text-ink-muted hover:text-ink inline-flex items-center gap-1 rounded-md py-1 text-small font-semibold leading-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-accent/30 disabled:cursor-not-allowed disabled:opacity-40",children:[(0,l.jsx)("span",{className:"max-md:sr-only",children:i}
1020),(0,l.jsx)(d.V3f,{"aria-hidden":!0,className:"size-5"})]})})]})}},74619:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(67255),i=a(87327),s=a(65016);function n({title:e,titleMobile:t,intro:a,align:r="center",className:o,children:c}){return e||a||c?(0,l.jsxs)("header",{className:(0,s.cn)("mx-auto flex max-w-large flex-col gap-2 text-balance md:gap-5","center"===r?"items-center text-center":"items-start text-start",o),children:[e&&(0,l.jsx)("h2",{className:(0,s.cn)("font-display text-h2 leading-tight whitespace-pre-line",t&&"max-md:hidden"),children:e}),t&&(0,l.jsx)("h2",{className:"font-display text-h2 leading-tight whitespace-pre-line md:hidden",children:t}),a&&(0,l.jsx)("div",{className:"text-accent-dark text-medium md:text-large",children:(0,l.jsx)(i.RK,{value:a})}),c]}):null}},76409:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var l=a(67255),i=a(71740),s=a.n(i),n=a(82079),r=a(55385),o=a(28791),c=a(84474),d=a(7701),u=a(11758),m=a(74619),g=a(51209),p=a(65016);let h=e=>({[e]:"max(0.5rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 0.5rem))"}),f={white:"bg-canvas","neutral-lightest":"bg-canvas-muted",transparent:"bg-transparent"};function x({title:e,intro:t,videos:a,ctas:i,background:s="white",...c}){let g=(0,n.useRef)(null),[v,y]=(0,n.useState)(!1),[w,_]=(0,n.use
1020State)(!1),j=f[(0,r.Q)(s)]??f.white,k=(0,n.useCallback)(()=>{let e=g.current;if(!e)return;let{scrollLeft:t,scrollWidth:a,clientWidth:l}=e;y(t>1),_(t+l<a-1)},[]);(0,n.useEffect)(()=>{let e=g.current;if(e)return k(),e.addEventListener("scroll",k,{passive:!0}),window.addEventListener("resize",k),()=>{e.removeEventListener("scroll",k),window.removeEventListener("resize",k)}},[k,a?.length]);let N=e=>{let t=g.current;if(!t)return;let a=t.querySelector("[data-slide]"),l=a?a.getBoundingClientRect().width:t.clientWidth;t.scrollBy({left:l*e,behavior:"smooth"})};return a?.length?(0,l.jsxs)("section",{className:(0,p.cn)("section-pad-medium",j),...(0,o.A)(c),children:[(0,l.jsx)("div",{className:"mx-auto flex max-w-xxlarge flex-col items-center px-8 max-md:px-4",children:(0,l.jsx)(m.A,{title:e,intro:t})}),(0,l.jsxs)("div",{className:"relative my-module-gap",children:[(0,l.jsx)("div",{ref:g,role:"region","aria-roledescription":"carousel","aria-label":"string"==typeof e?e:"Videos",tabIndex:0,onKeyDown:e=>{"ArrowRight"===e.key?(e.preventDefault(),N(1)):"ArrowLeft"===e.key&&(e.preventDefault(),N(-1))},className:"carousel no-scrollbar gap-5 py-3 md:gap-6 overflow-y-visible focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent rounded-sm",style:{"--size":"clamp(16rem, 26vw, 26rem)",paddingInline:"max(1rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 2rem))",scrollPaddingInline:"max(1rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 2rem))"},children:a.map((e,t)=>(0,l.jsx)(b,{video:e,"data-slide":!0},e._id??t))}),(0,l.jsx)(d.A,{direction:"prev",onClick:()=>N(-1),disabled:!v,className:"max-md:hidden absolute top-1/2 z-10 grid -translate-y-1/2 disabled:opacity-30!",style:h("left")}),(0,l.jsx)(d.A,{direction:"next",onClick:()=>N(1),disabled:!w,className:"max-md:hidden absolute top-1/2 z-10 grid -translate-y-1/2 disabled:opacity-30!",style:h("right")})]}),i&&i.length>0&&(0,l.jsx)("div",{className:"mx-auto flex max-w-xxlarge justify-center px-8 max-md:px-4",children:(0,l.jsx)(u.A,{ctas:i,className:"justify-center gap-3",ctaClassName:"max-sm:w-fit"})})]}):null}function b({video:e,...t}){let{title:a,thumbnail:i,duration:n,projekt:o}=e,d=(0,r.Q)(e.language??"")||void 0,u=e.metadata?.slug?.current?(0,c.A)(e,{base:!1,language:d}):void 0,m=(0,p.cn)("group relative block w-full overflow-hidden rounded-md border-2 border-border-strong bg-canvas","","transition-transform duration-200 motion-safe:md:hover:-translate-y-1","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"),h=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.E9,{image:i,width:832,sizes:"(min-width: 1600px) 416px, (min-width: 985px) 26vw, 256px",alt:a||"",className:"block h-auto w-full"}),n&&(0,l.jsx)("span",{className:"absolute right-3 bottom-3 z-10 rounded bg-ink/80 px-2 py-0.5 text-small font-medium text-ink-inverse",children:(0,r.Q)(n)}),(0,l.jsx)("span",{className:"sr-only",children:(0,r.Q)(a||"")})]});return u?(0,l.jsx)(s(),{href:u,className:m,...t,children:h}):(0,l.jsx)("div",{className:m,...t,children:h})}},80663:(e,t,a)=>{"use strict";a.d(t,{d:()=>n});var l=a(30827),i=a(64129);let s=(0,l.OX)(i.S);function n(e){return s.image(e)}},84535:(e,t,a)=>{"use strict";a.d(t,{k:()=>i});var l=a(20243);let i=(0,l.createServerReference)("7840656dc953fc1f4453793121871a0b6ecbcb2450",l.callServer,void 0,l.findSourceMapURL,"fetchMoreCrosstalkVideos")},86855:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var l=a(67255),i=a(82079),s=a(55385),n=a(28791),r=a(7701),o=a(11758),c=a(51209),d=a(54454),u=a(65016);let m={"3/4":"aspect-[3/4]","4/5":"aspect-[4/5]","1/1":"aspect-square"};function g({resource:e,aspect:t="3/4",revealOnHover:a=!1,className:i,...s}){let n=(0,u.cn)("group bg-ink relative overflow-hidden rounded-lg",!a&&"transition-transform duration-200 ease-out md:motion-safe:hover:scale-[1.02]",a&&"[container-type:size]",m[t],i),r=a?(0,l.jsx)(h,{resource:e}):(0,l.jsx)(p,{resource:e});return e.link?(0,l.jsx)(d.default,{className:n,link:e.link,...s,children:r}):(0,l.jsx)("div",{className:n,...s,children:r})}function p({resource:e}){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.E9,{className:"absolute inset-0 h-full w-full object-cover",image:e.image,width:800,alt:e.title||""}),(0,l.jsx)("div",{className:"from-ink/70 via-ink/20 absolute inset-0 bg-gradient-to-t to-transparent","aria-hidden":!0}),(0,l.jsx)("div",{className:"relative flex h-full flex-col items-center justify-end p-6 text-center",children:e.title&&(0,l.jsx)("h3",{className:"text-h5 text-ink-inverse leading-tight font-medium text-balance",children:(0,s.Q)(e.title)})})]})}function h({resource:e}){let t=(0,s.Q)(e.title??""),a=(0,s.Q)(e.description??"");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.E9,{className:"absolute inset-0 h-full w-full object-cover",image:e.image,width:800,alt:t}),(0,l.jsx)("div",{className:"from-ink/70 via-ink/20 absolute inset-0 bg-gradient-to-t to-transparent","aria-hidden":!0}
1020),(0,l.jsx)("div",{"aria-hidden":!0,className:(0,u.cn)("bg-ink/90 absolute inset-0 opacity-0 transition-opacity duration-[600ms] ease-out","md:motion-safe:group-hover:opacity-100","md:motion-safe:group-focus-within:opacity-100")}),(0,l.jsxs)("div",{className:(0,u.cn)("absolute inset-x-0 top-0 flex flex-col items-center gap-3 p-6 text-center","translate-y-[calc(100cqh-100%)]","transition-transform duration-[600ms] ease-[cubic-bezier(0.22,1,0.36,1)]","md:motion-safe:group-hover:translate-y-0 lg:motion-safe:group-hover:translate-y-[calc(50cqh-50%)]","md:motion-safe:group-focus-within:translate-y-0 lg:motion-safe:group-focus-within:translate-y-[calc(50cqh-50%)]"),children:[t&&(0,l.jsx)("h3",{className:"text-h5 text-ink-inverse leading-tight font-medium text-balance",children:t}),a&&(0,l.jsx)("p",{className:(0,u.cn)("text-xs text-ink-inverse max-h-0 overflow-hidden leading-relaxed opacity-0","transition-all duration-[600ms] ease-[cubic-bezier(0.22,1,0.36,1)]","md:motion-safe:group-hover:max-h-[100cqh] md:motion-safe:group-hover:opacity-90","md:motion-safe:group-focus-within:max-h-[100cqh] md:motion-safe:group-focus-within:opacity-90"),children:a})]})]})}var f=a(74619);let x=e=>({[e]:"max(0.5rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 0.5rem))"}),b={white:"bg-canvas","neutral-lightest":"bg-canvas-muted",transparent:"bg-transparent"};function v({title:e,intro:t,resources:a,ctas:c,background:d="white",...m}){let p=(0,i.useRef)(null),[h,y]=(0,i.useState)(!1),[w,_]=(0,i.useState)(!1),j=b[(0,s.Q)(d)]??b.white,k=(0,i.useCallback)(()=>{let e=p.current;if(!e)return;let{scrollLeft:t,scrollWidth:a,clientWidth:l}=e;y(t>1),_(t+l<a-1)},[]);(0,i.useEffect)(()=>{let e=p.current;if(e)return k(),e.addEventListener("scroll",k,{passive:!0}),window.addEventListener("resize",k),()=>{e.removeEventListener("scroll",k),window.removeEventListener("resize",k)}},[k,a?.length]);let N=e=>{let t=p.current;if(!t)return;let a=t.querySelector("[data-slide]"),l=a?a.getBoundingClientRect().width:t.clientWidth;t.scrollBy({left:l*e,behavior:"smooth"})};return a?.length?(0,l.jsxs)("section",{className:(0,u.cn)("section-pad-medium",j),...(0,n.A)(m),children:[(0,l.jsx)("div",{className:"mx-auto flex max-w-xxlarge flex-col items-center px-8 max-md:px-4",children:(0,l.jsx)(f.A,{title:e,intro:t})}),(0,l.jsxs)("div",{className:"relative my-module-gap",children:[(0,l.jsx)("div",{ref:p,className:"carousel no-scrollbar gap-4 py-3 md:gap-6",style:{"--size":"clamp(18rem, 42vw, 15rem)",paddingInline:"max(1rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 2rem))",scrollPaddingInline:"max(1rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 2rem))"},children:a.map((e,t)=>(0,l.jsx)(g,{resource:e,"data-slide":!0},e._id??t))}),(0,l.jsx)(r.A,{direction:"prev",onClick:()=>N(-1),disabled:!h,className:"absolute top-1/2 z-10 hidden -translate-y-1/2 disabled:opacity-30! lg:grid",style:x("left")}),(0,l.jsx)(r.A,{direction:"next",onClick:()=>N(1),disabled:!w,className:"absolute top-1/2 z-10 hidden -translate-y-1/2 disabled:opacity-30! lg:grid",style:x("right")})]}),c&&c.length>0&&(0,l.jsx)("div",{className:"mx-auto flex max-w-xxlarge justify-center px-8 max-md:px-4",children:(0,l.jsx)(o.A,{ctas:c,className:"justify-center gap-3"})})]}):null}},86953:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var l=a(67255),i=a(82079),s=a(55385),n=a(28791),r=a(51209),o=a(7701),c=a(11758),d=a(74619),u=a(65016);let m=e=>({[e]:"max(0.5rem, calc((100vw - var(--max-width-xxlarge)) / 2 + 0.5rem))"}),g={white:"bg-canvas","neutral-lightest":"bg-canvas-muted",transparent:"bg-transparent"};function p({title:e,intro:t,plans:a,platform:r="youversion",platformBadge:f,ctas:x,background:b="white",...v}){let y=g[(0,s.Q)(b??"white")||"white"]??g.white,w=(0,s.Q)(r??"youversion")||"youversion",_=+((a?.length??0)>1),[j,k]=(0,i.useState)(_);if(!a?.length)return null;let N=e=>k(t=>Math.max(0,Math.min(a.length-1,t+e))),$=j<a.length-1;return(0,l.jsx)("section",{className:(0,u.cn)("overflow-visible",y),...(0,n.A)(v),children:(0,l.jsxs)("div",{className:"section-pad-medium mx-auto flex max-w-xxlarge flex-col items-center gap-module-gap",children:[(0,l.jsx)(d.A,{title:e,intro:t}),(0,l.jsxs)("div",{className:"relative w-full overflow-x-clip",role:"region","aria-roledescription":"carousel","aria-label":"string"==typeof e?e:"Reading plans",tabIndex:0,onKeyDown:e=>{"ArrowRight"===e.key?(e.preventDefault(),N(1)):"ArrowLeft"===e.key&&(e.preventDefault(),N(-1))},children:[(0,l.jsx)("div",{className:"py-8 [clip-path:inset(-120px_0)] md:py-12",children:(0,l.jsx)("div",{className:(0,u.cn)("flex w-fit items-center","transition-transform duration-[700ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none"),style:{"--card-w":"clamp(15rem, 32vw, 22rem)","--gap":"clamp(0.5rem, 1vw, 0.75rem)",gap:"var(--gap)",marginLeft:"50%",transform:`translateX(calc(-1 * (${j} * (var(--card-w) + var(--gap)) + var(--card-w) / 2)))`},children:a.map((e,t)=>(0,l.jsx)("div",{className:(0,u.cn)("shrink-0 transition-opacity duration-[700ms] motion-reduce:transition-none",Math.abs(t-j)>1?"opacity-0 pointer-events-none":"opacity-100"),style:{width:"var(--card-w)"},children:(0,l.jsx)(h,{plan:e,platform:w,platformBadge:f,active:t===j})},e._id??t))})}),(0,l.jsx)(o.A,{direction:"prev",onClick:()=>N(-1),disabled:!(j>0),label:"Previous reading plan",className:"absolute top-1/2 z-10 grid -translate-y-1/2 disabled:opacity-30! disabled:pointer-events-none",style:m("left")}),(0,l.jsx)(o.A,{direction:"next",onClick:()=>N(1),disabled:!$,label:"Next reading plan",className:"absolute top-1/2 z-10 grid -translate-y-1/2 disabled:opacity-30! disabled:pointer-events-none",style:m("right")})]}),x&&x.length>0&&(0,l.jsx)(c.A,{ctas:x,className:"justify-center gap-3"})]})})}function h({plan:e,platform:t,platformBadge:a,active:i}){let n=(0,s.Q)(e.titel??"").trim(),o=(0,s.Q)(e.stat??"").trim(),c=(0,s.Q)(("youversion"===t?e.youversionLink:e.bibelTvLink)??"").trim(),d=(0,u.cn)("group bg-canvas relative flex flex-col items-center justify-center","origin-center rounded-lg p-2","transition-[transform,box-shadow] duration-[700ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",i?"scale-[1.3] z-10 shadow-2xl":"scale-[0.85] shadow-xl"),m=(0,l.jsxs)("div",{className:"border-border-strong relative aspect-[809/525] w-full overflow-hidden rounded-md border",children:[!!e.thumbnail?.asset&&(0,l.jsx)(r.E9,{image:e.thumbnail,width:1200,alt:n,className:"block h-full w-full object-cover"}),!!a?.asset&&(0,l.jsx)("div",{className:(0,u.cn)("absolute bottom-3 left-3 overflow-hidden rounded-sm","size-12 md:size-15"),children:(0,l.jsx)(r.E9,{image:a,width:150,alt:"",className:"block h-full w-full object-cover"})}),o&&(0,l.jsx)("div",{className:(0,u.cn)("absolute right-0 bottom-0 left-0 px-6 py-3 text-center","bg-ink/55 backdrop-blur-sm","transition-opacity duration-300 motion-reduce:transition-none",i?"opacity-100":"opacity-0"),"aria-hidden":!i||void 0,children:(0,l.jsx)("span",{className:"text-medium text-ink-inverse font-medium",children:o})})]});return c?(0,l.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":n||void 0,"data-active":i||void 0,className:d,children:m}):(0,l.jsx)("div",{"data-active":i||void 0,className:d,children:m})}},91919:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var l=a(67255),i=a(82079),s=a(96498),n=a(37602);
1020let r=["analytics","advertisement","functional"];function o(){try{let e=window;if("function"==typeof e.getCkyConsent){let t=e.getCkyConsent();if(t?.categories)return r.some(e=>t.categories[e])}}catch{}let e=document.cookie.match(/(?:^|; )cookieyes-consent=([^;]*)/);if(e){let t=decodeURIComponent(e[1]);return r.some(e=>RegExp(`${e}:yes`).test(t))}return!1}function c({children:e}){let[t,a]=(0,i.useState)(!1),r=(0,s.A)(),d=(0,n.sb)(r);return((0,i.useEffect)(()=>{a(o());let e=()=>a(o());return window.addEventListener("cookieyes_consent_update",e),()=>window.removeEventListener("cookieyes_consent_update",e)},[]),t)?(0,l.jsx)(l.Fragment,{children:e}):(0,l.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-canvas-muted p-6 text-center",children:[(0,l.jsx)("svg",{viewBox:"0 0 24 24",className:"size-8 text-ink-muted",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})}),(0,l.jsx)("p",{className:"text-ink-muted text-small max-w-[22ch]",children:d.message}),(0,l.jsx)("button",{type:"button",onClick:()=>window.revisitCkyConsent?.(),className:"rounded-sm bg-ink px-4 py-2 text-small font-medium text-canvas transition-colors hover:bg-ink/80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink",children:d.button})]})}},94270:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var l=a(67255),i=a(82079),s=a(28791);function n({code:e,className:t,...a}){let r=(0,i.useRef)(null),[o,c]=(0,i.useState)(!0);return((0,i.useEffect)(()=>{if(!e)return;if(o)return void c(!1);let t=document.createRange().createContextualFragment(e);r.current?.appendChild(t)},[e,o]),e)?(0,l.jsx)("section",{ref:r,className:t,...(0,s.A)(a)}):null}},95860:(e,t,a)=>{"use strict";a.d(t,{default:()=>r});var l=a(67255),i=a(82079),s=a(67919),n=a(65016);function r({value:e,className:t,children:a=(0,l.jsx)(s.ASe,{}),childrenWhenCopied:o=(0,l.jsx)(s.vbi,{}),...c}){let[d,u]=(0,i.useState)(!1);return(0,l.jsx)("button",{className:(0,n.cn)("cursor-copy",d&&"pointer-events-none",t),onClick:()=>{e&&(navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),1e3))},title:"Click to copy",...c,children:d?o:a})}},96498:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(93233),i=a(55895);let s=RegExp(`^/(?:blog/)?(?<lang>${i.eo.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|")})(?:/|$)`);function n(){return(0,l.usePathname)().match(s)?.groups?.lang||i.xN}},99455:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var l=a(67255),i=a(82079),s=a(7701),n=a(65016);function r({children:e,listClassName:t,listStyle:a,label:o="Carousel",className:c,navClassName:d}){let u=(0,i.useRef)(null),[m,g]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),f=(0,i.useCallback)(()=>{let e=u.current;if(!e)return;let{scrollLeft:t,scrollWidth:a,clientWidth:l}=e;g(t>1),h(t+l<a-1)},[]);(0,i.useEffect)(()=>{let e=u.current;if(e)return f(),e.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",f),()=>{e.removeEventListener("scroll",f),window.removeEventListener("resize",f)}},[f]);let x=e=>{let t=u.current;if(!t)return;let a=t.querySelector("[data-slide]"),l=a?a.getBoundingClientRect().width:t.clientWidth;t.scrollBy({left:l*e,behavior:"smooth"})};return(0,l.jsxs)("div",{className:(0,n.cn)("relative",c),role:"region","aria-roledescription":"carousel","aria-label":o,children:[(0,l.jsx)("ul",{ref:u,className:t,style:a,tabIndex:0,onKeyDown:e=>{"ArrowRight"===e.key?(e.preventDefault(),x(1)):"ArrowLeft"===e.key&&(e.preventDefault(),x(-1))},children:e}),(0,l.jsxs)("div",{className:d,children:[(0,l.jsx)(s.A,{direction:"prev",onClick:()=>x(-1),disabled:!m,className:"absolute top-1/2 left-2 z-10 grid -translate-y-1/2 disabled:opacity-30!"}),(0,l.jsx)(s.A,{direction:"next",onClick:()=>x(1),disabled:!p,className:"absolute top-1/2 right-2 z-10 grid -translate-y-1/2 disabled:opacity-30!"})]})]})}},99837:e=>{e.exports={code:"Code_code__w6Q7U"}}}]);

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.