PageSourceSearch

https://astrafilm.ro/_next/static/chunks/0gbf06gol8tp6.js?dpl=8b3926e55526398ae63ef710e4d1affa15c41a92

js astrafilm.ro collected 2026-09-24 22:25:56 UTC 63,740 bytes, 34 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,200996,e=>{"use strict";var t=e.i(843476),a=e.i(399563),i=e.i(657688),s=e.i(520133),l=e.i(948148),r=e.i(975157),n=e.i(685149),o=e.i(308196),c=e.i(825327);function d({labels:e,className:a,size:i="default"}){if(0===e.length)return null;let l="compact"===i;return(0,t.jsx)("div",{className:`flex flex-wrap ${l?"gap-[6px]":"gap-[10px]"} ${a??""}`,children:e.map(e=>{let a=l?"inline-flex items-center px-[8px] py-[6px] text-[11px] font-heading font-bold leading-[1.2] whitespace-nowrap":"inline-flex items-center px-3 py-[5px] text-[13px] font-body font-semibold leading-none whitespace-nowrap",i={backgroundColor:e.color,color:e.textColor??"#fff"};return e.href?e.external?(0,t.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:`${a} transition-opacity hover:opacity-80`,style:i,children:[e.label,(0,t.jsx)(c.ArrowUpRightIcon,{size:11,className:"ml-1.5 opacity-80"})]},e.key):(0,t.jsx)(s.Link,{href:e.href,className:`${a} transition-opacity hover:opacity-80`,style:i,children:e.label},e.key):(0,t.jsx)("span",{className:a,style:i,children:e.label},e.key)})})}var x=e.i(271645),f=e.i(155958),p=e.i(933218);function u({label:e,color:a}){return(0,t.jsx)("span",{className:"self-start inline-block px-[8px] py-[7px] font-heading font-bold text-[11px] leading-[1.2] text-white",style:{backgroundColor:a},children:e})}function h({event:e}){return e.labels?(0,t.jsx)(d,{labels:e.labels,size:"compact",className:"relative z-[2] self-start"}):e.section?(0,t.jsx)(u,{label:e.section,color:e.sectionColor}):null}function m({target:e,label:i,eventTitle:l,mobile:r=!1}){if(!(0,a.useRouteVisibility)("tickets").visible)return null;let n=r?"relative z-[2] size-11 shrink-0 bg-aff-red text-white flex items-center justify-center hover:bg-af-dark transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-offset-2":"flex h-11 items-center gap-2 bg-af-dark text-white font-heading font-bold text-[14px] leading-none px-4 hover:bg-aff-red transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-offset-2",o=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.TicketIcon,{size:18}),!r&&i]}),d=r?`${i} ${l}`:void 0;return"external"===e.kind?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":d,className:n,children:o}):(0,t.jsx)(s.Link,{href:e.href,"aria-label":d,className:n,children:o})}function g({child:e,brand:a,onNavigationIntent:i}){let l="film"===e.eventType,r=[e.director,e.country,e.year,e.duration?`${e.duration} min`:void 0].filter(Boolean).join(" · "),o=(0,t.jsxs)("div",{className:"flex gap-3 items-start py-[6px]",children:[(0,t.jsxs)("div",{className:"shrink-0 w-[72px]",children:[(0,t.jsx)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/50 tabular-nums",children:e.startTime}),(0,t.jsx)("p",{className:"font-body text-[11px] leading-[1.3] text-af-dark/30 tabular-nums",children:e.endTime})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-heading font-semibold text-[14px] leading-[1.2] text-af-dark",children:e.title}),l&&r&&(0,t.jsx)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/45 mt-[2px]",children:r}),!l&&e.speakers&&e.speakers.length>0&&(0,t.jsx)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/45 mt-[2px]",children:e.speakers.slice(0,3).map(e=>e.name).join(", ")})]})]});if(l&&e.slug){var c;let l=(c=e.slug,"afj"===a?n.ROUTES.junior.film(c):"chisinau"===a?n.ROUTES.chisinau.film(c):"dome"===a?n.ROUTES.dome.film(c):n.ROUTES.festival.film(c));return(0,t.jsx)(s.Link,{href:l,className:"relative z-[2] block hover:opacity-70 transition-opacity",onClick:e=>e.stopPropagation(),onMouseEnter:()=>i(l),onFocus:()=>i(l),onTouchStart:()=>i(l),children:o})}return(0,t.jsx)("div",{children:o})}let b=(0,x.memo)(function({event:e,ticketLabel:a,onNavigationIntent:l}){let c=(e.children?.length??0)>0,d=e.detailHref??("film"===e.eventType?n.ROUTES.festival.film(e.slug):n.ROUTES.festival.event
1(e.slug)),x=d.startsWith("/junior")?"afj":d.startsWith("/chisinau")?"chisinau":d.startsWith("/dome")?"dome":"aff",f=(0,o.resolveTicketTarget)({ticketsUrl:e.ticketsUrl,filmSlug:"aff"===x&&"film"===e.eventType?e.slug:void 0,bookable:e.bookable}),u={kind:"film"===e.eventType?"screening":"package"===e.eventType?"package":"event",sourceId:e.id,brand:x,edition:e.startsAt.slice(0,4),slug:e.slug,title:e.title,startsAt:e.startsAt,endsAt:e.endsAt,venue:e.venue,posterUrl:e.posterUrl,href:d,ticketsUrl:e.ticketsUrl};return(0,t.jsxs)("article",{className:"relative border-t-[1.5px] border-af-dark first:border-t-0 group cursor-pointer",children:[(0,t.jsx)(s.Link,{href:d,className:"absolute inset-0 z-[1] hover:opacity-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-inset","aria-label":e.title,onMouseEnter:()=>l(d),onFocus:()=>l(d),onTouchStart:()=>l(d)}),(0,t.jsxs)("div",{className:(0,r.cn)("hidden lg:flex gap-0",c?"items-stretch":"h-[232px]"),children:[(0,t.jsxs)("div",{className:"w-[155px] shrink-0 flex flex-col justify-center gap-1 py-6 pr-5",children:[(0,t.jsx)("p",{className:"font-heading font-bold text-[30px] leading-[1.1] text-af-dark",children:e.startTime}),(0,t.jsx)("p",{className:"font-body text-[14px] leading-[1.4] text-af-dark/60",children:e.venue})]}),(0,t.jsx)("div",{className:(0,r.cn)("w-[144px] shrink-0 flex items-center mx-8",c&&"items-start py-6"),children:(0,t.jsx)("div",{className:"relative w-[144px] h-[192px] overflow-hidden bg-af-dark/10",children:e.posterUrl?(0,t.jsx)(i.default,{src:e.posterUrl,alt:e.title,fill:!0,className:"object-cover group-hover:scale-[1.02] transition-transform duration-300",sizes:"144px"}):null})}),(0,t.jsxs)("div",{className:(0,r.cn)("flex-1 flex flex-col min-w-0",c?"py-6 gap-3":"justify-center gap-[10px] py-[40px]"),children:[(0,t.jsx)("h3",{className:"font-heading font-bold text-[24px] leading-[1.2] text-af-dark line-clamp-2",children:e.title}),!c&&e.director&&(0,t.jsxs)("p",{className:"font-body text-[14px] leading-[1.5] text-af-dark/60",children:[e.director,e.country?` \xb7 ${e.country}`:"",e.duration?` \xb7 ${e.duration} min`:""]}),(0,t.jsx)(h,{event:e}),c&&e.children.length>0&&(0,t.jsx)("div",{className:"mt-1 flex flex-col divide-y divide-af-dark/[0.06]",children:e.children.map(e=>(0,t.jsx)(g,{child:e,brand:x,onNavigationIntent:l},e.id))})]}),(0,t.jsxs)("div",{className:"relative z-[2] flex shrink-0 items-center justify-end gap-3 pl-4",children:[(0,t.jsx)(p.ScheduleButton,{item:u,variant:"compact"}),f&&(0,t.jsx)(m,{target:f,label:a,eventTitle:e.title})]})]}),(0,t.jsxs)("div",{className:"lg:hidden py-[24px] flex flex-col gap-[16px]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-heading font-bold text-[20px] leading-[1.1] text-af-dark",children:e.startTime}),(0,t.jsx)("p",{className:"font-body text-[14px] leading-[1.4] text-af-dark/60",children:e.venue})]}),(0,t.jsxs)("div",{className:"relative z-[2] flex shrink-0 items-center gap-3",children:[(0,t.jsx)(p.ScheduleButton,{item:u,variant:"compact"}),f&&(0,t.jsx)(m,{target:f,label:a,eventTitle:e.title,mobile:!0})]})]}),(0,t.jsxs)("div",{className:"flex gap-[16px]",children:[(0,t.jsx)("div",{className:"relative w-[100px] h-[133px] shrink-0 overflow-hidden bg-af-dark/10",children:e.posterUrl?(0,t.jsx)(i.default,{src:e.posterUrl,alt:e.title,fill:!0,className:"object-cover group-hover:scale-[1.02] transition-transform duration-300",sizes:"100px"}):null}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 min-w-0 pt-1 flex-1",children:[(0,t.jsx)("h3",{className:"font-heading font-bold text-[18px] leading-[1.2] text-af-dark line-clamp-3",children:e.title}),!c&&e.director&&(0,t.jsxs)("p",{className:"font-body text-[13px] leading-[1.4] text-af-dark/60",children:[e.director,e.country?` \xb7 ${e.country}`:"",e.duration?` \xb7 ${e.duration} min`:""]}),(0,t.jsx)(h,{event:e}),c&&e.children.length>0&&(0,t.jsx)("div",{className:"mt-1 flex flex-col divide-y divide-af-dark/[0.06]",children:e.children.map(e=>(0,t.jsx)(g,{child:e,brand:x,onNavigationIntent:l},e.id))})]})]})]})]})});function v({label:e}){return(0,t.jsx)("div",{className:"bg-af-dark text-white font-heading font-bold text-[13px] lg:text-[14px] uppercase tracking-wide px-4 py-2.5 mt-3 first:mt-0",children:e})}let j=(0,x.memo)(function({events:e,dayLabels:a}){let i=(0,l.useTranslations)("program"),s=(0,f.useIntentPrefetch)(),r=i("ticket"),n=(0,x.useMemo)(()=>[...e].sort(a?(e,t)=>e.day===t.day?e.startTime.localeCompare(t.startTime):e.day.localeCompare(t.day):(e,t)=>e.startTime.localeCompare(t.startTime)),[e,a]);return 0===n.length?(0,t.jsx)("div",{className:"bg-white",children:(0,t.jsx)("div",{className:"max-w-[1440px] mx-auto px-5 lg:px-16 py-16 text-center",children:(0,t.jsx)("p",{className:"font-body text-[16px] text-af-dark/50",children:i("noScreeningsDay")})})}):(0,t.jsx)("div",{className:"bg-white",children:(0,t.jsx)("div",{className:"max-w-[1440px] mx-auto px-5 lg:px-16",children:(0,t.jsx)("div",{className:"flex flex-col",children:n.map((e,i)=>{let l=a&&(0===i||n[i-1].day!==e.day);return(0,t.jsxs)(x.Fragment,{children:[l&&(0,t.jsx)(v,{label:a[e.day]??e.day}
1),(0,t.jsx)(b,{event:e,ticketLabel:r,onNavigationIntent:s})]},e.id)})})})})});e.s(["CalendarListSection",0,j],200996)},850154,e=>{"use strict";var t=e.i(843476),a=e.i(520133),i=e.i(975157),s=e.i(685149),l=e.i(271645),r=e.i(155958);let n=Array.from({length:16},(e,t)=>9+t);function o(e){return Math.max(e/60*160,40)}function c(e,t){let a=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return`rgba(${a}, ${i}, ${s}, ${t})`}function d({label:e,color:a}){return(0,t.jsx)("span",{className:"inline-block px-[8px] py-[5px] font-heading font-bold text-[9px] leading-[1.2] text-white truncate max-w-full",style:{backgroundColor:a},children:e})}function x({child:e,onNavigationIntent:i}){let l=o(e.duration),r="film"===e.eventType,n=(0,t.jsxs)("div",{className:"flex flex-col gap-[2px] pt-[5px] px-[10px] pb-[6px] overflow-hidden",style:{height:l},children:[(0,t.jsxs)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/50 shrink-0",children:[e.startTime," – ",e.endTime]}),(0,t.jsx)("p",{className:"font-heading font-bold text-[14px] leading-[1.2] text-af-dark line-clamp-2",children:e.title}),r&&(e.director||e.country||e.year)&&(0,t.jsx)("p",{className:"font-body text-[7px] leading-[1.3] text-af-dark/50 truncate shrink-0",children:[e.director,e.country,e.year,e.duration?`${e.duration} min`:""].filter(Boolean).join(" / ")}),!r&&e.speakers&&e.speakers.length>0&&(0,t.jsx)("p",{className:"font-body text-[7px] leading-[1.3] text-af-dark/50 line-clamp-2 shrink-0",children:e.speakers.slice(0,2).map(e=>e.name).join(", ")})]});if(r&&e.slug){let l=s.ROUTES.festival.film(e.slug);return(0,t.jsx)(a.Link,{href:l,className:"relative z-[2] block border-t border-af-dark/10 hover:brightness-95 transition-[filter]",onClick:e=>e.stopPropagation(),onMouseEnter:()=>i(l),onFocus:()=>i(l),onTouchStart:()=>i(l),children:n})}return(0,t.jsx)("div",{className:"relative z-[2] border-t border-af-dark/10",children:n})}let f=(0,l.memo)(function({event:e,onNavigationIntent:l}){let r=(function(e){let[t,a]=e.split(":").map(Number);return 60*t+a}(e.startTime)-540)/60*160,n=o(e.duration),f=n<80,p=(e.children?.length??0)>0,u=e.detailHref??("film"===e.eventType?s.ROUTES.festival.film(e.slug):s.ROUTES.festival.event(e.slug)),h=(0,t.jsxs)("div",{className:"absolute left-[10px] right-[10px] overflow-hidden",style:{top:r,height:n,backgroundColor:c(e.sectionColor,.3)},children:[p&&(0,t.jsx)(a.Link,{href:u,className:"absolute inset-0 z-[1] hover:opacity-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-inset","aria-label":e.title,onMouseEnter:()=>l(u),onFocus:()=>l(u),onTouchStart:()=>l(u)}),(0,t.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-[3px] pt-[5px] px-[10px] pb-[6px]",p?"shrink-0":"h-full"),children:[(0,t.jsxs)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/50 shrink-0",children:[e.startTime," ",p?`– ${e.endTime}`:""]}),(0,t.jsx)("p",{className:(0,i.cn)("font-heading font-bold text-[14px] leading-[1.2] text-af-dark",f&&!p?"line-clamp-2":"line-clamp-3"),children:e.title}),!f&&!p&&e.director&&(0,t.jsxs)("p",{className:"font-body text-[7px] leading-[1.3] text-af-dark/50 truncate shrink-0",children:[e.director,e.country?` \xb7 ${e.country}`:""]}),!f&&!p&&(0,t.jsx)("div",{className:"mt-auto shrink-0",children:(0,t.jsx)(d,{label:e.section,color:e.sectionColor})}),p&&(0,t.jsx)("div",{className:"shrink-0 mt-[2px]",children:(0,t.jsx)(d,{label:e.section,color:e.sectionColor})})]}),p&&e.children.map(e=>(0,t.jsx)(x,{child:e,onNavigationIntent:l},e.id))]});return p?h:(0,t.jsx)(a.Link,{href:u,className:"absolute left-[10px] right-[10px] group overflow-hidden hover:brightness-95 transition-[filter]",onMouseEnter:()=>l(u),onFocus:()=>l(u),onTouchStart:()=>l(u),style:{top:r,height:n,backgroundColor:c(e.sectionColor,.3)},children:(0,t.jsxs)("div",{className:"flex flex-col gap-[3px] pt-[5px] px-[10px] pb-[10px] h-full overflow-hidden",children:[(0,t.jsx)("p",{className:"font-body text-[12px] leading-[1.3] text-af-dark/50 shrink-0",children:e.startTime}),(0,t.jsx)("p",{className:(0,i.cn)("font-heading font-bold text-[14px] leading-[1.2] text-af-dark group-hover:text-aff-red transition-colors",f?"line-clamp-2":"line-clamp-3"),children:e.title}),!f&&e.director&&(0,t.jsxs)("p",{className:"font-body text-[7px] leading-[1.3] text-af-dark/50 truncate shrink-0",children:[e.director,e.country?` \xb7 ${e.country}`:""]}),!f&&(0,t.jsx)("div",{className:"mt-auto shrink-0",children:(0,t.jsx)(d,{label:e.section,color:e.sectionColor})})]})})}),p=(0,l.memo)(function({events:e,venues:a}){let i=(0,r.useIntentPrefetch)(),s=(0,l.useMemo)(()=>{let t=new Map;for(let a of e){let e=t.get(a.venue);e?e.push(a):t.set(a.venue,[a])}return t},[e]);return(0,t.jsx)("div",{className:"bg-white border-t border-af-dark/10",children:(0,t.jsx)("div",{className:"max-w-[1440px] mx-auto",children:(0,t.jsx)("div",{className:"overflow-x-auto",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"relative flex",style:{minWidth:50+180*a.length},children:[(0,t.jsx)("div",{className:"shrink-0 border-r border-af-dark/10",style:{width:50,paddingTop:54},children:n.map(e=>(0,t.jsx)("div",{className:"relative flex items-start justify-end pr-2",style:{height:160},children:e<24&&(0,t.jsxs)("span",{className:"font-body text-[12px] leading-none text-af-dark/40 -translate-y-[6px]",children:[String(e).padStart(2,"0"),":00"]})},e))}),a.map((e,a)=>{let l=s.get(e)??[];return(0,t.jsxs)("div",{className:"flex-1 border-r border-af-dark/10 last:border-r-0",style:{minWidth:180},children:[(0,t.jsx)("div",{className:"flex items-center justify-center px-2 pt-[20px] border-b border-af-dark",style:{height:54,backgroundColor:a%2==0?"#f4f2f2":"#ffffff",borderBottomWidth:"0.5px"},children:(0,t.jsx)("p",{className:"font-heading font-bold text-[12px] leading-[1.2] text-af-dark text-center line-clamp-2",children:e})}),(0,t.jsxs)("div",{className:"relative",style:{height:2400},children:[n.slice(0,-1).map(e=>(0,t.jsx)("div",{className:"absolute left-0 right-0 border-t border-af-dark/8",style:{to
1p:(e-9)*160}},e)),l.map(e=>(0,t.jsx)(f,{event:e,onNavigationIntent:i},e.id))]})]},e)})]})})})})});e.s(["CalendarTableSection",0,p])},177282,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(657688),s=e.i(861745),l=e.i(520133),r=e.i(975157),n=e.i(825327),o=e.i(536146),c=e.i(772681),d=e.i(519030);function x({ro:e,paused:a,canStep:i,onPrev:s,onNext:l,onTogglePause:o,showPause:c,className:d}){let f=(0,r.cn)("grid size-9 shrink-0 place-items-center text-white","transition-opacity hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white","disabled:cursor-not-allowed disabled:opacity-35 motion-reduce:transition-none"),p=e=>e.stopPropagation();return(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2",d),children:[(0,t.jsx)("button",{type:"button","aria-label":e?"Slideul anterior":"Previous slide",title:e?"Slideul anterior":"Previous slide",disabled:!i,onMouseDown:p,onClick:e=>{p(e),s()},className:f,children:(0,t.jsx)(n.Icon,{name:"arrow_back",size:22})}),c&&(0,t.jsx)("button",{type:"button","aria-label":a?e?"Pornește caruselul":"Play carousel":e?"Oprește temporar caruselul":"Pause carousel","aria-pressed":a,title:a?e?"Pornește caruselul":"Play carousel":e?"Oprește temporar caruselul":"Pause carousel",onMouseDown:p,onClick:e=>{p(e),o()},className:f,children:(0,t.jsx)(n.Icon,{name:a?"play_arrow":"pause",size:22,fill:1})}),(0,t.jsx)("button",{type:"button","aria-label":e?"Slideul următor":"Next slide",title:e?"Slideul următor":"Next slide",disabled:!i,onMouseDown:p,onClick:e=>{p(e),l()},className:f,children:(0,t.jsx)(n.Icon,{name:"arrow_forward",size:22})})]})}e.s(["HeroCarouselSection",0,function({slides:e=[],document:f,interval:p,className:u}){let h="en"!==(0,s.useLocale)(),m=f?.slides??[],g=f?m.map(e=>e.content):e,b=g.length,v=f?.renderMode==="visual-v1",j=f?.settings.loop??!0,y=f?.settings.pauseOnHover??!0,k=f?.settings.transition??{kind:"crossfade",durationMs:700,easing:"ease-in-out"},N=(0,c.usePrefersReducedMotion)(),[w,T]=(0,a.useState)(0),[C,z]=(0,a.useState)(null),[S,$]=(0,a.useState)(1),[P,I]=(0,a.useState)(!1),[E,L]=(0,a.useState)(!1),M=(0,a.useRef)(null),R=(0,a.useRef)(null),F=(0,a.useRef)(0),U=(0,a.useRef)(null),A=(0,a.useRef)(null),_=(0,a.useRef)(null),D=(0,a.useRef)(null),V=(0,a.useRef)(null),B=(0,a.useRef)("idle"),O=(0,a.useRef)(null),W=(0,a.useRef)(0),H=b>0?Math.min(w,b-1):0,X=v?m[H]?.durationMs:void 0,Q=f?.settings.autoplayMs??5e3,q=v?X??Q:Q,K=p??(0===Q?0:q),Y=b>1&&!N&&K>0,G=Y&&(j||H<b-1),J={...k,durationMs:(0,d.getEffectiveSliderTransitionDuration)({renderMode:v?"visual-v1":"legacy-v1",transitionDurationMs:k.durationMs,autoplayMs:Q,slideDurations:m.map(e=>e.durationMs),interval:p})},Z=N||"none"===J.kind?0:J.durationMs,ee=P||E||N,et=(0,a.useCallback)((e,t)=>{if(b<1)return;let a=j?(e%b+b)%b:Math.min(b-1,Math.max(0,e));if(a===H){U.current=null,null!==A.current&&(window.clearTimeout(A.current),A.current=null);return}let i=Date.now();if(i<F.current){U.current={index:e,direction:t},null!==A.current&&window.clearTimeout(A.current),A.current=window.setTimeout(()=>{A.current=null;let e=U.current;U.current=null,e&&_.current?.(e.index,e.direction)},F.current-i+16);return}null!==A.current&&(window.clearTimeout(A.current),A.current=null),U.current=null;let s=t;s||(s=j?(a-H+b)%b<=(H-a+b)%b?1:-1:a>H?1:-1),z(H),$(s),T(a),F.current=i+(N||"none"===J.kind?0:J.durationMs)},[b,J.durationMs,J.kind,j,N,H]);(0,a.useEffect)(()=>{_.current=et},[et]),(0,a.useEffect)(()=>{if(!N)return;F.current=0,null!==A.current&&(window.clearTimeout(A.current),A.current=null);let e=U.current;U.current=null,e&&_.current?.(e.index,e.direction)},[N]),(0,a.useEffect)(()=>()=>{null!==A.current&&window.clearTimeout(A.current)},[]);let ea=(0,a.useCallback)(()=>et(H+1,1),[et,H]),ei=(0,a.useCallback)(()=>et(H-1,-1),[et,H]);(0,a.useEffect)(()=>{if(!G||ee)return;let e=window.setTimeout(ea,K);return()=>window.clearTimeout(e)},[K,G,ea,ee]);let es=()=>{null!==O.current&&(Math.abs(W.current)>48&&(W.current>0?ea():ei()),O.current=null)},el=()=>{D.current=null,V.current=null,B.current="idle"};return((0,a.useEffect)(()=>{let e=M.current;if(!e)return;let t=e=>{if(1!==e.touches.length){D.current=null,V.current=null,B.current="idle";return}let t=e.target;if(t instanceof Element&&t.closest("[data-carousel-pagination-rail]")||null===D.current||null===V.current)return;let a=Math.abs(e.touches[0].clientX-D.current),i=Math.abs(e.touches[0].clientY-V.current);"undecided"===B.current&&(a>5||i>5)&&(B.current=a>i?"horizontal":"vertical"),"horizontal"===B.current&&e.preventDefault()};return e.addEventListener("touchmove",t,{passive:!1}),()=>{e.removeEventListener("touchmove",t)}},[]),(0,a.useEffect)(()=>
1{if(v)return;let e=R.current,t=e?.querySelector(`[data-carousel-index="${H}"]`);if(!e||!t)return;let a=()=>{let a=Math.max(0,Math.min(e.scrollWidth-e.clientWidth,t.offsetLeft-(e.clientWidth-t.offsetWidth)/2));e.scrollTo({left:a,behavior:N?"auto":"smooth"})};a();let i=new ResizeObserver(a);return i.observe(e),()=>i.disconnect()},[N,H,v]),0===b)?null:(0,t.jsxs)("section",{ref:M,className:(0,r.cn)("relative h-[570px] w-full touch-auto select-none overflow-hidden bg-af-dark lg:h-[729px]","cursor-grab active:cursor-grabbing",u),"aria-label":h?"Selecții recomandate":"Featured stories","aria-roledescription":"carousel",onMouseEnter:()=>{y&&I(!0)},onMouseLeave:()=>{I(!1),es(),W.current=0},onFocus:()=>I(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||I(!1)},onKeyDown:e=>{let t=e.target;t instanceof Element&&t.closest("a[href]")||("ArrowRight"===e.key&&(e.preventDefault(),ea()),"ArrowLeft"===e.key&&(e.preventDefault(),ei()))},onMouseDown:e=>{if(0!==e.button)return;let t=e.target;if(t instanceof Element&&t.closest("a[href],button,[data-carousel-pagination-rail]")){O.current=null,W.current=0;return}O.current=e.clientX,W.current=0},onMouseMove:e=>{null!==O.current&&(W.current=O.current-e.clientX)},onMouseUp:es,onClickCapture:e=>{let t=e.target;if(t instanceof Element&&t.closest("a[href],button,[data-carousel-pagination-rail]")){W.current=0;return}Math.abs(W.current)>8&&(e.preventDefault(),e.stopPropagation(),W.current=0)},onTouchStart:e=>{if(1!==e.touches.length)return void el();let t=e.target;t instanceof Element&&t.closest("a[href],button,[data-carousel-pagination-rail]")?el():(D.current=e.touches[0].clientX,V.current=e.touches[0].clientY,B.current="undecided")},onTouchEnd:e=>{let t=e.changedTouches[0];if(null===D.current||"horizontal"!==B.current||!t)return void el();let a=D.current-t.clientX;Math.abs(a)>48&&(a>0?ea():ei()),el()},onTouchCancel:el,children:[v?m.map((e,a)=>{let i=a===H;return(0,t.jsx)("div",{className:(0,r.cn)("absolute inset-0",i?"pointer-events-auto":"pointer-events-none"),style:function({phase:e,direction:t,transition:a,reducedMotion:i}){let s="active"===e||"enter"===e,l=i||"none"===a.kind?0:a.durationMs;if(l>0&&("slide-left"===a.kind||"slide-up"===a.kind)&&("enter"===e||"exit"===e)){let i="slide-left"===a.kind?"x":"y";return{animationName:`aff-hero-${i}-${e}-${1===t?"next":"previous"}`,animationDuration:`${l}ms`,animationTimingFunction:a.easing,animationFillMode:"both",willChange:"opacity, transform"}}let r="none";return s||"fade"!==a.kind||(r="scale(0.985)"),s||"zoom"!==a.kind||(r="scale(1.035)"),{opacity:+!!s,transform:r,transitionProperty:"opacity, transform",transitionDuration:`${l}ms`,transitionTimingFunction:a.easing}}({phase:i?null===C?"active":"enter":a===C?"exit":"idle",direction:S,transition:J,reducedMotion:N}),role:"group","aria-roledescription":"slide","aria-label":h?`Slide ${a+1} din ${b}`:`Slide ${a+1} of ${b}`,"aria-hidden":!i,children:(0,t.jsx)(o.SlideScene,{slide:e,slideIndex:a,active:i,reducedMotion:N,priority:0===a})},e.id)}):g.map((e,a)=>(0,t.jsx)("div",{"aria-hidden":a!==H,className:(0,r.cn)("absolute inset-0",N?"transition-none":"transition-opacity ease-in-out",a===H?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),style:{transitionDuration:`${Z}ms`},children:(0,t.jsx)(i.default,{src:e.imageUrl,alt:e.imageAlt,fill:!0,draggable:!1,className:"object-cover opacity-80",priority:0===a,fetchPriority:0===a?void 0:"low",sizes:"100vw"})},f?.slides[a]?.id??a)),!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto flex h-full w-full max-w-[1440px] flex-col justify-end px-5 pb-[34px] lg:px-16 lg:pb-20",children:[(0,t.jsx)("div",{className:"relative min-h-[160px] max-w-[584px] lg:min-h-[220px]",children:g.map((e,a)=>{let i=a===H,s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"sr-only",children:e.title}),(0,t.jsx)("div",{"aria-hidden":"true",className:"font-heading text-[48px] font-bold leading-[1.1] text-white lg:text-[70px]",children:e.title}),e.body&&(0,t.jsx)("p",{className:"mt-5 font-body text-[14px] leading-[1.5] text-white lg:mt-6 lg:text-[18px]",children:e.body}),(0,t.jsx)(n.ArrowActionIcon,{size:void 0,className:"mt-5 text-[20px] text-white lg:mt-6 lg:text-[29px]"})]});return(0,t.jsx)("div",{role:"group","aria-roledescription":"slide","aria-label":h?`Slide ${a+1} din ${b}`:`Slide ${a+1} of ${b}`,"aria-hidden":!i,className:(0,r.cn)("absolute inset-0 flex flex-col justify-end ease-in-out",N?"transition-none":"transition-opacity",i?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${Z}ms`},children:e.ctaHref?(0,t.jsx)(l.Link,{href:e.ctaHref,tabIndex:i?0:-1,className:"group flex h-full flex-col justify-end transition-opacity hover:opacity-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-inset",children:s}):(0,t.jsx)("div",{className:"flex h-full flex-col justify-end",children:s})},f?.slides[a]?.id??a)})}),(0,t.jsxs)("div",{className:"mt-8 flex items-center gap-4 lg:mt-[34px]",children:[(0,t.jsx)("div",{className:"relative h-[3px] min-w-0 flex-1",children:(0,t.jsx)("div",{ref:R,role:"group","data-carousel-pagination-rail":!0,"aria-label":h?"Alege slideul":"Choose a slide",className:"absolute inset-x-0 -top-[7px] flex h-11 touch-auto gap-[10px] overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden lg:gap-[34px]",children:g.map((e,a)=>(0,t.jsx)("button",{"data-carousel-index":a,type:"button","aria-current":a===H?"true":void 0,"aria-label":h?`Vezi slideul ${a+1}
1: ${e.title}`:`Show slide ${a+1}: ${e.title}`,onClick:()=>et(a),className:(0,r.cn)("group relative h-11 w-[60px] shrink-0 cursor-pointer rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white lg:w-[119px]"),children:(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("absolute inset-x-0 top-[7px] h-[3px] transition-colors duration-300",a===H?"bg-white":"bg-white/30 group-hover:bg-white/60")})},f?.slides[a]?.id??a))})}),(0,t.jsx)(x,{ro:h,paused:E,canStep:b>1,onPrev:ei,onNext:ea,onTogglePause:()=>L(e=>(e&&I(!1),!e)),showPause:Y})]})]})]}),v&&(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-[34px] z-20 mx-auto w-full max-w-[1440px] px-5 lg:bottom-20 lg:px-16",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{role:"group","aria-label":h?"Alege slideul":"Choose a slide",className:"flex h-[3px] min-w-0 flex-1 items-end gap-2 overflow-visible",children:g.map((e,a)=>(0,t.jsx)("button",{type:"button","aria-current":a===H?"true":void 0,"aria-label":h?`Vezi slideul ${a+1}: ${e.title}`:`Show slide ${a+1}: ${e.title}`,onClick:()=>et(a),className:(0,r.cn)("group relative h-11 min-w-0 flex-1 translate-y-[34px] cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:max-w-[119px]"),children:(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("absolute inset-x-0 top-[7px] h-[3px] transition-colors duration-300",a===H?"bg-white":"bg-white/30 group-hover:bg-white/60")})},f?.slides[a]?.id??a))}),(0,t.jsx)(x,{ro:h,paused:E,canStep:b>1,onPrev:ei,onNext:ea,onTogglePause:()=>L(e=>(e&&I(!1),!e)),showPause:Y})]})}),(0,t.jsx)("p",{className:"sr-only","aria-live":ee?"polite":"off","aria-atomic":"true",children:h?`Slide ${H+1} din ${b}: ${g[H]?.title??""}`:`Slide ${H+1} of ${b}: ${g[H]?.title??""}`}),(0,t.jsx)("style",{children:`
2        @keyframes aff-hero-x-enter-next {
3          from { opacity: 0; transform: translate3d(4%, 0, 0); }
4          to { opacity: 1; transform: translate3d(0, 0, 0); }
5        }
6        @keyframes aff-hero-x-exit-next {
7          from { opacity: 1; transform: translate3d(0, 0, 0); }
8          to { opacity: 0; transform: translate3d(-4%, 0, 0); }
9        }
10        @keyframes aff-hero-x-enter-previous {
11          from { opacity: 0; transform: translate3d(-4%, 0, 0); }
12          to { opacity: 1; transform: translate3d(0, 0, 0); }
13        }
14        @keyframes aff-hero-x-exit-previous {
15          from { opacity: 1; transform: translate3d(0, 0, 0); }
16          to { opacity: 0; transform: translate3d(4%, 0, 0); }
17        }
18        @keyframes aff-hero-y-enter-next {
19          from { opacity: 0; transform: translate3d(0, 4%, 0); }
20          to { opacity: 1; transform: translate3d(0, 0, 0); }
21        }
22        @keyframes aff-hero-y-exit-next {
23          from { opacity: 1; transform: translate3d(0, 0, 0); }
24          to { opacity: 0; transform: translate3d(0, -4%, 0); }
25        }
26        @keyframes aff-hero-y-enter-previous {
27          from { opacity: 0; transform: translate3d(0, -4%, 0); }
28          to { opacity: 1; transform: translate3d(0, 0, 0); }
29        }
30        @keyframes aff-hero-y-exit-previous {
31          from { opacity: 1; transform: translate3d(0, 0, 0); }
32          to { opacity: 0; transform: translate3d(0, 4%, 0); }
33        }
34      `})]})}],177282)},190635,e=>{"use strict";var t=e.i(843476),a=e.i(399563),i=e.i(657688),s=e.i(520133),l=e.i(825327),r=e.i(13421);e.s(["LiveDocTalksSection",0,function({title:e,subtitle:n,body:o,backgroundImageUrl:c,videoUrl:d,watchLabel:x,videoPlaceholderLabel:f,talks:p,allTalksHref:u,allTalksLabel:h,ticketLabel:m}){let g=(0,a.usePublicVisibility)("aff","docTalks");if(!g.visible||0===p.length)return null;let[b,...v]=o.filter(e=>e.trim().length>0),j=d?(0,r.youtubeThumbnail)(d):null;return(0,t.jsxs)("section",{className:"relative overflow-hidden bg-af-dark",children:[(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(i.default,{src:c,alt:"",fill:!0,sizes:"100vw",className:"object-cover opacity-50","aria-hidden":"true"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-af-dark/60"})]}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-[1440px] px-5 py-[32px] lg:px-16 lg:py-[56px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[28px] lg:flex-row lg:items-start lg:gap-[48px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[16px] lg:flex-1",children:[(0,t.jsx)("h2",{className:"font-heading text-[40px] font-bold leading-[1.1] text-white lg:text-[64px]",children:e}),n.trim()&&(0,t.jsx)("p",{className:"max-w-[36ch] font-heading text-[22px] font-bold leading-[1.3] text-white lg:text-[30px]",children:n}),b&&(0,t.jsx)("p",{className:"max-w-[54ch] font-body text-[17px] leading-[1.55] text-white lg:text-[19px]",children:b}),v.map((e,a)=>(0,t.jsx)("p",{className:"max-w-[58ch] font-body text-[15px] leading-[1.6] text-white/75 lg:text-[16
34px]",children:e},a))]}),d?(0,t.jsxs)("a",{href:d,target:"_blank",rel:"noopener noreferrer","aria-label":`${x}: ${e}`,className:"group relative block aspect-video w-full shrink-0 overflow-hidden bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-af-dark lg:w-[560px]",children:[j&&(0,t.jsx)(i.default,{src:j,alt:"",fill:!0,sizes:"(max-width: 1024px) 100vw, 560px",className:"object-cover transition-transform duration-300 group-hover:scale-[1.03] motion-reduce:transition-none","aria-hidden":"true"}),(0,t.jsx)("span",{className:"absolute inset-0 bg-af-dark/30 transition-colors group-hover:bg-af-dark/15"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex size-[64px] items-center justify-center rounded-full bg-aff-red text-white transition-transform duration-300 group-hover:scale-110 motion-reduce:transition-none lg:size-[72px]",children:(0,t.jsx)(l.PlayIcon,{})})}),(0,t.jsx)("span",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-af-dark/85 to-transparent px-4 pb-3 pt-8",children:(0,t.jsx)("span",{className:"font-body text-[15px] font-semibold text-white",children:x})})]}):(0,t.jsx)("div",{className:"relative flex aspect-video w-full shrink-0 items-center justify-center border-[1.5px] border-dashed border-white/30 bg-white/5 lg:w-[560px]","aria-hidden":"true",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-[10px] px-6 text-center",children:[(0,t.jsx)("span",{className:"flex size-[64px] items-center justify-center rounded-full bg-white/15 text-white/70 lg:size-[72px]",children:(0,t.jsx)(l.PlayIcon,{})}),(0,t.jsx)("span",{className:"font-body text-[14px] leading-[1.5] text-white/55",children:f})]})})]}),p.length>0&&(0,t.jsx)("ul",{className:"mt-[32px] grid grid-cols-1 gap-x-[24px] border-t border-white/25 lg:mt-[44px] lg:grid-cols-2 lg:gap-x-[32px]",children:p.map(e=>(0,t.jsx)("li",{className:"border-b border-white/25",children:(0,t.jsxs)("div",{className:"group relative flex items-center gap-[16px] py-[20px] lg:gap-[24px] lg:py-[24px]",children:[(0,t.jsx)(s.Link,{href:e.href,className:"absolute inset-0 z-[1] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white","aria-label":e.title}),(0,t.jsxs)("div",{className:"w-[72px] shrink-0 lg:w-[86px]",children:[(0,t.jsx)("p",{className:"font-heading text-[22px] font-bold uppercase leading-[1.1] text-white lg:text-[26px]",children:e.date}),(0,t.jsx)("p",{className:"font-heading text-[20px] font-bold leading-[1.2] tabular-nums text-white/70 lg:text-[24px]",children:e.time})]}),(0,t.jsx)("div",{className:"relative h-[96px] w-[72px] shrink-0 overflow-hidden bg-white/10 lg:h-[112px] lg:w-[84px]",children:(0,t.jsx)(i.default,{src:e.posterUrl,alt:"",fill:!0,sizes:"84px",className:"object-cover transition-transform duration-300 group-hover:scale-[1.03] motion-reduce:transition-none","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[6px]",children:[(0,t.jsx)("span",{className:"truncate font-body text-[14px] leading-[1.4] text-white/65",children:e.venue}),(0,t.jsx)("h3",{className:"line-clamp-3 font-heading text-[20px] font-bold leading-[1.2] text-white lg:text-[24px]",children:e.title})]}),g.screeningTickets&&e.ticketsUrl&&(0,t.jsx)("a",{href:e.ticketsUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`${m}: ${e.title}`,className:"relative z-[2] flex shrink-0 items-center justify-center bg-aff-red p-[8px] text-white transition-colors hover:bg-white hover:text-aff-red focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-af-dark",children:(0,t.jsx)(l.TicketIcon,{})})]})},e.id))}),(0,t.jsxs)(s.Link,{href:u,className:"mt-[28px] inline-flex w-fit items-baseline gap-[10px] border-[1.5px] border-white px-[24px] py-[14px] font-body text-[15px] font-semibold leading-[1.5] text-white transition-colors hover:bg-white hover:text-af-dark focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-af-dark lg:mt-[36px] lg:text-[16
34px]",children:[h,(0,t.jsx)(l.ArrowRightIcon,{className:"shrink-0 translate-y-[0.2em]",size:18})]})]})]})}])},510395,e=>{"use strict";var t=e.i(843476),a=e.i(399563),i=e.i(657688),s=e.i(520133),l=e.i(975157),r=e.i(825327);e.s(["LiveTodaySection",0,function({title:e,entries:n,limit:o,programmeHref:c,programmeLabel:d,ticketLabel:x,kindLabels:f,brand:p="aff"}){let u=(0,a.usePublicVisibility)(p,"home");if(!u.today)return null;let h="afj"===p?"focus-visible:ring-afj-orange":"focus-visible:ring-aff-red",m="afj"===p?"bg-afj-orange text-af-dark hover:text-white":"bg-aff-red text-white",g=[...n].sort((e,t)=>e.time.localeCompare(t.time)).slice(0,o??n.length);return 0===g.length?null:(0,t.jsx)("section",{className:"bg-white",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1440px] px-5 py-[30px] lg:px-16 lg:py-[56px]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4 pb-[20px] lg:pb-[28px]",children:[(0,t.jsx)("h2",{className:"font-heading text-[32px] font-bold leading-[1.15] text-af-dark lg:text-[44px]",children:e}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-x-[24px] gap-y-[8px]",children:(0,t.jsxs)(s.Link,{href:c,className:(0,l.cn)("inline-flex items-baseline gap-[8px] font-body text-[15px] font-semibold leading-[1.5] text-af-dark transition-opacity hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 lg:text-[16px]",h),children:[d,(0,t.jsx)(r.ArrowRightIcon,{className:"shrink-0 translate-y-[0.2em] text-af-dark",size:18})]})})]}),(0,t.jsx)("ul",{className:"grid grid-cols-1 gap-x-[24px] lg:grid-cols-2 lg:gap-x-[32px]",children:g.map(e=>(0,t.jsx)("li",{className:"border-t-[1.5px] border-af-dark first:border-t-0 lg:[&:nth-child(2)]:border-t-0",children:(0,t.jsxs)("div",{className:"group relative flex items-center gap-[16px] py-[16px] lg:gap-[20px] lg:py-[20px]",children:[(0,t.jsx)(s.Link,{href:e.href,className:(0,l.cn)("absolute inset-0 z-[1] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset",h),"aria-label":e.title}),(0,t.jsx)("div",{className:"w-[58px] shrink-0 lg:w-[64px]",children:(0,t.jsx)("p",{className:"font-heading text-[22px] font-bold leading-[1.1] tabular-nums text-af-dark lg:text-[26px]",children:e.time})}),(0,t.jsx)("div",{className:"relative h-[72px] w-[54px] shrink-0 overflow-hidden bg-af-light-gray lg:h-[84px] lg:w-[63px]",children:(0,t.jsx)(i.default,{src:e.posterUrl,alt:"",fill:!0,sizes:"63px",className:"object-cover transition-transform duration-300 group-hover:scale-[1.03] motion-reduce:transition-none","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[4px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,t.jsx)("span",{className:(0,l.cn)("inline-flex shrink-0 items-center px-[6px] py-[2px] font-body text-[10px] font-semibold uppercase tracking-[0.08em]","doctalk"===e.kind?"bg-af-dark text-white":"bg-af-light-gray text-af-dark"),children:f[e.kind]}),(0,t.jsx)("span",{className:"truncate font-body text-[13px] leading-[1.4] text-af-dark/60",children:e.venue})]}),(0,t.jsx)("h3",{className:"line-clamp-2 font-heading text-[17px] font-bold leading-[1.2] text-af-dark lg:text-[19px]",children:e.title})]}),u.screeningTickets&&e.ticketsUrl&&(0,t.jsx)("a",{href:e.ticketsUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`${x}: ${e.title}`,className:(0,l.cn)("relative z-[2] flex shrink-0 items-center justify-center p-[8px] transition-colors hover:bg-af-dark focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",m,h),children:(0,t.jsx)(r.TicketIcon,{})})]})},e.id))})]})})}])},82957,e=>{"use strict";var t=e.i(843476),a=e.i(520133),i=e.i(948148),s=e.i(975157),l=e.i(825327),r=e.i(685149),n=e.i(399563);e.s(["ProgramCalendarBar",0,function({href:e,label:o,className:c}){let d=(0,i.useTranslations)("common");if(!(0,n.useRouteVisibility)("calendar").visible)return null;let x=o??d("viewAllProgram");return(0,t.jsxs)(a.Link,{href:e??r.ROUTES.festival.calendar,className:(0,s.cn)("flex items-center bg-af-light-gray","h-[82px] lg:h-[100px]","px-6 lg:px-12 gap-4 lg:gap-6","w-full hover:bg-[#eae8e8] transition-colors",c),children:[(0,t.jsx)(l.CalendarIcon,{size:24,className:"shrink-0 text-af-dark lg:text-[40px]!"}),(0,t.jsx)("span",{className:"flex-1 font-heading font-bold text-[24px] lg:text-[40px] leading-[1.2] text-af-dark",children:x}),(0,t.jsx)(l.ArrowRightIcon,{size:22,className:"shrink-0 text-af-dark lg:text-[32px]!"})]})}])},158232,e=>{"use strict";var t=e.i(843476),a=e.i(975157),i=e.i(993054),s=e.i(825327);function l({item:e,active:r,onToggle:n}){return(0,t.jsxs)("button",{onClick:()=>{n(e.id),(0,i.trackEvent)("filter_program",{filter_name:e.id,filter_value:r?"off":"on"})},"aria-pressed":r,className:(0,a.cn)("h-[28px] inline-flex items-center gap-[4px] overflow-hidden shrink-0","font-heading font-semibold text-[12px] leading-[1.5] whitespace-nowrap","transition-opacity hover:opacity-80",r?"pl-[12px] pr-[6px] text-white":"pl-[12px] pr-[12px] border-[1.5px] text-af-dark"),style:r?{backgroundColor:e.color}:{borderColor:e.color},children:[e.label,r&&(0,t.jsx)("span",{className:"shrink-0 size-[24px] flex items-center justify-center",children:(0,t.jsx)(s.Icon,{name:"close",size:20})})]})}function r({items:e,activeFilters:a,onToggle:i}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-[14px] items-center",children:e.map(e=>(0,t.jsx)(l,{item:e,active:a.includes(e.id),onToggle:i},e.id))})}e.s(["ProgramFilterPanel",0,function({groups:e,activeFilters:a,onFilterItemToggle:i,onClearAll:s,singleRow:n=!1,onClearAllLabel:o="Reset filters"}){let c=a.length>0,[d,x,f]=e,p=d?.items.slice(0,2)??[],u=d?.items.slice(2)??[],h=x?.items.slice(0,2)??[],m=x?.items.slice(2)??[],g=f?.items.slice(0,4)??[],b=f?.items.slice(4)??[];return n?(0,t.jsxs)("div",{className:"pb-[20px]",children:[(0,t.jsx)("div",{className:"hidden lg:flex gap-[24px] items-start w-full",children:e.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[14px] items-start justify-center shrink-0",children:[(0,t.jsx)("div",{className:"h-[28px] flex items-center",children:(0,t.jsx)("p",{className:"font-heading font-semibold text-[14px] leading-[1.5] text-af-dark whitespace-nowrap",children:e.label})}),(0,t.jsx)("div",{className:"flex gap-[14px] items-center flex-nowrap",children:e.items.map(e=>(0,t.jsx)(l,{item:e,active:a.includes(e.id),onToggle:i},e.id))})]},e.id))}),(0,t.jsx)("div",{className:"lg:hidden flex flex-col gap-5",children:e.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,t.jsx)("p",{className:"font-heading font-semibold text-[12px] leading-none text-af-dark/60 uppercase tracking-wide",children:e.label}),(0,t.jsx)("div",{className:"flex flex-wrap gap-[10px]",children:e.items.map(e=>(0,t.jsx)(l,{item:e,active:a.includes(e.id),onToggle:i},e.id))})]},e.id))})]}):(0,t.jsxs)("div",{className:"pb-[20px]",children:[(0,t.jsxs)("div",{className:"hidden lg:flex gap-[24px] items-center w-full",children:[d&&(0,t.jsxs)("div",{className:"flex flex-col gap-[14px] items-start justify-center shrink-0",children:[(0,t.jsx)("div",{className:"h-[28px] flex items-center",children:(0,t.jsx)("p",{className:"font-heading font-semibold text-[14px] leading-[1.5] text-af-dark whitespace-nowrap",children:d.label})}),(0,t.jsx)(r,{items:p,activeFilters:a,onToggle:i}),(0,t.jsx)(r,{items:u,activeFilters:a,onToggle:i})]}),x&&(0,t.jsxs)("div",{className:"flex flex-col gap-[14px] items-start justify-center shrink-0",children:[(0,t.jsx)("div",{className:"h-[28px] flex items-center",children:(0,t.jsx)("p",{className:"font-heading font-semibold text-[14px] leading-[1.5] text-af-dark whitespace-nowrap",children:x.label})}),(0,t.jsx)(r,{items:h,activeFilters:a,onToggle:i}),(0,t.jsx)(r,{items:m,activeFilters:a,onToggle:i})]}),f&&(0,t.jsxs)("div",{className:"flex flex-col gap-[14px] items-start justify-center flex-[1_0_0] min-w-0",children:[(0,t.jsx)("div",{className:"h-[28px] flex items-center",children:(0,t.jsx)("p",{className:"font-heading font-semibold text-[14px] leading-[1.5] text-af-dark whitespace-nowrap",children:f.label})}),(0,t.jsx)(r,{items:g,activeFilters:a,onToggle:i}),(0,t.jsx)(r,{items:b,activeFilters:a,onToggle:i})]})]}),(0,t.jsxs)("div",{className:"lg:hidden flex flex-col gap-5",children:[e.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,t.jsx)("p",{className:"font-heading font-semibold text-[12px] leading-none text-af-dark/60 uppercase tracking-wide",children:e.label}),(0,t.jsx)("div",{className:"flex flex-wrap gap-[10px]",children:e.items.map(e=>(0,t.jsx)(l,{item:e,active:a.includes(e.id),onToggle:i},e.id))})]},e.id)),c&&(0,t.jsx)("button",{onClick:s,className:"self-start font-heading font-semibold text-[13px] leading-none text-af-dark/50 hover:text-aff-red transition-colors",children:o})]})]})}])},930475,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(975157),s=e.i(825327),l=e.i(158232),r=e.i(288111);e.s(["ProgramHeader",0,function({view:e,onViewChange:n,days:o,activeDay:c,onDayChange:d,filterGroups:x,activeFilters:f,onFilterItemToggle:p,onClearFilters:u,onFilterPanelToggle:h,filterOpen:m}){let g=(0,a.useTranslations)("program"),b=f.length;return(0,t.jsx)("div",{className:"bg-white sticky top-[64px] lg:top-[82px] z-30 border-b-[1.5px] border-af-dark",children:(0,t.jsxs)("div",{className:"max-w-[1440px] mx-auto px-5 lg:px-16",children:[(0,t.jsxs)("div",{className:"flex items-center pt-6 lg:pt-[20px] pb-4 lg:pb-0",children:[(0,t.jsx)("h1",{className:"font-heading font-bold text-[40px] lg:text-[70px] leading-[1.2] text-af-dark shrink-0",children:g("programTitle")}),(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-[24px] pl-[20px] pt-[20px]",children:[(0,t.jsx)("button",{onClick:()=>n("list"),"aria-label":g("listView"),"aria-pressed":"list"===e,className:(0,i.cn)("flex items-center justify-center size-[38px] transition-colors text-af-dark","list"===e?"bg-aff-red text-white":"hover:bg-af-light-gray"),children:(0,t.jsx)(s.Icon,{name:"view_list",size:20,className:"list"===e?"opacity-100":"opacity-40"})}),(0,t.jsx)("button",{onClick:()=>n("calendar"),"aria-label":g("calendarView"),"aria-pressed":"calendar"===e,className:(0,i.cn)("flex items-center justify-center size-[38px] transition-colors text-af-dark","calendar"===e?"bg-aff-red text-white":"hover:bg-af-light-gray"),children:(0,t.jsx)(s.Icon,{name:"grid_view",size:20,className:"calendar"===e?"opacity-100":"opacity-40"})}),(0,t.jsx)(r.ProgramSearch,{}),b>0&&(0,t.jsx)("button",{onClick:u,className:"shrink-0 h-[38px] flex items-center font-heading font-semibold text-[13px] leading-none text-af-dark/50 hover:text-aff-red transition-colors whitespace-nowrap",children:g("resetFilters")})]}),(0,t.jsxs)("div",{className:"lg:hidden flex items-center gap-1 ml-auto",children:[(0,t.jsxs)("button",{onClick:h,"aria-expanded":m,"aria-label":g("filterProgram"),className:(0,i.cn)("flex items-center justify-center size-8 transition-colors relative",m?"text-af-dark bg-af-light-gray":"text-af-dark/40 hover:bg-af-light-gray hover:text-af-dark"),children:[(0,t.jsx)(s.Icon,{name:"filter_list",size:20}),b>0&&(0,t.jsx)("span",{className:"absolute top-[4px] right-[4px] w-[8px] h-[8px] rounded-full bg-aff-red"})]}),(0,t.jsx)("button",{onClick:()=>n("list"),"aria-label":g("listView"),"aria-pressed":"list"===e,className:(0,i.cn)("flex items-center justify-center size-8 transition-colors","list"===e?"bg-aff-red text-white":"text-af-dark hover:bg-af-light-gray"),children:(0,t.jsx)(s.Icon,{name:"view_list",size:20,className:"list"===e?"opacity-100":"opacity-40"})}),(0,t.jsx)("button",{onClick:()=>n("calendar"),"aria-label":g("calendarView"),"aria-pressed":"calendar"===e,className:(0,i.cn)("flex items-center justify-center size-8 transition-colors","calendar"===e?"bg-aff-red text-white":"text-af-dark hover:bg-af-light-gray"),children:(0,t.jsx)(s.Icon,{name:"grid_view",size:20,className:"calendar"===e?"opacity-100":"opacity-40"})}),(0,t.jsx)(r.ProgramSearch,{compact:!0})]})]}),(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsx)(l.ProgramFilterPanel,{groups:x,activeFilters:f,onFilterItemToggle:p,onClearAll:u,onClearAllLabel:g("resetFilters")})}),m&&(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(l.ProgramFilterPanel,{groups:x,activeFilters:f,onFilterItemToggle:p,onClearAll:u})}),(0,t.jsxs)("div",{className:"flex overflow-x-auto lg:gap-[32px]",style:{scrollbarWidth:"none"},children:[o[0]&&(0,t.jsx)("div",{className:"lg:hidden flex items-center justify-center px-3 py-2 shrink-0",children:(0,t.jsx)("span",{className:"font-heading font-bold text-[16px] leading-[1.5] text-af-dark",children:o[0].monthLabel})}),o.map(({day:e,label:a})=>{let s=e===c;return(0,t.jsx)("button",{onClick:()=>d(e),className:(0,i.cn)("flex-none flex items-center justify-center cursor-pointer transition-colors shrink-0 whitespace-nowrap",s?"bg-aff-red text-white px-[10px] py-[8px] lg:px-[36px] lg:py-[8px] lg:h-[75px]":"text-af-dark hover:bg-af-light-gray px-[10px] py-[8px] lg:px-[16px] lg:py-[8px]"),children:(0,t.jsxs)("span",{className:"font-heading font-bold leading-[1.5] text-[16px] lg:text-[36px]",children:[(0,t.jsx)("span",{className:"lg:hidden",children:e}),(0,t.jsx)("span",{className:"hidden lg:inline",children:a})]})},e)})]})]})})}])},503240,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(975157),s=e.i(825327),l=e.i(866088);e.s(["ALL_DAYS_VALUE",0,"all","ProgramHeaderV2",0,function({view:e,onViewChange:r,days:n,activeDay:o,onDayChange:c,allDaysCount:d,filterGroups:x,activeFilters:f,onFilterItemToggle:p,onClearFilters:u,searchQuery:h,onSearchQueryChange:m,onFilterPanelToggle:g,filterOpen:b}){let v=(0,a.useTranslations)("program"),j=f.length;return(0,t.jsx)("div",{className:"bg-white sticky top-[64px] lg:top-[82px] z-30 border-b-[1.5px] border-af-dark",children:(0,t.jsxs)("div",{className:"max-w-[1440px] mx-auto px-5 lg:px-16",children:[(0,t.jsxs)("div",{className:"flex items-center pt-6 lg:pt-[20px] pb-4 lg:pb-0",children:[(0,t.jsx)("h1",{className:"font-heading font-bold text-[40px] lg:text-[70px] leading-[1.2] text-af-dark shrink-0",children:v("programTitle")}),(0,t.jsxs)("div",{className:"flex items-center gap-3 lg:gap-[24px] pl-[20px] pt-[20px] ml-auto lg:ml-0",children:[(0,t.jsxs)("button",{onClick:g,"aria-expanded":b,"aria-label":v("filterProgram"),className:(0,i.cn)("lg:hidden flex items-center justify-center size-8 transition-colors relative",b?"text-af-dark bg-af-light-gray":"text-af-dark/40 hover:bg-af-light-gray hover:text-af-dark"),children:[(0,t.jsx)(s.Icon,{name:"filter_list",size:20}),j>0&&(0,t.jsx)("span",{className:"absolute top-[4px] right-[4px] w-[8px] h-[8px] rounded-full bg-aff-red"})]}),(0,t.jsx)("button",{onClick:()=>r("list"),"aria-label":v("listView"),"aria-pressed":"list"===e,className:(0,i.cn)("flex items-center justify-center size-8 lg:size-[38px] transition-colors text-af-dark","list"===e?"bg-aff-red text-white":"hover:bg-af-light-gray"),children:(0,t.jsx)(s.Icon,{name:"view_list",size:20,className:"list"===e?"opacity-100":"opacity-40"})}),(0,t.jsx)("button",{onClick:()=>r("calendar"),"aria-label":v("calendarView"),"aria-pressed":"calendar"===e,disabled:"all"===o,className:(0,i.cn)("flex items-center justify-center size-8 lg:size-[38px] transition-colors text-af-dark","calendar"===e?"bg-aff-red text-white":"hover:bg-af-light-gray","all"===o&&"opacity-30 curs
34or-not-allowed hover:bg-transparent"),children:(0,t.jsx)(s.Icon,{name:"grid_view",size:20,className:"calendar"===e?"opacity-100":"opacity-40"})})]})]}),(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsx)(l.ProgramFilterBarV2,{groups:x,activeFilters:f,onFilterItemToggle:p,onClearAll:u,resetLabel:v("resetFilters"),searchQuery:h,onSearchQueryChange:m,searchPlaceholder:v("searchPlaceholder"),clearSearchLabel:v("clearSearch")})}),b&&(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(l.ProgramFilterBarV2,{groups:x,activeFilters:f,onFilterItemToggle:p,onClearAll:u,resetLabel:v("resetFilters"),searchQuery:h,onSearchQueryChange:m,searchPlaceholder:v("searchPlaceholder"),clearSearchLabel:v("clearSearch")})}),(0,t.jsxs)("div",{className:"flex overflow-x-auto lg:gap-2",style:{scrollbarWidth:"none"},children:[(0,t.jsx)("button",{onClick:()=>c("all"),className:(0,i.cn)("flex-none lg:flex-1 flex items-center justify-center cursor-pointer transition-colors shrink-0 whitespace-nowrap px-4 py-3 lg:py-4","all"===o?"bg-aff-red text-white":"text-af-dark hover:bg-af-light-gray"),children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-heading font-bold leading-[1.3] text-[19px] lg:text-[26px]",children:v("allDays")}),void 0!==d&&(0,t.jsx)("span",{className:(0,i.cn)("inline-flex h-[20px] min-w-[26px] items-center justify-center rounded-[3px] px-[6px]","font-body text-[11px] font-semibold leading-none tabular-nums","all"===o?"bg-white/25 text-white":"bg-af-dark/10 text-af-dark"),children:d})]})}),n.map(({day:e,label:a})=>{let s=e===o;return(0,t.jsx)("button",{onClick:()=>c(e),className:(0,i.cn)("flex-none lg:flex-1 flex items-center justify-center cursor-pointer transition-colors shrink-0 whitespace-nowrap px-4 py-3 lg:py-4",s?"bg-aff-red text-white":"text-af-dark hover:bg-af-light-gray"),children:(0,t.jsx)("span",{className:"font-heading font-bold leading-[1.3] text-[19px] lg:text-[26px]",children:a})},e)})]})]})})}])},288111,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(861745),s=e.i(948148),l=e.i(520133),r=e.i(657688),n=e.i(825327),o=e.i(975157),c=e.i(993054);let d={keys:[{name:"title",weight:2},{name:"titleEn",weight:1.5},{name:"director",weight:1},{name:"sections",weight:1.5},{name:"venues",weight:1},{name:"country",weight:.5}],threshold:.35,includeScore:!0,minMatchCharLength:2};e.s(["ProgramSearch",0,function({apiUrl:x="/api/search/films",compact:f=!1}){let p=(0,s.useTranslations)("program"),u=(0,i.useLocale)(),[h,m]=(0,a.useState)(!1),[g,b]=(0,a.useState)(""),[v,j]=(0,a.useState)([]),[y,k]=(0,a.useState)([]),[N,w]=(0,a.useState)(!1),[T,C]=(0,a.useState)(!1),z=(0,a.useRef)(null),S=(0,a.useRef)(null),$=(0,a.useRef)(null),P=(0,a.useCallback)(async()=>{if(!z.current){w(!0),C(!1);try{let[t,{default:a}]=await Promise.all([fetch("/api/search/films"===x?`${x}?lang=${"en"===u?"en":"ro"}`:x),e.A(821867)]);if(!t.ok)throw Error("Programme search request failed");let i=await t.json();if(!Array.isArray(i))throw Error("Programme search response is invalid");j(i),z.current=new a(i,d)}catch{j([]),C(!0)}finally{w(!1)}}},[x,u]),I=(0,a.useCallback)(()=>{m(!0),P(),setTimeout(()=>S.current?.focus(),50)},[P]),E=(0,a.useCallback)(()=>{m(!1),b(""),k([])},[]);return(0,a.useEffect)(()=>{if(!h)return;let e=e=>{"Escape"===e.key&&E()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[h,E]),(0,a.useEffect)(()=>{if(!h)return;let e=e=>{$.current&&!$.current.contains(e.target)&&E()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h,E]),(0,a.useEffect)(()=>{z.current&&g.trim()?k(z.current.search(g,{limit:8}).map(e=>e.item)):k([])},[g,v]),(0,a.useEffect)(()=>{if(!h||N||T||g.trim().length<2)return;let e=setTimeout(()=>(0,c.trackEvent)("search",{search_term:g,results_count:y.length,placement:"program_search"}),700);return()=>clearTimeout(e)},[h,N,T,g,y.length]),(0,t.jsxs)("div",{className:"relative",ref:$,children:[(0,t.jsx)("button",{onClick:h?E:I,"aria-label":p("searchFilmLabel"),"aria-expanded":h,className:(0,o.cn)("flex items-center justify-center transition-colors",f?"size-8":"size-[38px]",h?"bg-af-dark text-white":"text-af-dark/40 hover:bg-af-light-gray hover:text-af-dark"),children:(0,t.jsx)(n.Icon,{name:h?"close"
34:"search",size:20})}),h&&(0,t.jsxs)("div",{className:"absolute right-0 top-[calc(100%+8px)] w-[min(480px,90vw)] bg-white border border-af-dark/10 shadow-lg z-50",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-af-dark/10",children:[(0,t.jsx)(n.Icon,{name:"search",size:18,className:"text-af-dark/40 shrink-0"}),(0,t.jsx)("input",{ref:S,type:"search",value:g,onChange:e=>b(e.target.value),placeholder:p("searchPlaceholder"),className:"flex-1 font-body text-[15px] text-af-dark placeholder:text-af-dark/40 !outline-none bg-transparent"}),g&&(0,t.jsx)("button",{onClick:()=>b(""),"aria-label":p("clearSearch"),className:"text-af-dark/40 hover:text-af-dark transition-colors shrink-0",children:(0,t.jsx)(n.Icon,{name:"close",size:16})})]}),N&&(0,t.jsx)("div",{className:"px-4 py-6 text-center font-body text-[14px] text-af-dark/50",children:p("searchLoading")}),!N&&T&&(0,t.jsx)("div",{role:"alert",className:"px-4 py-6 text-center font-body text-[14px] text-aff-red",children:p("searchError")}),!N&&!T&&!g&&v.length>0&&(0,t.jsx)("div",{className:"px-4 py-4 font-body text-[13px] text-af-dark/50",children:p("searchAvailable",{count:v.length})}),!N&&!T&&!g&&0===v.length&&(0,t.jsx)("div",{className:"px-4 py-6 text-center font-body text-[14px] text-af-dark/50",children:p("searchEmpty")}),!N&&!T&&g.trim()&&0===y.length&&(0,t.jsx)("div",{className:"px-4 py-6 text-center font-body text-[14px] text-af-dark/50",children:p("searchNoResults",{query:g})}),y.length>0&&(0,t.jsx)("ul",{children:y.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(l.Link,{href:e.href??`/festival/film/${e.slug}`,onClick:E,className:"flex items-center gap-3 px-4 py-3 hover:bg-af-light-gray transition-colors group",children:[(0,t.jsx)("div",{className:"relative w-[36px] h-[48px] shrink-0 bg-af-light-gray overflow-hidden",children:e.posterUrl?(0,t.jsx)(r.default,{src:e.posterUrl,alt:e.title,fill:!0,className:"object-cover",sizes:"36px",unoptimized:!0}):(0,t.jsx)("div",{className:"absolute inset-0 bg-af-dark/10"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-heading font-bold text-[14px] leading-[1.3] text-af-dark group-hover:text-aff-red transition-colors line-clamp-1",children:e.title}),(0,t.jsx)("p",{className:"font-body text-[12px] leading-[1.4] text-af-dark/60 line-clamp-1 mt-0.5",children:[e.director,e.country,e.year].filter(
34Boolean).join(" · ")})]}),e.section&&(0,t.jsx)("span",{className:"shrink-0 font-body font-semibold text-[10px] leading-none px-2 py-1 text-white",style:{backgroundColor:e.sectionColor??"#231F20"},children:e.section.split(" ").slice(-1)[0]})]})},e.slug))})]})]})}])},534476,378854,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(520133),s=e.i(657688);function l({section:e,showcaseIndex:a=0,filmLabel:r,filmsLabel:n}){let o=e.showcase.length>0?e.showcase[a%e.showcase.length]:void 0;return(0,t.jsxs)(i.Link,{href:e.href,className:"group flex h-full w-full min-w-0 flex-col bg-af-light-gray transition-colors hover:bg-[#eae8e8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-offset-2",children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] w-full shrink-0 overflow-hidden bg-af-dark",children:[e.heroImage&&(0,t.jsx)(s.default,{src:e.heroImage,alt:"",fill:!0,sizes:"(max-width: 640px) 280px, (max-width: 1024px) 340px, 416px",className:"object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none","aria-hidden":"true"}),(0,t.jsx)("span",{className:"absolute inset-0 bg-gradient-to-t from-af-dark via-af-dark/45 to-af-dark/10"}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex flex-col items-start gap-[8px] p-[16px] lg:p-[20px]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-[8px]",children:[e.filmCount>0&&(0,t.jsxs)("span",{className:"inline-flex h-[20px] items-center rounded-[3px] bg-af-dark/80 px-[8px] font-body text-[11px] font-semibold leading-none text-white",children:[(0,t.jsx)("span",{className:"tabular-nums",children:e.filmCount})," ",1===e.filmCount?r:n]}),e.tagline&&(0,t.jsx)("span",{className:"font-heading text-[12px] font-semibold uppercase leading-none tracking-[0.05em] text-white/80",children:e.tagline})]}),(0,t.jsx)("h3",{className:"font-heading text-[22px] font-bold leading-[1.15] text-white lg:text-[26px]",children:e.name})]})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-[14px] p-[20px] lg:p-[24px]",children:[(0,t.jsx)("p",{className:"line-clamp-3 font-body text-[14px] leading-[1.6] text-af-dark/65 lg:text-[15px]",children:e.description}),o&&(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-[12px] border-t border-af-dark/10 pt-[14px]",children:[(0,t.jsx)("div",{className:"relative h-[76px] w-[57px] shrink-0 overflow-hidden bg-af-dark/10",children:(0,t.jsx)(s.default,{src:o.posterUrl,alt:"",fill:!0,sizes:"57px",className:"object-cover","aria-hidden":"true"},o.posterUrl)}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[3px]",children:[(0,t.jsx)("p",{className:"line-clamp-2 font-heading text-[15px] font-bold leading-[1.25] text-af-dark lg:text-[16px]",children:o.title}),o.director&&(0,t.jsx)("p",{className:"truncate font-body text-[12px] leading-[1.4] text-af-dark/60 lg:text-[13px]",children:o.director}),(0,t.jsx)("p",{className:"truncate font-meta text-[11px] leading-[1.4] text-af-dark/45 lg:text-[12px]",children:[o.country,o.year,o.duration?`${o.duration} min`:""].filter(Boolean).join(" · ")})]})]})]})]})}e.s(["ThematicSectionCard",0,l],378854);var r=e.i(825327),n=e.i(399563);e.s(["ThematicCarouselSection",0,function({title:e,intro:s,sections:o,allSectionsHref:c,allSectionsLabel:d,previousLabel:x,nextLabel:f,filmLabel:p,filmsLabel:u}){let h=(0,n.usePublicVisibility)("aff","thematicHome"),m=(0,a.useRef)(null),[g,b]=(0,a.useState)(0),[v,j]=(0,a.useState)(!0),[y,k]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=window.setInterval(()=>b(e=>e+1),5e3);return()=>window.clearInterval(e)},[]);let N=(0,a.useCallback)(()=>{let e=m.current;e&&(j(e.scrollLeft<=8),k(e.scrollLeft+e.clientWidth>=e.scrollWidth-8))},[]),w=(0,a.useCallback)(e=>{let t=m.current;if(!t)return;let a=t.querySelector("li"),i=a?a.getBoundingClientRect().width+24:.8*t.clientWidth;t.scrollBy({left:i*e,behavior:"smooth"})},[]);return h.visible&&0!==o.length?(0,t.jsx)("section",{className:"bg-white",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1440px] px-5 py-[30px] lg:px-16 lg:py-[56px]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4 pb-[20px] lg:pb-[28px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,t.jsx)("h2",{className:"font-heading text-[32px] font-bold leading-[1.15] text-af-dark lg:text-[44px]",children:e}),s?.trim()&&(0,t.jsx)("p",{className:"max-w-[58ch] font-body text-[15px] leading-[1.55] text-af-dark/70 lg:text-[17px]",children:s})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[12px]",children:[(0,t.jsxs)("div",{className:"hidden items-center gap-[8px] lg:flex","aria-hidden":"true",children:[(0,t.jsx)("button",{type:"button",onClick:()=>
34w(-1),disabled:v,title:x,tabIndex:-1,className:"flex size-[44px] items-center justify-center border-[1.5px] border-af-dark text-af-dark transition-colors hover:bg-af-dark hover:text-white disabled:cursor-default disabled:border-af-dark/20 disabled:text-af-dark/20 disabled:hover:bg-transparent",children:(0,t.jsx)(r.ArrowBackIcon,{})}),(0,t.jsx)("button",{type:"button",onClick:()=>w(1),disabled:y,title:f,tabIndex:-1,className:"flex size-[44px] items-center justify-center border-[1.5px] border-af-dark text-af-dark transition-colors hover:bg-af-dark hover:text-white disabled:cursor-default disabled:border-af-dark/20 disabled:text-af-dark/20 disabled:hover:bg-transparent",children:(0,t.jsx)(r.ArrowRightIcon,{})})]}),(0,t.jsxs)(i.Link,{href:c,"aria-label":`${d} — ${e}`,className:"inline-flex items-baseline gap-[8px] font-body text-[15px] font-semibold leading-[1.5] text-af-dark transition-opacity hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-offset-2 lg:text-[16px]",children:[d,(0,t.jsx)(r.ArrowRightIcon,{className:"shrink-0 translate-y-[0.2em] text-af-dark",size:18})]})]})]}),(0,t.jsx)("ul",{ref:m,onScroll:N,tabIndex:0,className:"-mx-5 flex snap-x snap-mandatory scroll-pl-5 gap-[24px] overflow-x-auto scroll-smooth px-5 pb-[8px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-aff-red focus-visible:ring-offset-2 lg:mx-0 lg:scroll-pl-0 lg:gap-[32px] lg:px-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:o.map(e=>(0,t.jsx)("li",{className:"w-[280px] shrink-0 snap-start sm:w-[340px] lg:w-[416px]",children:(0,t.jsx)(l,{section:e,showcaseIndex:g,filmLabel:p,filmsLabel:u})},e.id))})]})}):null}],534476)}]);

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.