1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7cd0dc3-822e-494e-b47b-b56b70cb7f06",e._sentryDebugIdIdentifier="sentry-dbid-a7cd0dc3-822e-494e-b47b-b56b70cb7f06")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{6431:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(80263),r=s(51596);let n={full:"max-w-full","2xl":"max-w-screen-2xl",xl:"max-w-screen-xl",lg:"max-w-screen-lg",sm:"max-w-screen-sm",md:"max-w-screen-md","3xl":"max-w-screen-3xl","4xl":"max-w-screen-4xl"},i={white:"bg-white",black:"bg-black","black-light":"bg-black-light",transparent:"bg-transparent",gray:"bg-gray-background",yellow:"bg-web-primary",vv3:"bg-vv3"},l=({sectionId:e,bgColor:t="transparent",className:s,widthType:l="full",disablePaddingX:o=!1,disablePaddingY:c=!1,webSectionPaddingX:d=!1,title:h,titleType:m="h2",titleArea:u,headerClassName:p,headerAlign:g="start",headerStartArea:x,headerEndArea:b,contentClassName:y,children:v,loading:f=!1})=>{let w=(0,r.cn)({"mx-auto h-auto w-full":!0,"okt-section-padding":!o&&!d,"okt-web-section-padding":d,"py-4 md:py-8":!c,[n[l]]:!0,[`${s}`]:!!s}),j=(0,r.cn)({[i[t]]:!0}),T=(0,r.cn)({"mx-auto flex flex-row items-center justify-between":!0,"mb-4 space-x-5 md:mb-8":!!v}),N=(0,r.cn)({"w-full":!0,[y||""]:!!y});return(0,a.jsx)("div",{className:j,"data-sentry-component":"OktSectionBase","data-sentry-source-file":"section-base.tsx",children:(0,a.jsx)("section",{id:e||void 0,className:`${w}`,children:(0,a.jsxs)("div",{className:"max-w-ultrawide mx-auto w-full",children:[h||u||x||b?(0,a.jsxs)("div",{className:`${T||""} ${p||""}`,children:[x,(0,a.jsxs)("div",{className:`flex w-full flex-row justify-${g}`,children:[(0,a.jsx)(m,{className:`mb-0 align-middle text-${g}`,children:f&&!h?(0,a.jsx)("div",{className:"h-7 w-36 animate-pulse rounded-lg bg-gray-50 sm:h-8 sm:w-44 md:h-9 md:w-64 lg:h-12 lg:w-96"}):h}),(0,a.jsx)("div",{children:u})]}),b]}):null,(0,a.jsx)("div",{className:N,children:v})]})})})}},13146:(e,t,s)=>{"use strict";s.d(t,{DY:()=>n,Fj:()=>i,Fz:()=>r,h6:()=>a});let a="x-captcha-token";class r extends Error{constructor(e){super(e.message),this.body=e,this.name="UserUploadError"}}class n extends Error{constructor(e,t,s){super(e),this.status=t,this.maxSizeBytes=s,this.name="UserUploadGcsPutError"}}class i extends Error{constructor(e,t,s){super(e),this.statusCode=t,this.body=s,this.name="UserUploadHttpError"}}},37004:(e,t,s)=>{"use strict";s.d(t,{S:()=>u});var a=s(48938),r=s(60336),n=s(13146),i=s(91799);let l=new Set(["cg-register","cg-register-de","anthem-new"]);function o(e){if((0,r.F0)(e)){let t=e.response?.data;if("object"==typeof t&&null!==t){if(t.reason)throw new n.Fz(t);throw new n.Fj("string"==typeof t.message?t.message:e.message,e.response?.status,t)}}throw e}function c(e,t){let s=t?.trim();s&&e.append("message",s)}async function d({repositoryId:e,captchaToken:t,file:s,data:a,message:r,options:l,onUploadProgress:h}){let m=new FormData;m.append("data",JSON.stringify(a)),c(m,r),m.append("file",s);try{let s=(await i.oktApiAxiosClient.post(`/user-upload/${e}`,m,{...l,headers:{"Content-Type":"multipart/form-data",[n.h6]:t},onUploadProgress:h?e=>{let t=e.total??0,s=e.loaded,a=t>0?Math.round(s/t*100):0;h({loaded:s,total:t,percent:a})}:void 0})).data;if("completed"!==s.phase)throw Error("Unexpected upload response for multipart-complete repository.");return s.result}catch(e){o(e)}}async function h({repositoryId:e,captchaToken:t,file:s,data:a,message:r,options:l,onUploadProgress:d}){let m,u=new FormData;u.append("data",JSON.stringify(a)),c(u,r),u.append("fileMeta",JSON.stringify({originalName:s.name,mimeType:s.type,size:s.size}));try{let s=await i.oktApiAxiosClient.post(`/user-upload/${e}`,u,{...l,headers:{"Content-Type":"multipart/form-data",[n.h6]:t}}),a=s.data;if(202!==s.status||"pending-upload"!==a.phase)throw new n.Fj("Unexpected upload start response.",s.status,a);m=a.pending}catch(e){o(e)}try{var p;await (p=m,new Promise((e,t)=>
1{let a=new XMLHttpRequest;a.upload.onprogress=e=>{if(!d||!e.lengthComputable)return;let t=e.total,s=e.loaded,a=t>0?Math.round(s/t*100):0;d({loaded:s,total:t,percent:a})},a.onload=()=>{var s,r;a.status>=200&&a.status<300?e():t(new n.DY((s=a.status,r=p,400===s?`Video exceeds maximum size (${Math.round(r.maxSizeBytes/1048576)} MB).`:403===s?"Upload link expired or invalid. Please try submitting the form again.":`Video upload failed (HTTP ${s}).`),a.status,p.maxSizeBytes))},a.onerror=()=>{t(new n.DY("Video upload failed. Check your connection and try again."))},a.onabort=()=>{t(new n.DY("Video upload was cancelled."))},a.open("PUT",p.uploadUrl),a.setRequestHeader("Content-Type",p.contentType),a.setRequestHeader("x-goog-content-length-range",p.contentLengthRange),a.send(s)}))}catch(e){if(e instanceof n.DY)throw e;throw new n.DY("Video upload failed. Check your connection and try again.")}try{return(await i.oktApiAxiosClient.post(`/user-upload/${e}/submission/${m.submissionId}/complete`,void 0,l)).data}catch(e){o(e)}}let m=async e=>l.has(e.repositoryId)?h(e):d(e),u=()=>(0,a.n)(e=>m(e))},42665:(e,t,s)=>{"use strict";s.d(t,{Q5:()=>c});var a=s(98580),r=s(94090),n=s(91799);let i=async(e,t)=>(await n.oktApiAxiosClient.get("/partners",{...t,params:e})).data,l=async(e,t)=>{if(e)return(await n.oktApiAxiosClient.get(`/partners/${e}`,t)).data},o=(0,a.DY)("partners",{detail:e=>({queryKey:[e??""],queryFn:({signal:t})=>l(e,{signal:t})}),list:e=>({queryKey:[e??{}],queryFn:({signal:t})=>i(e,{signal:t})})}),c=e=>(0,r.I)({...o.list(e)})},45620:(e,t,s)=>{"use strict";s.d(t,{A:()=>j,g:()=>w});var a=s(80263),r=s(73548),n=s.n(r),i=s(75963),l=s.n(i),o=s(93182),c=s(42665),d=s(61267),h=s(67057),m=s(17799),u=s(86978),p=s(53239),g=s(86916),x=s(69950),b=s(81926),y=s(6431);let v={1024:{slidesPerView:6,slidesPerGroup:6,allowTouchMove:!1},768:{slidesPerView:4,slidesPerGroup:4}},f={darkBlue:"bg-blue-vemola-langer-dark-footer",transparent:"bg-transparent"},w=({partnersData:e,bgColor:t="transparent",disableNavigation:s=!0,...r})=>{let i=(0,o.useRouter)(),c=(0,p.useRef)(null);return(0,a.jsx)("div",{className:`${f[t]}`,"data-sentry-component":"OktPartnersCarousel","data-sentry-source-file":"section-partners-carousel.tsx",children:(0,a.jsx)(y.A,{widthType:"xl",disablePaddingX:!0,disablePaddingY:!0,...r,"data-sentry-element":"OktSectionBase","data-sentry-source-file":"section-partners-carousel.tsx",children:(0,a.jsxs)("div",{className:"flex items-center",children:[s?null:(0,a.jsx)("div",{onClick:()=>c.current?.swiper.slidePrev(),className:"hidden hover:cursor-pointer lg:block",children:(0,a.jsx)(g.ed2,{size:30})}),(0,a.jsx)(b.RC,{modules:[x.Ij,x.Vx],ref:c,speed:700,slidesPerView:3,centeredSlides:!1,slidesPerGroup:3,breakpoints:v,loop:!0,autoplay:{delay:1e4,pauseOnMouseEnter:!0,disableOnInteraction:!0},className:"z-0 my-0 w-full py-10 md:py-20",wrapperClass:"flex items-center","data-sentry-element":"Swiper","data-sentry-source-file":"section-partners-carousel.tsx",children:e?.map((e,t)=>{let s=(0,m.kf)(u.Xn,u.tD,e.url,i.locale),r=(0,m.kf)(u.Xn,u.tD,e.logo?.url,i.locale),o=(0,m.kf)(u.Xn,u.tD,e.name,i.locale);return(0,a.jsx)(b.qr,{className:"my-1 flex h-full items-center justify-center px-10px md:px-4 lg:px-7",children:(0,a.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-center grayscale transition-all hover:scale-105 hover:grayscale-0",children:(0,a.jsx)(l(),{href:s||"#",target:"_blank",className:"w-full",children:(0,a.jsx)(n(),{src:r,alt:o,width:100,height:80,className:"size-auto max-h-20"})},e.id)},t)},`partners-carousel-${t}`)})}),s?null:(0,a.jsx)("div",{onClick:()=>c.current?.swiper.slideNext(),className:"hidden hover:cursor-pointer lg:block",children:(0,a.jsx)(g.FDZ,{size:30})})]})})})},j=e=>{let t=(0,o.useRouter)(),{data:s}=(0,c.Q5)({featured:!0,notTypes:["NONE"],onlyLanguage:t.locale,sort:[{key:d.M.PRIORITY,direction:h.U.DESC}]});return(0,a.jsx)(w,{partnersData:s||[],...e,"data-sentry-element":"OktPartnersCarousel","data-sentry-component":"OktPartnersCarouselWrapper","data-sentry-source-file":"section-partners-carousel.tsx"})}},49326:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>L,default:()=>E});var a=s(80263);s(4166),s(50283),s(7168);var r=s(93878),n=s(73548),i=s.n(n),l=s(75963),o=s.n(l),c=s(93182),d=s(3849),h=s(53239),m=s(56428),u=s(79343),p=s(21386);s(68342),s(69552);
1var g=s(72816),x=s(6431),b=s(50679),y=s(45620),v=s(33888),f=s(42396),w=s(46811);let j=({items:e,interval:t=5e3})=>{let[s,r]=(0,h.useState)(0),n=s>0?s-1:null,l=s<e.length-1?s+1:null,o=(0,w.Z)();return(0,a.jsxs)("div",{className:"w-full","data-sentry-component":"AnniversaryCarousel","data-sentry-source-file":"anniversary-carousel.tsx",children:[(0,a.jsxs)("div",{className:"hidden",children:[null!==n&&(0,a.jsx)(i(),{src:e[n].imageSrc,alt:e[n].title,width:768,height:600,priority:!0}),null!==l&&(0,a.jsx)(i(),{src:e[l].imageSrc,alt:e[l].title,width:768,height:600,priority:!0})]}),(0,a.jsxs)("div",{className:"relative h-[300px] w-full sm:h-[360px] md:h-[600px] xl:h-[700px] 2xl:h-[768px] 4xl:h-[800px]",children:[(0,a.jsx)(f.FN,{axis:"horizontal",autoPlay:!1,interval:t,infiniteLoop:o.all.xl,centerMode:o.all.xl,centerSlidePercentage:{xl:90,"2xl":80,"3xl":70,"4xl":60}[o.current]||100,renderArrowNext:t=>e.length>1&&null!==l?(0,a.jsx)("div",{className:"absolute bottom-5 right-4 z-30 cursor-pointer transition-opacity hover:opacity-80 md:bottom-10 md:left-1/2 md:right-auto md:ml-[calc(768px/2-1.5rem)]",onClick:t,children:(0,a.jsx)(m.E_E,{className:"rotate-180 text-white",size:32})}):null,renderArrowPrev:t=>e.length>1&&null!==n?(0,a.jsx)("div",{className:"absolute bottom-5 left-4 z-30 cursor-pointer transition-opacity hover:opacity-80 md:bottom-10 md:left-auto md:right-1/2 md:mr-[calc(768px/2-1.5rem)]",onClick:t,children:(0,a.jsx)(m.E_E,{className:"text-white",size:32})}):null,showArrows:!0,showIndicators:!1,showStatus:!1,showThumbs:!1,swipeScrollTolerance:20,preventMovementUntilSwipeScrollTolerance:!0,onChange:e=>{r(e)},className:"h-full w-full","data-sentry-element":"Carousel","data-sentry-source-file":"anniversary-carousel.tsx",children:e.map((e,t)=>(0,a.jsxs)("div",{className:"relative h-[300px] w-full sm:h-[360px] md:h-[600px] xl:h-[700px] 2xl:h-[768px] 4xl:h-[800px]",children:[(0,a.jsx)(i(),{src:e.imageSrc,alt:e.title,fill:!0,priority:0===t,sizes:"(max-width: 768px) 100vw, 768px",className:"object-cover object-[center_15%]"}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-[25%] bg-gradient-to-t from-[#191919] to-transparent md:h-[30%]"})]},t))}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-6 z-20 md:bottom-10",children:(0,a.jsx)("h2",{className:"mx-auto max-w-[65%] text-pretty text-center text-lg font-normal uppercase text-white drop-shadow-[0_2px_10px_rgba(0,0,0,0.8)] md:max-w-[700px] md:text-2xl",children:e[s].title})})]}),(0,a.jsx)("div",{className:"w-full bg-[#191919]",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-[768px] items-start px-5 md:px-6",children:[(0,a.jsx)("div",{className:"flex flex-1 items-start justify-start",children:null!==n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 12 12",className:"md:h-4 md:w-4",children:(0,a.jsx)("polygon",{points:"3.636,0.634 8.364,0.634 11.366,3.636 11.366,8.364 8.364,11.366 3.636,11.366 0.634,8.364 0.634,3.636",fill:"#555555"})}),(0,a.jsx)("span",{className:"mt-2 text-sm font-bold text-[#555555] md:text-base",children:e[n].year})]},`prev-${n}`),(0,a.jsx)("div",{className:"ml-3 mt-[6px] h-[1px] flex-1 bg-[#444444] md:mt-[8px]"})]})}),(0,a.jsxs)("div",{className:"flex flex-col items-center px-2",children:[(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",className:"md:h-5 md:w-5","data-sentry-element":"svg","data-sentry-source-file":"anniversary-carousel.tsx",children:(0,a.jsx)("polygon",{points:"4.686,0.686 11.314,0.686 15.314,4.686 15.314,11.314 11.314,15.314 4.686,15.314 0.686,11.314 0.686,4.686",fill:"white","data-sentry-element":"polygon","data-sentry-source-file":"anniversary-carousel.tsx"})}),(0,a.jsx)("span",{className:"mt-2 text-sm font-bold text-white md:text-base",children:e[s].year})]},`current-${s}`),(0,a.jsx)("div",{className:"flex flex-1 items-start justify-end",children:null!==l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mr-4 mt-[6px] h-[1px] flex-1 bg-[#444444] md:mt-[8px]"}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 12 12",className:"md:h-4 md:w-4",children:(0,a.jsx)("polygon",{points:"3.636,0.634 8.364,0.634 11.366,3.636 11.366,8.364 8.364,11.366 3.636,11.366 0.634,8.364 0.634,3.636",fill:"#555555"})}),(0,a.jsx)("span",{className:"mt-2 text-sm font-bold text-[#555555] md:text-base",children:e[l].year})]},`next-${l}`)]})})]})})]})};var T=s(11003),N=s(2101),k=s(60336),D=s(37004),S=s(13146),O=s(24913),C=s(1216),_=s(68069),A=s(39176),P=s(2121);let I=["tenth-anniversary"],$=P.Ik({consent:P.zM().oneOf([!0],"tenth-anniversary:photoUpload.errors.consentRequired").required(),message:P.Yj().max(5e3).optional()}).required(),F=e=>
1{switch(e.reason){case"invalid-file-format":return{key:"tenth-anniversary:photoUpload.errors.invalidFormat",params:{allowedFormats:e.allowedFormats.map(e=>e.toUpperCase()).join(", ")}};case"file-too-large":return{key:"tenth-anniversary:photoUpload.errors.fileTooLarge",params:{maxFileSizeMb:e.maxFileSizeMb}};case"resolution-too-low":return{key:"tenth-anniversary:photoUpload.errors.resolutionTooLow",params:{minResolution:e.minResolution,actualResolution:e.actualResolution}};case"captcha-verification-failed":return{key:"tenth-anniversary:photoUpload.errors.captchaFailed"};case"invalid-image":return{key:"tenth-anniversary:photoUpload.errors.invalidImage"};case"missing-file":return{key:"tenth-anniversary:photoUpload.errors.noFile"};case"invalid-data":case"invalid-file-meta":return{key:"tenth-anniversary:photoUpload.errors.invalidData"};case"upload-not-found":case"upload-expired":case"too-many-files":case"unknown-repository":return{key:"tenth-anniversary:photoUpload.errors.uploadFailed"}}},X=(0,d.Dz)(()=>{let{t:e}=(0,r.Bd)(I),t=(0,h.useRef)(null),[s,n]=(0,h.useState)(null),[i,l]=(0,h.useState)(null),[o,c]=(0,h.useState)(null),[d,u]=(0,h.useState)(null),[p,g]=(0,h.useState)(!1),[x,b]=(0,h.useState)(""),{mutateAsync:y,isLoading:v}=(0,D.S)(),{control:f,handleSubmit:w,reset:j}=(0,C.mN)({resolver:(0,T.t)($),defaultValues:{consent:!1,message:""}}),P=(0,h.useCallback)(e=>{c(null);let t=URL.createObjectURL(e);n(e),l(t)},[]),X=(0,h.useCallback)(()=>{i&&URL.revokeObjectURL(i),n(null),l(null),c(null)},[i]),{getRootProps:U,getInputProps:M,isDragActive:z}=(0,O.VB)({maxFiles:1,multiple:!1,disabled:v||p,onDrop:e=>{e[0]&&P(e[0])}}),R=async()=>{if(!s)return void c(e("tenth-anniversary:photoUpload.errors.noFile"));u(null);try{let a=await t.current?.executeAsync();if(t.current?.reset(),!a)return void u(e("tenth-anniversary:photoUpload.errors.captchaFailed"));await y({repositoryId:"anniversary-photo-wall",captchaToken:a,file:s,data:{},...x.trim()&&{message:x.trim()}}),g(!0),j(),b("")}catch(s){t.current?.reset(),console.log("[AnniversaryPhotoUpload] submit failed",s),u(((e,t)=>{if((0,k.F0)(e)&&e.response?.status===429)return t("tenth-anniversary:photoUpload.errors.rateLimited");if(e instanceof S.Fz){let{key:s,params:a}=F(e.body);return t(s,a)}if((0,k.F0)(e)){let s=e.response?.data;if("object"==typeof s&&null!==s&&"reason"in s){let{key:e,params:a}=F(s);return t(e,a)}if("object"==typeof s&&null!==s&&"string"==typeof s.message)return s.message}return t("tenth-anniversary:photoUpload.errors.uploadFailed")})(s,e))}},W=(0,h.useCallback)(()=>{g(!1),X(),b("")},[X]);return(0,a.jsxs)("div",{className:"mx-auto w-full max-w-2xl pb-8","data-sentry-component":"AnniversaryPhotoUploadSection","data-sentry-source-file":"anniversary-photo-upload-section.tsx",children:[(0,a.jsx)("h2",{className:"mb-8 text-center text-3xl font-bold uppercase tracking-[0.2em] text-[#FDD106] sm:text-4xl md:mb-12 md:text-5xl",children:(0,a.jsx)("div",{className:"leading-[1.2em]",children:e("tenth-anniversary:photoUpload.heading")})}),e("tenth-anniversary:photoUpload.description").split("<br/>").filter(e=>e.trim()).map((e,t)=>(0,a.jsx)("p",{className:"mb-4 text-center text-base tracking-wide text-[#FDD106] last:mb-8 md:text-lg",dangerouslySetInnerHTML:{__html:e}},t)),(0,a.jsxs)("form",{onSubmit:w(R),noValidate:!0,className:"mt-12 flex flex-col",children:[(0,a.jsxs)("div",{children:[s&&i?(0,a.jsxs)("div",{className:"relative overflow-hidden border border-[#FDD106]",children:[(0,a.jsx)("img",{src:i,alt:s.name,className:"max-h-72 w-full object-contain"}),(0,a.jsxs)("div",{className:"flex items-center justify-between bg-[#0d0d0d] px-4 py-2",children:[(0,a.jsx)("span",{className:"truncate text-sm text-white/70",children:s.name}),(0,a.jsx)("button",{type:"button",onClick:X,disabled:v||p,"aria-label":e("tenth-anniversary:photoUpload.removePhoto"),className:"ml-3 shrink-0 text-white/60 transition-colors hover:text-[#FDD106] disabled:opacity-40",children:(0,a.jsx)(m.m6K,{size:20})})]})]}):(0,a.jsxs)("div",{...U(),className:["flex cursor-pointer flex-col items-center justify-center gap-3 border-2 border-dashed px-6 py-12 text-center transition-colors",z?"border-[#FDD106] bg-[#FDD106]/10":"border-white/30 bg-[#111111] hover:border-[#FDD106]/60 hover:bg-[#FDD106]/5",v?"pointer-events-none opacity-60":""].join(" "),children:[(0,a.jsx)("input",{...M()}),(0,a.jsx)(m.E10,{size:48,className:z?"text-[#FDD106]":"text-white/40"}),(0,a.jsx)("p",{className:"text-base font-semibold uppercase tracking-wide text-white/80",children:z?e("tenth-anniversary:photoUpload.dropzone.dragActive"):e("tenth-anniversary:photoUpload.dropzone.idle")}),(0,a.jsx)("p",{className:"text-sm text-white/40",children:e("tenth-anniversary:photoUpload.dropzone.hint")}),(0,a.jsx)("p",{className:"text-xs text-white/30",children:e("tenth-anniversary:photoUpload.dropzone.rules")}
1)]}),o&&(0,a.jsx)(N.A,{className:"mt-2",variant:"filled",severity:"error",children:o})]}),!p&&(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsx)("textarea",{value:x,onChange:e=>b(e.target.value.slice(0,5e3)),disabled:v,placeholder:e("tenth-anniversary:photoUpload.messageHint"),maxLength:5e3,className:"w-full resize-none rounded border border-white/30 bg-[#0d0d0d] px-4 py-3 text-white placeholder-white/40 transition-colors hover:border-[#FDD106]/60 focus:border-[#FDD106] focus:outline-none focus:ring-1 focus:ring-[#FDD106]/50 disabled:cursor-not-allowed disabled:opacity-40",rows:4}),(0,a.jsxs)("div",{className:"mt-1 text-right text-xs text-white/40",children:[x.length," / 5000"]})]}),!p&&(0,a.jsx)(C.xI,{control:f,name:"consent",render:({field:{onChange:t,value:s},fieldState:{error:r}})=>(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-1",children:[(0,a.jsxs)("label",{className:"flex cursor-pointer select-none items-start gap-3",children:[(0,a.jsx)("input",{type:"checkbox",checked:s,onChange:e=>t(e.target.checked),disabled:v,className:"sr-only"}),(0,a.jsx)("span",{className:`mt-0.5 shrink-0 ${v?"opacity-40":""}`,children:s?(0,a.jsx)(m.lEn,{size:22,className:"text-[#FDD106]"}):(0,a.jsx)(m.Dnq,{size:22,className:"text-white/50"})}),(0,a.jsx)("span",{className:"text-sm leading-relaxed text-white/70",children:e("tenth-anniversary:photoUpload.consent.label")})]}),r&&(0,a.jsx)(N.A,{className:"mt-4",variant:"filled",severity:"error",children:e(r.message??"")})]})}),d&&(0,a.jsx)(N.A,{variant:"filled",severity:"error",className:"mt-4",children:d}),p?(0,a.jsxs)("div",{className:"my-4 flex flex-col gap-4",children:[(0,a.jsx)(N.A,{variant:"filled",severity:"success",className:"w-full",children:e("tenth-anniversary:photoUpload.successMessage")}),(0,a.jsx)("button",{type:"button",onClick:W,className:"text-sm text-[#FDD106] underline hover:no-underline",children:e("tenth-anniversary:photoUpload.uploadAnother")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_.A,{styleType:"web-gold",radiusSize:"none",size:"web-normal",type:"submit",cssClass:"uppercase w-full tracking-widest my-6",loading:v,loadingLabel:e("tenth-anniversary:photoUpload.submitting"),disabled:v,children:e("tenth-anniversary:photoUpload.submitButton")}),(0,a.jsx)(A.A,{captchaRef:t,dark:!0})]})]})]})},{namespacesOrComponents:[I,_.A,A.A]}),U=/^(\d{4})-(\d{2})-(\d{2})$/,M={cs:"https://www.youtube.com/watch?v=1Sv7aTB3nng",sk:"https://www.youtube.com/watch?v=1Sv7aTB3nng",en:"https://youtu.be/CL0qFQU1jrM",de:"https://youtu.be/PlnS7FaKm1U"},z=(0,d.On)(["tenth-anniversary"],X),R=Array.from({length:9},(e,t)=>({src:`/img/tenth-anniversary/gallery/bratislava-${String(t+1).padStart(2,"0")}.jpg`,alt:`10th Anniversary Bratislava celebration photo ${t+1}`})),W=({imageSrc:e,hoverImageSrc:t,title:s,buttonText:r,href:n,isPast:l,delay:c,isVisible:d,bgTitle:m,bgDate:u})=>{let[p,g]=(0,h.useState)(!1),x=(0,a.jsx)("div",{className:`flex flex-col items-center transition-all duration-700 ${l?"":"cursor-pointer"} ${d?"translate-y-0 opacity-100":"translate-y-8 opacity-0"}`,style:{transitionDelay:`${c}ms`},...l?{}:{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1)},children:l?(0,a.jsx)("div",{className:"relative mb-2 w-full overflow-hidden border border-[#FDD106]/40 md:mb-4",style:{aspectRatio:"368/491"},children:(0,a.jsx)(i(),{src:e,alt:s,fill:!0,className:"object-cover brightness-75 grayscale transition-none"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative mb-2 w-full overflow-hidden border border-[#FDD106] md:mb-4",style:{aspectRatio:"368/491"},children:[(0,a.jsx)(i(),{src:e,alt:s,fill:!0,className:`object-cover transition-opacity duration-300 ${p?"opacity-0":"opacity-100"}`}),(0,a.jsxs)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${p?"opacity-100":"opacity-0"}`,children:[(0,a.jsx)(i(),{src:t,alt:`${s} Background`,fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center p-4",children:(0,a.jsx)("div",{className:"w-full text-center",children:(0,a.jsxs)("p",{className:"text-center text-sm font-bold uppercase leading-tight tracking-[0.05em] text-white drop-shadow-[0_4px_40px_rgba(0,0,0,1)] sm:text-xl sm:tracking-[0.2em] md:text-2xl lg:text-3xl",children:[(0,a.jsx)("span",{className:"block whitespace-nowrap",children:m}),(0,a.jsx)("span",{className:"block whitespace-nowrap",children:u})]})})})]})]}),(0,a.jsx)(B,{children:r})]})});return l?x:(0,a.jsx)(o(),{href:n,"data-sentry-element":"Link","data-sentry-component":"PosterCard","data-sentry-source-file":"10th-anniversary.tsx",children:x})},B=({children:e,onClick:t})=>(0,a.jsx)("button",{onClick:t,className:"rounded-md border border-[#FDD106] bg-[#191919] px-3 py-1.5 text-center text-xs font-bold uppercase leading-none tracking-[0.06em] text-white transition-colors hover:bg-yellow-300 hover:text-[#191919] md:px-4 md:py-2 md:text-sm lg:text-base","data-sentry-component":"MiniButton","data-sentry-source-file":"10th-anniversary.tsx",children:e});var L=!0;let E=()=>{let e=(0,c.useRouter)().locale||"en",{t}
1=(0,r.Bd)(z),s=M[e]||M.en,[n,l]=(0,h.useState)([!1,!1,!1]),o=(0,h.useMemo)(()=>[{imageSrc:"/img/tenth-anniversary/10y_poster_bratislava.png",hoverImageSrc:"/img/tenth-anniversary/10y_chainbg.png",title:t("tenth-anniversary:posters.bratislava"),buttonText:t("tenth-anniversary:buttons.bePartOfIt"),href:"/events/oktagon-89-bratislava/",eventDate:"2026-06-06",bgTitle:"Bratislava",bgDate:"06.06.2026"},{imageSrc:"/img/tenth-anniversary/10y_poster_stvanice.png",hoverImageSrc:"/img/tenth-anniversary/10y_chainbg.png",title:t("tenth-anniversary:posters.stvanice"),buttonText:t("tenth-anniversary:buttons.experience"),href:"/events/oktagon-92-prague/",eventDate:"2026-08-01",bgTitle:"Å tvanice",bgDate:"01.08.2026"},{imageSrc:"/img/tenth-anniversary/10y_poster_d.png",hoverImageSrc:"/img/tenth-anniversary/10y_chainbg.png",title:t("tenth-anniversary:posters.frankfurt"),buttonText:t("tenth-anniversary:buttons.celebrate"),href:"/events/oktagon-94-frankfurt/",eventDate:"2026-09-26",bgTitle:"Frankfurt",bgDate:"26.09.2026"}],[t]),[d,f]=(0,h.useState)([]);return(0,h.useEffect)(()=>{let e,t=()=>{let e=new Date;f(o.filter(({eventDate:t})=>((e,t=new Date)=>{let s=U.exec(e);if(!s)throw Error(`Invalid ISO calendar date: ${e}`);let[,a,r,n]=s;return t>=new Date(Number(a),Number(r)-1,Number(n)+1)})(t,e)).map(({eventDate:e})=>e))},s=()=>{let a=new Date,r=new Date(a);r.setHours(24,0,0,0),e=window.setTimeout(()=>{t(),s()},r.getTime()-a.getTime())};return t(),s(),()=>window.clearTimeout(e)},[o]),(0,a.jsxs)(v.A,{metaTitle:"10th Anniversary",disableAnnouncementBar:!0,disablePopup:!0,mainClassName:"bg-[#191919] text-white select-none",metaImage:"/img/tenth-anniversary/og-image.png",metaImageWidth:1920,metaImageHeight:1080,"data-sentry-element":"OktLayout","data-sentry-component":"OktTenthAnniversaryPage","data-sentry-source-file":"10th-anniversary.tsx",children:[(0,a.jsx)(x.A,{widthType:"full",disablePaddingY:!0,disablePaddingX:!0,className:"py-0","data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsxs)("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!1,className:"aspect-4/3 w-full object-cover sm:aspect-[2.1/1]",poster:"/img/tenth-anniversary/10yteaser_intro_fallback.jpg",children:[(0,a.jsx)("source",{src:"https://storage.googleapis.com/oktagonprod-videos/10yteaser_intro.mp4",type:"video/mp4"}),(0,a.jsx)(i(),{src:"/img/tenth-anniversary/10yteaser_intro_fallback.jpg",alt:"10th Anniversary",width:2560,height:1219,className:"aspect-4/3 w-full object-cover sm:aspect-[2.1/1]","data-sentry-element":"Image","data-sentry-source-file":"10th-anniversary.tsx"})]}),(0,a.jsxs)("button",{onClick:()=>{let e=document.getElementById("posters-section");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},className:"absolute inset-x-0 bottom-4 z-10 flex cursor-pointer items-center justify-center transition-opacity hover:opacity-80 md:bottom-8",children:[(0,a.jsx)("h1",{className:"text-center text-normal uppercase text-[#FDD106] drop-shadow-[0_2px_10px_rgba(0,0,0,0.8)] transition-all hover:font-bold md:text-xl lg:text-2xl",children:t("tenth-anniversary:hero.title")}),(0,a.jsx)("div",{className:"translate-y-1",children:(0,a.jsx)(m.WnU,{className:"ml-2 animate-bounce self-center text-[#FDD106]",size:32,"data-sentry-element":"MdKeyboardArrowDown","data-sentry-source-file":"10th-anniversary.tsx"})})]})]})}),(0,a.jsxs)(x.A,{widthType:"full",disablePaddingY:!0,disablePaddingX:!0,className:"py-0",contentClassName:"bg-[#090909]","data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:[(0,a.jsx)("div",{className:"h-2 w-full bg-[#090909]"}),(0,a.jsxs)("div",{className:"relative h-[20vh] w-full overflow-hidden sm:h-[40vh]",children:[(0,a.jsx)("img",{src:"/img/tenth-anniversary/10ybg.svg",alt:"10th Anniversary Background",className:"absolute inset-0 my-2 h-full w-full origin-top scale-125 object-cover object-top sm:scale-100"}),(0,a.jsx)("div",{className:"pointer-events-none absolute left-0 right-0 h-[20vh] bg-gradient-to-t from-[#191919] via-[#191919] via-10% to-transparent sm:h-[40vh]"})]})]}),(0,a.jsxs)(x.A,{widthType:"lg",className:"pb-10 md:pb-16",sectionId:"posters-section",disablePaddingY:!0,"data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:[(0,a.jsxs)("h2",{className:"mb-14 mt
1-5 text-center text-3xl font-bold uppercase tracking-[0.2em] text-[#FDD106] sm:mt-0 sm:text-4xl md:mb-24 md:text-5xl",children:[(0,a.jsx)("div",{className:"leading-[1.2em]",children:t("tenth-anniversary:hero.subtitle1")}),(0,a.jsx)("div",{className:"leading-[1.2em]",children:t("tenth-anniversary:hero.subtitle2")})]}),(0,a.jsx)(u.pL,{threshold:.3,triggerOnce:!0,onChange:e=>{e&&!n.some(e=>e)&&[0,1,2].forEach(e=>{setTimeout(()=>{l(t=>{let s=[...t];return s[e]=!0,s})},150*e)})},"data-sentry-element":"InView","data-sentry-source-file":"10th-anniversary.tsx",children:(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 md:gap-6",children:o.map((e,t)=>(0,a.jsx)(W,{imageSrc:e.imageSrc,hoverImageSrc:e.hoverImageSrc,title:e.title,buttonText:e.buttonText,href:e.href,eventDate:e.eventDate,isPast:d.includes(e.eventDate),delay:150*t,isVisible:n[t],bgTitle:e.bgTitle,bgDate:e.bgDate},t))})})]}),(0,a.jsxs)(x.A,{widthType:"lg",className:"py-8 md:py-16","data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:[(0,a.jsx)("p",{className:"mx-auto mb-14 max-w-2xl text-center text-2xl font-normal uppercase leading-tight text-[#FDD106] md:mb-16 md:text-3xl md:leading-snug",children:t("tenth-anniversary:celebration.mainText")}),(0,a.jsx)("div",{className:"mx-auto mb-6",children:(0,a.jsx)(g.A,{youtubeLinkOrVideoId:s,aspectRatio:"video",className:"w-full border border-[#FDD106]","data-sentry-element":"OktYoutubePlayer","data-sentry-source-file":"10th-anniversary.tsx"})}),(0,a.jsx)("p",{className:"mx-auto my-16 mb-8 max-w-3xl text-center text-base tracking-wide text-[#FDD106] md:text-lg",children:t("tenth-anniversary:celebration.secondaryText")})]}),null,(0,a.jsxs)(x.A,{widthType:"lg",className:"py-8 md:py-16",children:[(0,a.jsx)("h2",{className:"mb-8 text-center text-3xl font-bold uppercase tracking-[0.12em] text-[#FDD106] md:mb-12 md:text-5xl",children:"Takhle jsme oslavili des\xe1t\xe9 v\xfdroÄ\xed v BratislavÄ!"}),(0,a.jsx)(b.A,{photos:R,numOfPhotosInRow:2,aspect:"4:3",galleryType:"GRID-WITH-LEADER",disablePaddingX:!0,disablePaddingY:!0})]}),(0,a.jsx)(x.A,{widthType:"full",disablePaddingX:!0,disablePaddingY:!0,className:"overflow-hidden","data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:(0,a.jsxs)("div",{className:"relative h-[300px] md:h-[400px] lg:h-[500px] xl:h-[600px]",children:[(0,a.jsx)(p.kQ,{speed:-15,"data-sentry-element":"Parallax","data-sentry-source-file":"10th-anniversary.tsx",children:(0,a.jsx)(i(),{src:"/img/tenth-anniversary/10y_chainbg.png",alt:"Chain Background",width:2650,height:2650,className:"mx-auto min-w-[100vw] scale-150 object-cover md:scale-100","data-sentry-element":"Image","data-sentry-source-file":"10th-anniversary.tsx"})}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center text-2xl font-bold uppercase leading-relaxed tracking-[0.1em] text-white drop-shadow-[0_4px_40px_rgba(0,0,0,0.8)] md:text-4xl lg:text-5xl xl:text-6xl",children:[(0,a.jsx)("div",{children:t("tenth-anniversary:celebration.tagline1")}),(0,a.jsx)("div",{children:t("tenth-anniversary:celebration.tagline2")}),(0,a.jsx)("div",{children:t("tenth-anniversary:celebration.tagline3")}),(0,a.jsx)("div",{children:t("tenth-anniversary:celebration.tagline4")}),(0,a.jsx)("div",{children:t("tenth-anniversary:celebration.tagline5")})]})})]})}),(0,a.jsx)(x.A,{widthType:"full",disablePaddingX:!0,disablePaddingY:!0,"data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:(0,a.jsx)(j,{items:[{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_1.jpg",title:t("tenth-anniversary:timeline.2016"),year:"2016"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_2.jpg",title:t("tenth-anniversary:timeline.2017"),year:"2017"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_3.jpg",title:t("tenth-anniversary:timeline.2018"),year:"2018"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_4.jpg",title:t("tenth-anniversary:timeline.2019"),year:"2019"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_5.jpg",title:t("tenth-anniversary:timeline.2020"),year:"2020"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_6.jpg",title:t("tenth-anniversary:timeline.2021"),year:"2021"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_7.jpg",title:t("tenth-anniversary:timeline.2022"),year:"2022"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_8.jpg",title:t("tenth-anniversary:timeline.2023"),year:"2023"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_9.jpg",title:t("tenth-anniversary:timeline.2024"),year:"2024"},{imageSrc:"/img/tenth-anniversary/carousel/OKT_10YRS_web_10.jpg",title:t("tenth-anniversary:timeline.2025"),year:"2025"}],interval:6e3,"data-sentry-element":"AnniversaryCarousel","data-sentry-source-file":"10th-anniversary.tsx"})}),(0,a.jsxs)(x.A,{widthType:"full",disablePaddingY:!0,disablePaddingX:!0,className:"py-0",contentClassName:"bg-[#090909]","data-sentry-element":"OktSectionBase","data-sentry-source-file":"10th-anniversary.tsx",children:[(0,a.jsxs)("div",{className:"relative h-[20vh] w-full overflow-hidden sm:h-[40vh]",children:[(0,a.jsx)("img",{src:"/img/tenth-anniversary/10ybg.svg",alt:"10th Anniversary Backgroun
1d",className:"absolute my-2 size-full origin-top scale-125 object-cover object-top sm:scale-100"}),(0,a.jsx)("div",{className:"pointer-events-none absolute left-0 right-0 h-[20vh] bg-gradient-to-b from-[#191919] via-[#191919] via-10% to-transparent sm:h-[40vh]"})]}),(0,a.jsx)("div",{className:"h-1 w-full bg-[#090909]"})]}),(0,a.jsx)("div",{className:"w-full bg-gray-10",children:(0,a.jsx)(y.A,{className:"bg-gray-10","data-sentry-element":"OktPartnersCarousel","data-sentry-source-file":"10th-anniversary.tsx"})})]})}},50679:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var a=s(80263),r=s(51596);s(4166),s(50283),s(7168);var n=s(76458),i=s(28424),l=s(48840),o=s(73548),c=s.n(o),d=s(3849),h=s(68069),m=s(6431),u=s(76518);let p=e=>{switch(e){case"1:1":default:return"aspect-1";case"4:5":return"aspect-4/5";case"5:4":return"aspect-5/4";case"16:9":return"aspect-16/9";case"4:3":return"aspect-[4/3]";case"3:4":return"aspect-[3/4]";case"3:2":return"aspect-[3/2]";case"2:3":return"aspect-[2/3]";case"16:10":return"aspect-[16/10]";case"10:16":return"aspect-[10/16]"}},g=(0,d.Dz)(({photos:e,numOfPhotosInRow:t=5,aspect:s="1:1",galleryType:o="GRID",...d})=>{let h=(0,r.cn)({"grid gap-2":!0,"grid-cols-1":1===t,"grid-cols-2":2===t,"grid-cols-3":3===t,"grid-cols-4":4===t,"grid-cols-5":5===t,"grid-cols-6":6===t}),[g,...x]=e,b="GRID-WITH-LEADER"===o&&!!g&&x.length>0;return(0,a.jsx)(m.A,{...d,"data-sentry-element":"OktSectionBase","data-sentry-component":"OktSectionGalleryGrid","data-sentry-source-file":"section-gallery-grid.tsx",children:(0,a.jsx)(l.A,{mode:"lg-slide",speed:500,plugins:[n.A,i.A],elementClassNames:b?"flex flex-col gap-2 lg:flex-row":h,licenseKey:u.eX,controls:!0,mobileSettings:{controls:!0},selector:"[data-src]","data-sentry-element":"LightGallery","data-sentry-source-file":"section-gallery-grid.tsx",children:b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full lg:w-1/2",children:(0,a.jsx)("a",{"data-src":g.src,"data-sub-html":g.alt,className:`relative block overflow-hidden ${p(s)} lg:aspect-auto lg:h-full`,children:(0,a.jsx)(c(),{src:g.src,alt:g.alt||"Image",fill:!0,sizes:"(max-width: 1024px) 100vw, 50vw",className:"object-cover object-center transition-transform duration-500 hover:scale-105 hover:cursor-pointer"})})}),(0,a.jsx)("div",{className:"w-full lg:w-1/2",children:(0,a.jsx)("div",{className:h,children:x.map(e=>(0,a.jsx)("a",{"data-src":e.src,"data-sub-html":e.alt,className:`${p(s)} relative overflow-hidden`,children:(0,a.jsx)(c(),{src:e.src,alt:e.alt||"Image",fill:!0,sizes:`${100/t}vw`,className:"object-cover object-center transition-transform duration-500 hover:scale-105 hover:cursor-pointer"})},e.src))})})]}):e.map(e=>(0,a.jsx)("a",{"data-src":e.src,"data-sub-html":e.alt,className:`${p(s)} relative overflow-hidden`,children:(0,a.jsx)(c(),{src:e.src,alt:e.alt||"Image",fill:!0,sizes:`${100/t}vw`,className:"object-cover object-center transition-transform duration-500 hover:scale-105 hover:cursor-pointer"})},e.src))})})},{namespacesOrComponents:[[],h.A,m.A]})},61267:(e,t,s)=>{"use strict";s.d(t,{M:()=>r});var a,r=((a={}).PRIORITY="priority",a.TYPE="type",a)},68342:()=>{},69552:()=>{},72816:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var a=s(80263),r=s(93182),n=s(17799),i=s(86978),l=s(46400),o=s(51596),c=s(85324);let d=({youtubeLinkOrVideoId:e,locale:t,aspectRatio:s="video",playerVars:d={},title:h,className:m="",onReady:u=c.lQ})=>{let p=(0,r.useRouter)(),g=(0,n.kf)(i.Yw,i.tD,e,t??p.locale),x=(0,n.UY)(g)||g,b=(0,o.cn)({"aspect-video":"video"===s,"aspect-story":"story"===s,[m]:!0});return(0,a.jsx)("div",{className:`${b}`,"data-sentry-component":"OktYoutubePlayer","data-sentry-source-file":"youtube-player.tsx",children:(0,a.jsx)(l.default,{className:"size-full",videoId:x,opts:{height:"100%",width:"100%",playerVars:{modestbranding:1,...d}},title:h??"YouTube video player",onReady:u,"data-sentry-element":"YouTube","data-sentry-source-file":"youtube-player.tsx"})})}},76458:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=function(){return(a=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++)for(var r in t=arguments[s])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 5,506 bytes, line 1
1ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},n="lgBeforeSlide";let i=function(){function e(e,t){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=e,this.$LG=t,this}return e.prototype.init=function(){this.settings=a(a({},r),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},e.prototype.build=function(){var e=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(t){var s=e.$LG(t.target);s.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(e.thumbClickable&&!e.core.lgBusy){var t=parseInt(s.attr("data-lg-item-id"));e.core.slide(t,!1,!0,!1)}},50)}),this.core.LGel.on(n+".thumb",function(t){var s=t.detail.index;e.animateThumb(s)}),this.core.LGel.on("lgBeforeOpen.thumb",function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth}),this.core.LGel.on("lgUpdateSlides.thumb",function(){e.rebuildThumbnails()}),this.core.LGel.on("lgContainerResize.thumb",function(){e.core.lgOpened&&setTimeout(function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth,e.animateThumb(e.core.index),e.thumbOuterWidth=e.core.outer.get().offsetWidth},50)})},e.prototype.setThumbMarkup=function(){var e="lg-thumb-outer ";this.settings.alignThumbnails&&(e+="lg-thumb-align-"+this.settings.alignThumbnails);var t='<div class="'+e+'">\n <div class="lg-thumb lg-group">\n </div>\n </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(t):this.core.outer.append(t),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},e.prototype.enableThumbDrag=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},s=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(a){e.thumbTotalWidth>e.thumbOuterWidth&&(a.preventDefault(),t.cords.startX=a.pageX,t.startTime=new Date,e.thumbClickable=!1,s=!0,e.core.outer.get().scrollLeft+=1,e.core.outer.get().scrollLeft-=1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(a){e.core.lgOpened&&s&&(t.cords.endX=a.pageX,t=e.onThumbTouchMove(t))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){e.core.lgOpened&&(t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0,s&&(s=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},e.prototype.enableThumbSwipe=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(s){e.thumbTotalWidth>e.thumbOuterWidth&&(s.preventDefault(),t.cords.startX=s.targetTouches[0].pageX,e.thumbClickable=!1,t.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(s){e.thumbTotalWidth>e.thumbOuterWidth&&(s.preventDefault(),t.cords.endX=s.targetTouches[0].pageX,t=e.onThumbTouchMove(t))}),this.$lgThumb.on("touchend.lg",function(){t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0})},e.prototype.rebuildThumbnails=function(){var e=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){e.thumbTotalWidth=e.core.galleryItems.length*(e.settings.thumbWidth+e.settings.thumbMargin),e.$lgThumb.css("width",e.thumbTotalWidth+"px"),e.$lgThumb.empty(),e.setThumbItemHtml(e.core.galleryItems),e.animateThumb(e.core.index)},50),setTimeout(function(){e.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},e.prototype.setTranslate=function(e){this.$lgThumb.css("transform","translate3d(-"+e+"px, 0px, 0px)")},e.prototype.getPossibleTransformX=function(e){return e>this.thumbTotalWidth-this.thumbOuterWidth&&(e=this.thumbTotalWidth-this.thumbOuterWidth),e<0&&(e=0),e},e.prototype.animateThumb=function(e){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var t=0;switch(this.settings.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*e-1-t,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},e.prototype.onThumbTouchMove=function(e){return e.newTranslateX=this.translateX,e.
1isMoved=!0,e.touchMoveTime=new Date().valueOf(),e.newTranslateX-=e.cords.endX-e.cords.startX,e.newTranslateX=this.getPossibleTransformX(e.newTranslateX),this.setTranslate(e.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),e},e.prototype.onThumbTouchEnd=function(e){e.isMoved=!1,e.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var t=e.endTime.valueOf()-e.startTime.valueOf(),s=e.cords.endX-e.cords.startX,a=Math.abs(s)/t;return a>.15&&e.endTime.valueOf()-e.touchMoveTime<30?((a+=1)>2&&(a+=1),a+=a*(Math.abs(s)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(a-1,2)+"settings"),s*=a,this.translateX=this.getPossibleTransformX(this.translateX-s),this.setTranslate(this.translateX)):this.translateX=e.newTranslateX,Math.abs(e.cords.endX-e.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),e},e.prototype.getThumbHtml=function(e,t,s){var a,r=this.core.galleryItems[t].__slideVideoInfo||{};a=r.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+r.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":e;var n=document.createElement("div");n.setAttribute("data-lg-item-id",t+""),n.className="lg-thumb-item "+(t===this.core.index?"active":""),n.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var i=document.createElement("img");return i.alt=s||"",i.setAttribute("data-lg-item-id",t+""),i.src=a,n.appendChild(i),n},e.prototype.setThumbItemHtml=function(e){for(var t=0;t<e.length;t++){var s=this.getThumbHtml(e[t].thumb,t,e[t].alt);this.$lgThumb.append(s)}},e.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},e.prototype.manageActiveClassOnSlideChange=function(){var e=this;this.core.LGel.on(n+".thumb",function(t){var s=e.core.outer.find(".lg-thumb-item"),a=t.detail.index;s.removeClass("active"),s.eq(a).addClass("active")})},e.prototype.toggleThumbBar=function(){var e=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){e.core.outer.toggleClass("lg-components-open")}))},e.prototype.thumbKeyPress=function(){var e=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(t){e.core.lgOpened&&e.settings.toggleThumb&&(38===t.keyCode?(t.preventDefault(),e.core.outer.addClass("lg-components-open")):40===t.keyCode&&(t.preventDefault(),e.core.outer.removeClass("lg-components-open")))})},e.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},e}()},93233:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/10th-anniversary",function(){return s(49326)}])}},e=>{e.O(0,[332,8533,8808,4878,4619,7940,6632,597,2996,5963,5469,7207,6400,7060,1139,3327,4714,9469,574,3888,636,6593,8792],()=>e(e.s=93233)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.