1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6646],{264:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var s=n(4110);n(43422);var r=n(4636),l=n(62896),a=n(98548);function i(e){let{className:t,...n}=e;return(0,s.jsx)(r.bL,{"data-slot":"checkbox",className:(0,a.cn)("cursor-pointer peer border-input bg-dark/30 data-[state=checked]:bg-mobis-accent data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-mobis-accent data-[state=checked]:border-mobis-accent focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-xs border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...n,children:(0,s.jsx)(r.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,s.jsx)(l.A,{className:"size-3.5"})})})}},1278:(e,t,n)=>{"use strict";n.d(t,{N_:()=>i});var s=n(91775),r=n(36237),l=n(86074);let a=(0,r.A)({locales:l.YZ,defaultLocale:l.Xn}),{Link:i,redirect:o,usePathname:d,useRouter:c,getPathname:u}=(0,s.A)(a)},7419:(e,t,n)=>{"use strict";n.d(t,{AboutCompanySidebar:()=>a});var s=n(4110),r=n(43422),l=n(69928);function a(e){let{sections:t}=e,{active:n,handleScroll:a}=function(e){let[t,n]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{function t(){var t;let s=window.scrollY+120,r=null==(t=e[0])?void 0:t.anchor;for(let t of e){let e=document.getElementById(t.anchor);e&&e.offsetTop<=s&&(r=t.anchor)}n(r)}return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[e]),{active:t,handleScroll:e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}}}(t);return t&&0!==t.length?(0,s.jsx)("nav",{className:"hidden lg:block lg:w-1/5 pr-6 text-left lg:sticky lg:top-8 lg:self-start",children:(0,s.jsx)("ul",{className:"space-y-5",children:t.map(e=>{let{label:t,anchor:r}=e;return(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:()=>a(r),className:(0,l.QP)("text-subtext cursor-pointer font-semibold text-base leading-normal transition text-left w-full",n===r?"text-mobis-accent":"text-subtext"),children:t})},"".concat(t,"-").concat(r))})})}):null}},13744:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var s=n(4110),r=n(43422),l=n(45431),a=n(71025),i=n(97),o=n(61107);function d(e){var t,n,d,f,g,b,v,j,y,w,N,k,S,C,I,z,E,T,P,A,L,_,R,F,M;let{data:W}=e,O=(0,l.c3)("career.hero"),B=(0,a.Ym)(),q=null!=(A=W.frameCount)?A:260,Y=null!=(L=W.framesFolder)?L:"/frames",D=(0,r.useRef)(O("phase1Location"));D.current=O("phase1Location");let U=(0,r.useRef)(()=>{}),H=(0,r.useRef)(null),J=(0,r.useRef)(null),G=(0,r.useRef)(null),V=(0,r.useRef)(null),$=(0,r.useRef)(null),Z=(0,r.useRef)(null),K=(0,r.useRef)(null),X=(0,r.useRef)(null),Q=(0,r.useRef)(null),ee=(0,r.useRef)(null),et=(0,r.useRef)(null),en=(0,r.useRef)(null),es=(0,r.useRef)(null),{phase2:er,phase3:el,phase4:ea}=W;return(0,r.useEffect)(()=>(document.documentElement.dataset.heroScrollActive="true",()=>{delete document.documentElement.dataset.heroScrollActive}),[]),(0,r.useLayoutEffect)(()=>{function e(){let e=Z.current,t=X.current,n=K.current;if(!e||!t)return;let s=t.getBoundingClientRect().top-24-e.offsetHeight/2;if(e.style.top="".concat(Math.max(s,140),"px"),n){n.style.top="100px";let t=e.getBoundingClientRect(),s=n.getBoundingClientRect();s.bottom>t.top&&s.top<t.bottom&&s.left<t.right&&(n.style.top="".concat(t.bottom+16,"px"))}}U.current=e,e();let t=0,n=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),cancelAnimationFrame(n),cancelAnimationFrame(t)}},[B]),(0,r.useEffect)(()=>{var e,t;i.Ay.registerPlugin(o.u);let n=J.current;if(!n)return;let s=n.getContext("2d",{alpha:!1,desynchronized:!0});if(!s)return;let r=Array(q),l=!1,a=0;function d(){n&&(n.width=n.offsetWidth||window.innerWidth,n.height=n.offsetHeight||window.innerHeight)}function c(e){if(!n||!s||!e.complete||0===e.naturalWidth)return;
1let t=n.width,r=n.height,l=e.naturalWidth,a=e.naturalHeight,i=Math.max(t/l,r/a),o=l*i,d=a*i;s.drawImage(e,(t-o)*.5,(r-d)*.5,o,d)}function u(e){let t=Math.min(Math.round(e*(q-1)),q-1),n=r[t];if(!n){for(let e=1;e<t;e++)if(r[t-e]){n=r[t-e];break}}n&&c(n)}d();let x=()=>{d(),u(a)};window.addEventListener("resize",x);for(let e=0;e<q;e++){let t=new Image,n=e;t.onload=()=>{r[n]=t,0!==n||l||(l=!0,c(t))},t.src="".concat(Y,"/frame_").concat(String(e).padStart(4,"0"),".webp")}let p=[Q,ee,et,en,es],m=[{num:"01",loc:""},{num:"01",loc:""},{num:"02",loc:null!=(e=null==er?void 0:er.locationPill)?e:""},{num:"03",loc:null!=(t=null==el?void 0:el.locationPill)?t:""},{num:"04",loc:""}],h=o.u.create({trigger:H.current,start:"top top",end:"bottom bottom",onUpdate(e){let t=e.progress;a=t,u(t),G.current&&(G.current.style.width="".concat(100*t,"%")),Z.current&&(Z.current.style.opacity=t>.05?"0":"1");let n=m[0],s=0,r=-1;p.forEach((e,l)=>{if(!e.current)return;let a=function(e,t){let n=e-.2*t;return n<0||n>=.2?0:n<.025?n/.025:n>.2-.025?(.2-n)/.025:1}(t,l),i=t<.2*l+.1?(1-a)*50:-((1-a)*50);e.current.style.opacity=String(a),e.current.style.transform="translateY(".concat(i,"px)"),a>r&&(r=a,n=m[l],s=l)}),t<.06&&U.current(),n=1===s?{...n,loc:D.current}:n,V.current&&(V.current.textContent=n.num),$.current&&($.current.textContent=n.loc,$.current.style.opacity=n.loc?"1":"0")}});return()=>{h.kill(),window.removeEventListener("resize",x)}},[q,Y,null==er?void 0:er.locationPill,null==el?void 0:el.locationPill]),(0,s.jsxs)("div",{ref:H,className:"career-hero-scroll mb-8",style:{position:"relative",height:"550vh"},children:[(0,s.jsxs)("div",{style:{position:"sticky",top:0,zIndex:10,width:"100%",height:"100dvh",overflow:"hidden",background:"#001644"},children:[(0,s.jsx)("canvas",{ref:J,style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"block",zIndex:0}}),(0,s.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,zIndex:1,pointerEvents:"none",background:"\n linear-gradient(105deg,\n rgba(0,28,100,.82) 0%,\n rgba(0,48,140,.55) 38%,\n rgba(0,48,140,.18) 62%,\n transparent 80%),\n linear-gradient(to bottom,\n rgba(0,20,72,.50) 0%,\n transparent 28%,\n transparent 64%,\n rgba(0,18,64,.70) 100%)\n "}}),(0,s.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,zIndex:2,pointerEvents:"none",opacity:.15,background:"repeating-linear-gradient(to bottom,transparent 0px,transparent 5px,rgba(80,130,255,.08) 5px,rgba(80,130,255,.08) 6px)"}}),(0,s.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:28,zIndex:3,pointerEvents:"none"},children:["tl","tr","bl","br"].map(e=>(0,s.jsx)("div",{style:{position:"absolute",width:26,height:26,borderColor:"rgba(80,160,255,.50)",borderStyle:"solid",top:e.startsWith("t")?0:void 0,bottom:e.startsWith("b")?0:void 0,left:e.endsWith("l")?0:void 0,right:e.endsWith("r")?0:void 0,borderWidth:"".concat(2*!!e.startsWith("t"),"px ").concat(2*!!e.endsWith("r"),"px ").concat(2*!!e.startsWith("b"),"px ").concat(2*!!e.endsWith("l"),"px")}},e))}),(0,s.jsx)("div",{ref:Q,style:{...c(),display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)("div",{ref:X,style:{textAlign:"center"},children:[(0,s.jsxs)("div",{style:{fontFamily:"'HyundaiSans', 'Inter', sans-serif",fontSize:"clamp(64px,12vw,148px)",fontWeight:900,lineHeight:.9,letterSpacing:"-0.03em",color:"#fff",textShadow:"0 0 80px rgba(0,60,143,.35)"},children:[null!=(_=null==(t=W.phase0)?void 0:t.line1)?_:"HYUNDAI",(0,s.jsx)("br",{}),(0,s.jsx)("em",{style:{color:"#cc1424",fontStyle:"normal"},children:null!=(R=null==(n=W.phase0)?void 0:n.line2)?R:"MOBIS"})]}),(0,s.jsxs)("div",{style:{marginTop:28,display:"flex",alignItems:"center",gap:14,fontSize:12,fontWeight:500,letterSpacing:"0.20em",textTransform:"uppercase",color:"rgba(255,255,255,.40)",justifyContent:"center"},children:[(0,s.jsx)("span",{style:{display:"block",width:36,height:1,background:"#cc1424",flexShrink:0}}),null!=(F=null==(d=W.phase0)?void 0:d.subText)?F:"Czech Republic \xb7 2026"]}
1)]})}),(0,s.jsx)("div",{ref:ee,style:u(),children:(0,s.jsxs)("div",{children:[(0,s.jsx)(x,{children:null==(f=W.phase1)?void 0:f.eyebrow}),(0,s.jsx)(p,{children:null==(g=W.phase1)?void 0:g.heading}),(0,s.jsx)(m,{children:null==(b=W.phase1)?void 0:b.body}),(null==(v=W.phase1)?void 0:v.stats)&&W.phase1.stats.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:44,flexWrap:"wrap"},children:W.phase1.stats.map((e,t)=>(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5},children:[(0,s.jsx)("span",{style:{fontSize:"clamp(30px,4.5vw,56px)",fontWeight:900,lineHeight:1,letterSpacing:"-0.02em",color:"#fff"},children:e.number}),(0,s.jsx)("span",{style:{fontSize:10,fontWeight:600,letterSpacing:"0.20em",textTransform:"uppercase",color:"rgba(255,255,255,.35)"},children:e.label})]},t))})]})}),(0,s.jsx)("div",{ref:et,style:u(),children:(0,s.jsxs)("div",{children:[(null==(j=W.phase2)?void 0:j.locationPill)&&(0,s.jsx)(h,{children:W.phase2.locationPill}),(0,s.jsx)(x,{children:null==(y=W.phase2)?void 0:y.eyebrow}),(0,s.jsx)(p,{children:null==(w=W.phase2)?void 0:w.heading}),(0,s.jsx)(m,{children:null==(N=W.phase2)?void 0:N.body})]})}),(0,s.jsx)("div",{ref:en,style:u(),children:(0,s.jsxs)("div",{children:[(null==(k=W.phase3)?void 0:k.locationPill)&&(0,s.jsx)(h,{children:W.phase3.locationPill}),(0,s.jsx)(x,{children:null==(S=W.phase3)?void 0:S.eyebrow}),(0,s.jsx)(p,{children:null==(C=W.phase3)?void 0:C.heading}),(0,s.jsx)(m,{children:null==(I=W.phase3)?void 0:I.body})]})}),(0,s.jsx)("div",{ref:es,style:{...u(),paddingBottom:110},children:(0,s.jsxs)("div",{children:[(null==(z=W.phase4)?void 0:z.superText)&&(0,s.jsx)("div",{style:{fontSize:10,fontWeight:700,letterSpacing:"0.30em",textTransform:"uppercase",color:"#cc1424",marginBottom:18},children:W.phase4.superText}),(0,s.jsx)(p,{children:null==(E=W.phase4)?void 0:E.heading}),(null==(T=W.phase4)?void 0:T.body)&&(0,s.jsx)(m,{children:W.phase4.body}),(null==(P=W.phase4)?void 0:P.buttonText)&&(0,s.jsxs)("a",{href:null!=(M=W.phase4.buttonAnchor)?M:"#pozice",style:{display:"inline-flex",alignItems:"center",gap:12,background:"#cc1424",color:"#fff",fontSize:14,fontWeight:700,letterSpacing:"0.04em",padding:"16px 32px",borderRadius:6,boxShadow:"0 4px 28px rgba(204,20,36,.45)",textDecoration:"none",pointerEvents:"auto"},children:[W.phase4.buttonText,(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",style:{width:15,height:15},children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]})]})}),(0,s.jsxs)("div",{"aria-hidden":!0,style:{position:"absolute",bottom:36,left:80,right:80,zIndex:5,display:"flex",alignItems:"flex-end",justifyContent:"space-between",pointerEvents:"none"},children:[(0,s.jsxs)("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.22em",color:"rgba(255,255,255,.28)"},children:[(0,s.jsx)("strong",{ref:V,style:{fontSize:19,fontWeight:900,color:"rgba(255,255,255,.55)"},children:"01"})," ","/ 04"]}),(0,s.jsx)("div",{ref:$,style:{fontSize:10,fontWeight:600,letterSpacing:"0.22em",textTransform:"uppercase",color:"rgba(255,255,255,.28)",textAlign:"right",transition:"opacity .4s",opacity:0}})]}),(0,s.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",bottom:0,left:0,right:0,height:2,background:"rgba(255,255,255,.07)",zIndex:6},children:(0,s.jsx)("div",{ref:G,style:{height:"100%",width:0,background:"#cc1424",boxShadow:"0 0 10px rgba(204,20,36,.65)"}})}),(0,s.jsx)("div",{ref:Z,style:{position:"fixed",top:140,left:"50%",transform:"translate(-50%, -50%)",zIndex:20,pointerEvents:"none",transition:"opacity .40s"},children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,background:"rgba(0,16,58,.55)",border:"1px solid rgba(255,255,255,.35)",borderRadius:999,padding:"10px 20px 10px 22px",backdropFilter:"blur(8px)",boxShadow:"0 4px 20px rgba(0,10,40,.35)"},children:[(0,s.jsx)("span",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.18em",textTransform:"uppercase",color:"rgba(255,255,255,.92)",whiteSpace:"nowrap"},children:O("scrollDown")}),(0,s.jsx)("span",{style:{width:18,height:28,flexShrink:0,display:"block",position:"relative",border:"2px s
1olid rgba(255,255,255,.85)",borderRadius:10},children:(0,s.jsx)("span",{style:{position:"absolute",top:5,left:"50%",width:3,height:6,background:"#fff",borderRadius:2,transform:"translateX(-50%)",animation:"careerHeroMouseDot 1.6s ease-in-out infinite"}})})]})}),(0,s.jsxs)("button",{ref:K,type:"button","aria-label":O("skipAriaLabel"),onClick:()=>{let e=document.getElementById("open-positions");if(!e)return;let t=document.querySelector("header"),n=t?t.getBoundingClientRect().height:88,s=e.getBoundingClientRect(),r=window.scrollY+s.top-n-16;window.scrollTo(0,Math.max(r,0))},style:{position:"absolute",top:100,right:32,zIndex:7,display:"flex",alignItems:"center",gap:8,background:"rgba(0,20,72,.35)",border:"1px solid rgba(255,255,255,.30)",borderRadius:999,padding:"8px 16px",fontSize:11,fontWeight:600,letterSpacing:"0.12em",textTransform:"uppercase",color:"rgba(255,255,255,.75)",backdropFilter:"blur(6px)",cursor:"pointer",pointerEvents:"auto"},children:[O("skip"),(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{width:13,height:13},children:[(0,s.jsx)("polygon",{points:"5,4 15,12 5,20"}),(0,s.jsx)("line",{x1:"19",y1:"5",x2:"19",y2:"19"})]})]})]}),(0,s.jsx)("style",{children:"\n @keyframes careerHeroMouseDot {\n 0% { opacity:1; transform:translate(-50%,0); }\n 70% { opacity:0; transform:translate(-50%,10px); }\n 100% { opacity:0; transform:translate(-50%,10px); }\n }\n "})]})}function c(){return{position:"absolute",inset:0,zIndex:4,opacity:0,pointerEvents:"none",willChange:"opacity, transform"}}function u(){return{...c(),display:"flex",alignItems:"flex-end",padding:"0 80px 100px"}}function x(e){let{children:t}=e;return t?(0,s.jsxs)("div",{style:{fontSize:10,fontWeight:700,letterSpacing:"0.30em",textTransform:"uppercase",color:"#cc1424",display:"flex",alignItems:"center",gap:10,marginBottom:18},children:[t,(0,s.jsx)("span",{style:{display:"block",width:40,height:1,background:"#cc1424",opacity:.6}})]}):null}function p(e){let{children:t}=e;return t?(0,s.jsx)("h2",{style:{fontFamily:"'HyundaiSans','Inter',sans-serif",fontSize:"clamp(36px,5.8vw,78px)",fontWeight:800,lineHeight:1.04,letterSpacing:"-0.02em",color:"#fff",maxWidth:680,marginBottom:22,whiteSpace:"pre-line"},children:t}):null}function m(e){let{children:t}=e;return t?(0,s.jsx)("p",{style:{fontSize:"clamp(14px,1.35vw,17px)",fontWeight:400,lineHeight:1.7,color:"rgba(255,255,255,.55)",maxWidth:500,marginBottom:32},children:t}):null}function h(e){let{children:t}=e;return(0,s.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:"rgba(255,255,255,.14)",border:"1px solid rgba(255,255,255,.30)",borderRadius:4,padding:"6px 14px",marginBottom:18,fontSize:11,fontWeight:600,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(255,255,255,.88)",backdropFilter:"blur(6px)"},children:[(0,s.jsx)("span",{style:{fontSize:9,color:"#cc1424"},children:"â"}),t]})}},14104:(e,t,n)=>{Promise.resolve().then(n.bind(n,98063)),Promise.resolve().then(n.bind(n,97989)),Promise.resolve().then(n.t.bind(n,21755,23)),Promise.resolve().then(n.t.bind(n,40412,23)),Promise.resolve().then(n.bind(n,66149)),Promise.resolve().then(n.bind(n,91723)),Promise.resolve().then(n.bind(n,13744)),Promise.resolve().then(n.bind(n,35887)),Promise.resolve().then(n.bind(n,89491)),Promise.resolve().then(n.bind(n,26630)),Promise.resolve().then(n.bind(n,84648)),Promise.resolve().then(n.bind(n,62682)),Promise.resolve().then(n.bind(n,51388)),Promise.resolve().then(n.bind(n,15229)),Promise.resolve().then(n.bind(n,7419)),Promise.resolve().then(n.bind(n,59967)),Promise.resolve().then(n.bind(n,95311)),Promise.resolve().then(n.bind(n,37287)),Promise.resolve().then(n.bind(n,21791)),Promise.resolve().then(n.bind(n,50983))},15229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(4110),r=n(43422),l=n(69928);function a(e){var t;let{sections:n}=e,[a,i]=(0,r.useState)(null==(t=n[0])?void 0:t.anchor);return(0,r.useEffect)(()=>{function e(){var e;let t=window.scrollY+120,s=null==(e=n[0])?void 0:e.anchor;for(let e of n){let n=document.getElementById(e.anchor);n&&n.offsetTop<=t&&(s=e.anchor)}i(s)}return window.addEventListener("scroll",e,{passive:!0}
1),e(),()=>window.removeEventListener("scroll",e)},[n]),(0,s.jsx)("nav",{className:"hidden lg:block lg:w-1/5 pr-6 text-left lg:sticky lg:top-8 lg:self-start",children:(0,s.jsx)("ul",{className:"space-y-5",children:n.map(e=>{let{label:t,anchor:n}=e;return(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:()=>(e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})})(n),className:(0,l.QP)("text-subtext cursor-pointer font-semibold text-base leading-normal transition text-left w-full",a===n?"text-mobis-accent":"text-subtext"),children:t})},"".concat(t,"-").concat(n))})})})}},17370:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var s=n(4110),r=n(43422),l=n(47733),a=n(56594);function i(e){let{onVerify:t,onExpire:n,onError:i,className:o=""}=e,d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{if((0,a.z)())return void u(!0);let e=()=>{u(!0)};return window.addEventListener("cookieConsentAccepted",e),()=>{window.removeEventListener("cookieConsentAccepted",e)}},[]),c)?(0,s.jsx)("div",{className:o,children:(0,s.jsx)(l.A,{ref:d,sitekey:"6LezI3csAAAAAE3dnKpaH5EURXR83njnBZdYOg96",onChange:e=>{t(e)},onExpired:()=>{null==n||n()},onErrored:()=>{null==i||i()},theme:"light",size:"normal"})}):null}},21791:(e,t,n)=>{"use strict";n.d(t,{Accordion:()=>i,AccordionContent:()=>c,AccordionItem:()=>o,AccordionTrigger:()=>d});var s=n(4110);n(43422);var r=n(70058),l=n(41446),a=n(98548);function i(e){let{...t}=e;return(0,s.jsx)(r.bL,{"data-slot":"accordion",...t})}function o(e){let{className:t,...n}=e;return(0,s.jsx)(r.q7,{"data-slot":"accordion-item",className:(0,a.cn)("border-b-light last:border-b-0",t),...n})}function d(e){let{className:t,children:n,...i}=e;return(0,s.jsx)(r.Y9,{className:"flex",children:(0,s.jsxs)(r.l9,{"data-slot":"accordion-trigger",className:(0,a.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...i,children:[n,(0,s.jsx)(l.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function c(e){let{className:t,children:n,...l}=e;return(0,s.jsx)(r.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...l,children:(0,s.jsx)("div",{className:(0,a.cn)("pt-0 pb-4",t),children:n})})}},25773:(e,t,n)=>{"use strict";n.d(t,{T:()=>l});var s=n(4110);n(43422);var r=n(98548);function l(e){let{className:t,...n}=e;return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...n})}},26630:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var s=n(4110),r=n(43422),l=n(5844),a=n(98548),i=n(57544);(0,l.unstable_cache)(async function(){let e=i.env.TEAMIO_API_KEY||"f81162750ee60accf9baad0c95b112e2e4bb014b111abd91c1bb522ed489a0d9",t=i.env.TEAMIO_WIDGET_ID||i.env.NEXT_PUBLIC_TEAMIO_WIDGET_ID||"0b8b5236-ddda-413f-9fa5-1c68e001a281";if(!e)return console.error("TEAMIO_API_KEY is not set"),[];try{var n,s,r,l,o;let i=await fetch("https://api.capybara.lmc.cz/api/graphql/widget",{method:"POST",headers:{"Content-Type":"application/json","x-api-key":e},body:JSON.stringify({operationName:"LISTING_QUERY",variables:{widgetId:t,page:1},query:"\nquery LISTING_QUERY($widgetId: ID!, $page: Int) {\n widget(id: $widgetId) {\n jobAdList(page: $page, filters: [], rps: 500) {\n groupedJobAds {\n jobAds {\n id\n title\n validFrom\n suitableForGraduate\n fields\n professions\n locations { city cityPart district region country }\n salary { min max period currency }\n teaser\n employer { companyName }\n parameters { employmentTypes }\n impressionId\n }\n }\n paginator { currentPage lastPage totalNumberOfItems }\n }\n }\n}\n"})});if(!i.ok)return console.error("Capybara API error:",i.status),[];let d=await i.json();return(null!=(o=null==d||null==(l=d.data)||null==(r=l.widget)||null==(s=r.jobAdList)||null==(n=s.groupedJobAds)?void 0:n.jobAds)?o:[]).map(e=>{var t,n,s,r,l,i,o,d,c,u,x,p,m,h,f,g,b;return{id:String(e.id),title:(0,a.jT)(null!=(l=e.title)?l:""),city:null!=(i=null==(n=e.locations)||null==(t=n[0])?void 0:t.city)?i:"",locations:null!=(o=e.locations)?o:[],salary:null!=(d=e.salary)?d:null,teaser:null!=(c=e.teaser)?c:null,fields:null!=(u=e.fields)?u:[],professions:null!=(x=e.professions)?x:[],validFrom:null!=(p=e.validFrom)?p:"",isAdmin:(null!=(m=e.fields)?m:[]).includes("Administrativa"),employer:null!=(h=null==(s=e.employer)?void 0:s.companyName)?h:"",employmentTypes:null!=(f=null==(r=e.parameters)?void 0:r.employmentTypes)?f:[],suitableForGraduate:null!=(g=e.suitableForGraduate)&&g,impressionId:null!=(b=e.impressionId)?b:""}})}catch(e){return console.error("getPositions error:",e),[]}},["capybara-positions","v2-decode-entities"],{tags:["positions"],revalidate:600});var o=n(98055);function d(e){var t,n;let{plantName:l,workerPositions:i,adminPositions:d,workerLabel:c,adminLabel:u,viewLabel:x,noPositionsLabel:p,showWorkerPositions:m=!0,showAdminPositions:h=!0,mapEmbedUrl:f,address:g}=e,b=[m?["worker",c]:null,h?["admin",u]:null].filter(e=>null!==e),[v,j]=(0,r.useState)(null!=(n=null==(t=b[0])?void 0:t[0])?n:"worker"),y="worker"===v?i:d;return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[f&&(0,s.jsx)("div",{className:"relative w-full aspect-[4/3] overflow-hidden rounded bg-[#eef1f7]",children:(0,s.jsx)("iframe",{src:f,className:"absolute inset-0 w-full h-full border-0",loading:"lazy",allowFullScreen:!0,style:{pointerEvents:"none"}})}),(0,s.jsx)("h3",{className:"text-xl font-extrabold text-dark",children:l}),g&&(0,s.jsx)(o.s,{data:g,className:"text-[13px] leading-snug text-subtext [&_p]:m-0"}),0===b.length?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex gap-2.5",children:b.map(e=>{let[t,n]=e,r=v===t;return(0,s.jsx)("button",{type:"button",onClick:()=>j(t),className:"flex-1 py-2.5 px-3 text-[13px] font-bold rounded-md border-2 text-center cursor-pointer transition-colors ".concat(r?"bg-[#003C8F] text-white border-[#003C8F] hover:bg-[#002268] hover:border-[#002268]":"bg-white text-[#003C8F] border-[#003C8F] hover:bg-[#eef3fb]"),children:n},t)})}),(0,s.jsx)("div",{className:"border-t border-border",children:0===y.length?(0,s.jsx)("p",{className:"py-4 text-sm text-subtext",children:p}):y.map(e=>{var t,n;let r=function(e){if(!e)return null;let{min:t,max:n,period:s,currency:r}=e;if(!t&&!n)return null;let l=[];
1return t&&n?l.push("".concat(t.toLocaleString("cs-CZ")," â ").concat(n.toLocaleString("cs-CZ"))):t?l.push(t.toLocaleString("cs-CZ")):n&&l.push(n.toLocaleString("cs-CZ")),r&&l.push(r),s&&l.push("/ ".concat(s)),l.join(" ")}(e.salary),l=null!=(n=null!=(t=e.detailUrl)?t:e.applyUrl)?n:null;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 py-3 border-b border-border last:border-b-0",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[3px] flex-1 min-w-0",children:[(0,s.jsx)("span",{className:"text-[14px] font-bold text-dark leading-[1.4]",children:(0,a.jT)(e.title)}),r&&(0,s.jsx)("span",{className:"text-[13px] font-semibold text-[#003C8F]",children:r})]}),(0,s.jsx)("a",{href:null!=l?l:"?r=detail&id=".concat(e.id,"&impressionId=").concat(e.impressionId,"#open-positions"),...l?{target:"_blank",rel:"noopener noreferrer"}:{},className:"shrink-0 px-4 py-0 bg-[#cc1424] hover:bg-[#a01020] text-white text-[12px] font-bold rounded-md no-underline whitespace-nowrap transition-colors",children:x})]},e.id)})})]})]})}},31751:(e,t,n)=>{"use strict";n.d(t,{bq:()=>u,eb:()=>p,gC:()=>x,l6:()=>d,yv:()=>c});var s=n(4110);n(43422);var r=n(98354),l=n(41446),a=n(62896),i=n(76747),o=n(98548);function d(e){let{...t}=e;return(0,s.jsx)(r.bL,{"data-slot":"select",...t})}function c(e){let{...t}=e;return(0,s.jsx)(r.WT,{"data-slot":"select-value",...t})}function u(e){let{className:t,size:n="default",children:a,...i}=e;return(0,s.jsxs)(r.l9,{"data-slot":"select-trigger","data-size":n,className:(0,o.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i,children:[a,(0,s.jsx)(r.In,{asChild:!0,children:(0,s.jsx)(l.A,{className:"size-4 opacity-50"})})]})}function x(e){let{className:t,children:n,position:l="popper",...a}=e;return(0,s.jsx)(r.ZL,{children:(0,s.jsxs)(r.UC,{"data-slot":"select-content",className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto border border-light shadow-md","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...a,children:[(0,s.jsx)(m,{}),(0,s.jsx)(r.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),(0,s.jsx)(h,{})]})})}function p(e){let{className:t,children:n,...l}=e;return(0,s.jsxs)(r.q7,{"data-slot":"select-item",className:(0,o.cn)("focus:bg-light focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...l,children:[(0,s.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,s.jsx)(r.VF,{children:(0,s.jsx)(a.A,{className:"size-4"})})}),(0,s.jsx)(r.p4,{children:n})]})}function m(e){let{className:t,...n}=e;return(0,s.jsx)(r.PP,{"data-slot":"select-scroll-up-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...n,children:(0,s.jsx)(i.A,{className:"size-4"})})}function h(e){let{className:t,...n}=e;return(0,s.jsx)(r.wn,{"data-slot":"select-scroll-down-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...n,children:(0,s.jsx)(l.A,{className:"size-4"})})}},35887:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(4110),r=n(55505),l=n(89244),a=n(45431);function i(e){let{apiKey:t,widgetId:n}=e,i=(0,l.useSearchParams)(),o=(0,l.usePathname)(),d=(0,a.c3)("career.positions"),c=i.get("r"),u="detail"===c||"reply"===c,x=JSON.stringify({apiKey:t,widgetId:n,selector:"#capybara",themes:["base"]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.__LMC_CAREER_WIDGET__=".concat(x)}}),u&&(0,s.jsxs)("a",{href:"".concat(o,"#open-positions"),className:"inline-flex items-center gap-2 text-sm font-bold text-dark hover:underline mb-4",children:["â ",d("backToList")]}),(0,s.jsx)("div",{id:"capybara",className:u?"":"hidden"}),(0,s.jsx)(r.default,{src:"https://snippet.capybara.lmc.cz/js/widget-3.x.x.min.js",strategy:"afterInteractive",async:!0,defer:!0,charSet:"UTF-8"})]})}},37287:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var s=n(4110),r=n(43422),l=n(7319),a=n(45431),i=n(57544);
1let o=(0,r.memo)(function(e){let{mapEmbedUrl:t,image:n,name:o,className:d="",markers:c}=e,u=(0,a.c3)("map"),[x,p]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),v=(0,r.useRef)(null);return((0,r.useEffect)(()=>{let e=new IntersectionObserver(t=>{let[n]=t;n.isIntersecting&&(g(!0),e.disconnect())},{threshold:.1,rootMargin:"50px"});return b.current&&e.observe(b.current),()=>e.disconnect()},[]),(0,r.useEffect)(()=>{if(f&&!x&&!m){if(c&&c.length>0){let e=i.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY;if(!e)return void h(!0);let t="google-maps-js",n=document.getElementById(t),s=()=>{let{google:e}=window;if(!e||!v.current)return;let t=new e.maps.Map(v.current,{mapId:"DEMO_MAP",zoom:8,center:{lat:c[0].lat,lng:c[0].lng}}),n=new e.maps.LatLngBounds;c.forEach(s=>{let r={lat:s.lat,lng:s.lng};n.extend(r),e.maps.marker&&e.maps.marker.AdvancedMarkerElement?new e.maps.marker.AdvancedMarkerElement({map:t,position:r,title:s.title||o}):new e.maps.Marker({map:t,position:r,title:s.title||o})}),c.length>1&&t.fitBounds(n,64),p(!0)};if(n)window.google?s():n.addEventListener("load",s);else{let n=document.createElement("script");n.id=t,n.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=marker"),n.async=!0,n.defer=!0,n.onload=s,n.onerror=()=>h(!0),document.body.appendChild(n)}return}if(t){let e=setTimeout(()=>p(!0),200);return()=>clearTimeout(e)}}},[f,t,x,m,c,o]),(!t&&!(c&&c.length)||m)&&n)?(0,s.jsx)("div",{className:"relative w-full aspect-[4/3] overflow-hidden bg-gray-100 ".concat(d),children:(0,s.jsx)(l.default,{src:n.url,alt:n.alt,fill:!0,className:"object-cover",sizes:"(max-width: 1024px) 100vw, (max-width: 1536px) 33vw, 33vw",priority:!1,quality:85})}):t||c&&c.length?(0,s.jsx)("div",{ref:b,className:"relative w-full aspect-[4/3] overflow-hidden bg-gray-100 ".concat(d),children:x&&f?c&&c.length>0?(0,s.jsx)("div",{ref:v,className:"w-full h-full"}):(0,s.jsx)("iframe",{src:t,width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",onError:()=>{h(!0),p(!1)},className:"w-full h-full",title:"".concat(u("mapOf")," ").concat(o)}):(0,s.jsxs)("div",{className:"relative w-full h-full bg-gradient-to-br from-gray-100 to-gray-200 flex items-center justify-center",children:[n?(0,s.jsx)(l.default,{src:n.url,alt:n.alt,fill:!0,className:"object-cover",sizes:"(max-width: 1024px) 100vw, (max-width: 1536px) 33vw, 33vw",priority:!1}):null,f&&!x&&!m&&(0,s.jsx)("div",{className:"absolute inset-0 bg-black/20 flex items-center justify-center",children:(0,s.jsx)("div",{className:"bg-white/90 px-4 py-2 shadow-lg",children:(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-gray-300 border-t-gray-600 rounded-full animate-spin"}),(0,s.jsx)("span",{className:"text-sm text-gray-700",children:u("loadingMap")})]})})})]})}):(0,s.jsx)("div",{className:"relative w-full aspect-[4/3] overflow-hidden bg-gray-100 flex items-center justify-center ".concat(d),children:(0,s.jsx)("p",{className:"text-gray-500 text-sm",children:u("noMap")})})})},50983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Tabs:()=>a,TabsContent:()=>d,TabsList:()=>i,TabsTrigger:()=>o});var s=n(4110);n(43422);var r=n(20107),l=n(98548);function a(e){let{className:t,...n}=e;return(0,s.jsx)(r.bL,{"data-slot":"tabs",className:(0,l.cn)("flex flex-col gap-2",t),...n})}function i(e){let{className:t,...n}=e;return(0,s.jsx)(r.B8,{"data-slot":"tabs-list",className:(0,l.cn)("text-muted-foreground inline-flex h-9 w-fit gap-6 items-center justify-center md:gap-12 ",t),...n})}function o(e){let{className:t,...n}=e;return(0,s.jsx)(r.l9,{"data-slot":"tabs-trigger",className:(0,l.cn)("text-base md:text-lg text-subtext border-transparent border-b-1 md:border-b-2 data-[state=active]:border-mobis-accent data-[state=active]:text-mobis-accent inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center py-2 leading-9 font-semibold whitespace-nowrap transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 leading-17/2",t),...n})}function d(e){let{className:t,...n}=e;return(0,s.jsx)(r.UC,{"data-slot":"tabs-content",className:(0,l.cn)("flex-1 outline-none",t),...n})}}
1,51388:(e,t,n)=>{"use strict";n.d(t,{NewsListClient:()=>v});var s=n(4110),r=n(7319),l=n(43422),a=n(96571),i=n(90999),o=n(1278),d=n(98055),c=n(45431),u=n(71025),x=n(89244);let p=e=>{let{slug:t,title:n,newsDescription:a,featuredImage:u,location:p,updatedAt:m,publishDate:h}=e,f=(0,c.c3)("buttons"),g=(0,x.useRouter)(),b=l.useCallback(()=>{g.push("/news/".concat(t))},[g,t]);return(0,s.jsxs)("article",{role:"button",tabIndex:0,"aria-label":"Open news: ".concat(n),onClick:b,className:"flex flex-col cursor-pointer gap-4 w-full",children:[(0,s.jsx)("div",{className:"aspect-4/5 w-full overflow-hidden",children:u&&(0,s.jsx)(r.default,{src:u.url,alt:u.alt,className:"w-full h-full object-cover",height:u.height,width:u.width,quality:85})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between w-full text-sm",children:[(0,s.jsx)("div",{className:"flex gap-3 items-center text-subtext",children:(0,s.jsx)("p",{children:new Date(h||m).toLocaleDateString("en-ca")})}),p&&p.length>0&&(0,s.jsx)("div",{className:"text-subtext text-right self-center",onClick:e=>e.stopPropagation(),children:p.map(e=>(0,s.jsx)(o.N_,{href:e.name,className:"text-subtext",children:e.name},e.id))})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,s.jsx)("h3",{className:"font-inter font-semibold text-base text-dark leading-tight",children:n}),(0,s.jsx)("div",{className:"text-sm text-subtext leading-relaxed",children:(0,s.jsx)(d.s,{data:a})})]})]}),(0,s.jsx)("div",{className:"mt-auto",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,s.jsx)(o.N_,{href:"/news/".concat(t),prefetch:!0,children:(0,s.jsx)(i.$,{variant:"secondary",children:f("readMore")})})})]})},m=e=>{var t;let{newsItems:n,category:r}=e,[i,o]=(0,l.useState)(n.docs),[d,x]=(0,l.useState)(n.hasNextPage),[m,h]=(0,l.useState)(n.page||1),[f,g]=(0,l.useState)(!1),b=(0,c.c3)("news"),v=(0,u.Ym)(),j=null!=(t=n.limit)?t:12,y=(0,l.useCallback)(async()=>{if(!f&&d){g(!0);try{let e=m+1,t=new URLSearchParams({limit:j.toString(),page:e.toString(),locale:v});r&&t.append("category",r);let n=await fetch("/api/news?".concat(t)),s=await n.json();s&&!s.error&&(o(e=>[...e,...s.docs]),x(s.hasNextPage),h(e))}catch(e){console.error("Error loading more news:",e)}finally{g(!1)}}},[m,d,f,r,v,j]),{ref:w,inView:N}=(0,a.Wx)({threshold:0,rootMargin:"100px"});return(0,l.useEffect)(()=>{N&&d&&!f&&y()},[N,d,f,y]),(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-12 w-full auto-rows-start",children:i.map((e,t)=>(0,s.jsx)(p,{...e},"".concat(e.id,"-").concat(t)))}),d&&(0,s.jsx)("div",{ref:w,className:"flex justify-center py-8",children:f?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-mobis-accent"}),(0,s.jsx)("span",{className:"text-subtext",children:b("loadingMoreNews")})]}):(0,s.jsx)("div",{className:"h-6"})}),!d&&i.length>0&&(0,s.jsx)("div",{className:"text-center py-8",children:(0,s.jsx)("p",{className:"text-subtext",children:b("endOftheNews")})})]})};var h=n(50983),f=n(8106),g=n(64729);async function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=new URLSearchParams;e&&s.append("category",e),t>1&&s.append("page",t.toString()),s.append("limit",n.toString());let r=await fetch("/api/news?".concat(s.toString()));if(!r.ok)throw Error("Failed to fetch news");return r.json()}function v(e){let{initialNewsItems:t,initialCategories:n,postsPerPage:r}=e,a=(0,x.useSearchParams)(),i=(null==a?void 0:a.get("category"))||void 0,d=parseInt((null==a?void 0:a.get("page"))||"1"),u=(0,c.c3)("news"),{data:p,isLoading:v,error:j,refetch:y,invalidateNewsCache:w}=function(e){let{categorySlug:t,page:n=1,limit:s=10,initialData:r,enabled:a=!0}=e,i=(0,g.jE)(),o=(0,l.useCallback)(()=>{i.invalidateQueries({queryKey:["news"]})},[i]);return{...(0,f.I)({queryKey:["news",t||"all",n,s],queryFn:()=>b(t,n,s),initialData:r,enabled:a,staleTime:0,gcTime:3e5,refetchOnWindowFocus:!0,refetchOnMount:!0}),invalidateNewsCache:o}}({categorySlug:i,page:d,limit:r,initialData:1!==d||i?void 0:t}),[N]=(0,l.useState)(n),[k,S]=(0,l.useState)(!1),C=(0,l.useRef)(i);return(0,l.useEffect)(()=>{C.current!==i&&(S(!0),i&&w(),setTimeout(()=>{y().finally(()=>{S(!1)})}
1,0),C.current=i)},[i,w,y]),(0,s.jsx)("div",{className:"content-container",children:N.docs.length>0&&(0,s.jsx)("div",{children:(0,s.jsxs)(h.Tabs,{value:i||"all",className:"space-y-4",children:[(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)(h.TabsList,{className:"w-max h-max min-w-full justify-start flex-0",children:[(0,s.jsx)(h.TabsTrigger,{value:"all",asChild:!0,className:"flex-0 whitespace-nowrap",children:(0,s.jsx)(o.N_,{href:"?",scroll:!1,className:"no-underline text-inherit font-inherit",children:u("allCategories")})}),N.docs.map(e=>(0,s.jsx)(h.TabsTrigger,{value:e.slug,className:"flex-0 whitespace-nowrap",asChild:!0,children:(0,s.jsx)(o.N_,{href:"?category=".concat(encodeURIComponent(e.slug)),scroll:!1,children:e.name})},e.id))]})}),(0,s.jsx)(h.TabsContent,{value:i||"all",className:"md:mt-18 mt-8",children:v||k?(0,s.jsx)("div",{className:"flex justify-center items-center py-20",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-mobis-accent"}),(0,s.jsx)("span",{className:"text-subtext",children:"Loading news..."})]})}):j?(0,s.jsx)("div",{className:"flex justify-center items-center py-20",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-red-500 mb-2",children:"Failed to load news"}),(0,s.jsx)("button",{onClick:()=>y(),className:"text-mobis-accent hover:underline",children:"Try again"})]})}):(0,s.jsx)(m,{newsItems:p,category:i})},i||"all")]})})})}},56594:(e,t,n)=>{"use strict";function s(){let e=document.cookie.split("; ").find(e=>e.startsWith("".concat("cookie-consent","=")));return!!e&&"true"===decodeURIComponent(e.split("=")[1])}n.d(t,{z:()=>s})},59967:(e,t,n)=>{"use strict";n.d(t,{ModulesSection:()=>u});var s=n(4110),r=n(7319),l=n(21755),a=n.n(l),i=n(50983),o=n(98055);function d(e){let{module:t}=e;return(0,s.jsx)(a(),{className:"flex justify-center",href:t.href||"#",children:(0,s.jsx)("div",{className:"rounded-full aspect-square border border-foreground
1/90 flex items-center justify-center text-center p-4 w-32 h-32 cursor-pointer hover:border-mobis-accent",children:(0,s.jsx)("span",{className:"font-semibold text-mobis-accent leading-7 text-sm",children:t.name})})})}function c(e){var t;let{plant:n}=e,l=(null!=(t=n.images)?t:[]).map(e=>null==e?void 0:e.plantImage).filter(e=>!!(e&&"object"==typeof e&&"url"in e));return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[l.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:l.map((e,t)=>(0,s.jsx)("div",{className:"relative w-full aspect-video bg-gray-100 overflow-hidden",children:(0,s.jsx)(r.default,{src:e.url||"",alt:e.alt||"".concat(n.name||""," - Image ").concat(t+1),fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 33vw",quality:85})},e.id||t))}),n.description&&(0,s.jsx)("p",{className:"text-sm md:text-base leading-relaxed text-foreground",children:n.description}),n.shortText&&(0,s.jsx)(o.s,{data:n.shortText}),n.modules&&n.modules.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-4 md:gap-6 pt-4",children:n.modules.filter(e=>!!(null==e?void 0:e.name)).map(e=>{var t;return(0,s.jsx)(d,{module:e},null!=(t=e.id)?t:e.name)})})]})}function u(e){var t,n;let{title:r,plants:l}=e,a=(null!=l?l:[]).filter(Boolean);return 0===a.length?null:(0,s.jsxs)("div",{className:"flex flex-col gap-8 lg:max-w-full lg:mx-auto",children:[(0,s.jsx)("h2",{className:"font-extrabold text-3xl leading-[38.4px] text-foreground",children:r}),(0,s.jsxs)(i.Tabs,{defaultValue:(null==(t=a[0])?void 0:t.name)||(null==(n=a[0])?void 0:n.id)||"0",className:"w-full",children:[(0,s.jsx)("div",{className:"overflow-x-auto h-max",children:(0,s.jsx)(i.TabsList,{className:"mb-8",children:a.map((e,t)=>{let n=e.tabLabel||e.name,r=e.name||e.id||String(t);return(0,s.jsx)(i.TabsTrigger,{value:r,children:n},r)})})}),a.map((e,t)=>{let n=e.name||e.id||String(t);return(0,s.jsx)(i.TabsContent,{value:n,children:(0,s.jsx)(c,{plant:e})},n)})]})]})}},62682:(e,t,n)=>{"use strict";n.d(t,{default:()=>w});var s=n(4110),r=n(90999),l=n(264),a=n(97617),i=n(87247),o=n(31751),d=n(25773),c=n(43422),u=n(10667),x=n(38350),p=n(69551),m=n(63582);let h=(0,m.createServerReference)("407c5b618f8c620b7052011fdab73da94fe427fd0e",m.callServer,void 0,m.findSourceMapURL,"submitContact");var f=n(17174),g=n(68467);let b=f.Ik({name:f.Yj().min(2,"Name is required"),email:f.Rp("Invalid email"),phone:f.Yj().min(5,"Phone is required"),plant:f.Yj().min(1,"Please select a plant"),department:f.Yj().min(1,"Please select department"),type:f.Yj().min(1,"Please select who you are"),message:f.Yj().min(5,"Message is required"),privacy:g.zM().refine(e=>e,{message:"You must agree to Personal Information Processing"})});var v=n(45431),j=n(17370);let y=(0,p.u)(b);function w(e){var t,n,p,m,f,g,b,w,N;let{locations:k}=e,[S,C]=c.useState(!1),[I,z]=c.useState(null),{control:E,register:T,handleSubmit:P,watch:A,formState:{errors:L},reset:_}=(0,u.mN)({resolver:y,defaultValues:{name:"",email:"",phone:"",plant:(null==k||null==(t=k[0])?void 0:t.id.toString())||"",department:"",type:"",message:"",privacy:!1}}),R=(0,v.c3)("contactForm"),F=c.useMemo(()=>[{value:"current-employee",label:R("contactTypeCurrentEmployee")},{value:"prospective-employee",label:R("contactTypeProspectiveEmployee")},{value:"business-partner",label:R("contactTypeBusinessPartner")},{value:"customer",label:R("contactTypeCustomer")},{value:"other",label:R("contactTypeOther")}],[R]);function M(e){return"object"==typeof e&&null!==e&&"id"in e&&"departmentName"in e&&"string"==typeof e.departmentName}let W=A("plant"),O=c.useMemo(()=>{var e,t;let n=null==k?void 0:k.find(e=>String(e.id)===String(W));if(!n)return[];let s=null!=(t=(null!=(e=n.contactGroups)?e:[]).flatMap(e=>{var t;let n=e.groupName;return(null!=(t=e.departments)?t:[]).filter(M).map(e=>{var t,s;return{id:String(e.id),label:(null!=(t=e.departmentName)?t:"").trim()||"Unnamed department",displayOrder:null!=(s=e.displayOrder)?s:1e6,groupName:n}})}))?t:[],r=new Map;for(let e of s){let t=r.get(e.id);(!t||e.displayOrder<t.displayOrder)&&r.set(e.id,e)}return Array.from(r.values()).sort((e,t)=>
1e.displayOrder-t.displayOrder)},[k,W]),B=async e=>{let t=new FormData;Object.entries(e).forEach(e=>{let[n,s]=e;return t.append(n,String(s))});let n=k.find(t=>String(t.id)===String(e.plant)),r=O.find(t=>String(t.id)===String(e.department)),l=String(e.department),a=e=>e.flatMap(e=>{var t;return(null!=(t=e.contactGroups)?t:[]).flatMap(e=>{var t;let n="string"==typeof e.groupName?e.groupName:void 0;return(null!=(t=e.departments)?t:[]).filter(M).map(e=>({department:e,groupName:n}))})}),i=n?a([n]).find(e=>{let{department:t}=e;return String(t.id)===l}):void 0,o=null!=i?i:a(k).find(e=>{let{department:t}=e;return String(t.id)===l});if(n){let e=[n.name,n.additionalType].filter(e=>!!e).join(" ").trim();e&&t.set("plant",e)}if(o||r){var d,c,u;let e=(null!=(c=null!=(d=null==o?void 0:o.department.departmentName)?d:null==r?void 0:r.label)?c:"").trim(),n=null!=(u=null==o?void 0:o.groupName)?u:null==r?void 0:r.groupName,s=n&&e?"".concat(e," (").concat(n,")"):e;s&&t.set("department",s)}if(I&&t.append("recaptchaToken",I),(null==o?void 0:o.department.email)&&t.append("departmentEmail",o.department.email),!(await h(t)).ok)return void x.oR.error(R("submissionFailed"));x.oR.success((0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h6",{children:R("successTitle")}),(0,s.jsx)("span",{children:R("successMessage")})]})),_()};return(0,s.jsxs)("form",{className:"space-y-6 w-full lg:max-w-[650px]",onSubmit:P(B),children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-6 lg:gap-8",children:[(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"name",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("name")}),(0,s.jsx)(a.p,{id:"name",type:"text",placeholder:R("namePlaceholder"),...T("name"),className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0"}),(null==(n=L.name)?void 0:n.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:L.name.message}):null]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"email",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("email")}),(0,s.jsx)(a.p,{id:"email",type:"email",placeholder:R("emailPlaceholder"),...T("email"),className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0"}),(null==(p=L.email)?void 0:p.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.email.message)}):null]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"phone",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("phone")}),(0,s.jsx)(a.p,{id:"phone",type:"tel",...T("phone"),placeholder:"723 712 239",className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0"}),(null==(m=L.phone)?void 0:m.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.phone.message)}):null]})]}),(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"plant",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("plant")}),(0,s.jsx)(u.xI,{name:"plant",control:E,render:e=>{let{field:t}=e;return(0,s.jsxs)(o.l6,{value:t.value,onValueChange:t.onChange,children:[(0,s.jsx)(o.bq,{className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0 w-full",children:(0,s.jsx)(o.yv,{placeholder:"Nošovice [batteries]"})}),(0,s.jsx)(o.gC,{children:null==k?void 0:k.map(e=>(0,s.jsxs)(o.eb,{value:e.id.toString(),children:[e.name," ",e.additionalType]},e.id))})]})}}),(null==(f=L.plant)?void 0:f.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.plant.message)}):null]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"department",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("department")}),(0,s.jsx)(u.xI,{name:"department",control:E,render:e=>{let{field:t}=e;return(0,s.jsxs)(o.l6,{value:t.value,onValueChange:t.onChange,children:[(0,s.jsx)(o.bq,{className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0 w-full",children:(0,s.jsx)(o.yv,{placeholder:R("selectDepartment")})}),(0,s.jsx)(o.gC,{children:O.map(e=>(0,s.jsxs)(o.eb,{value:e.id,children:[e.label,e.groupName?" (".concat(e.groupName,")"):""]},e.id))})]})}}),(null==(g=L.department)?void 0:g.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.department.message)}):null]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"type",className:"text-xs font-normal text-[#242424] leading-[16
1px]",children:R("type")}),(0,s.jsx)(u.xI,{name:"type",control:E,render:e=>{let{field:t}=e;return(0,s.jsxs)(o.l6,{value:t.value,onValueChange:t.onChange,children:[(0,s.jsx)(o.bq,{className:"h-9 px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0 w-full",children:(0,s.jsx)(o.yv,{placeholder:R("typePlaceholder")})}),(0,s.jsx)(o.gC,{children:F.map(e=>(0,s.jsx)(o.eb,{value:e.value,children:e.label},e.value))})]})}}),(null==(b=L.type)?void 0:b.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.type.message)}):null]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.J,{htmlFor:"message",className:"text-xs font-normal text-[#242424] leading-[16px]",children:R("message")}),(0,s.jsx)(d.T,{id:"message",...T("message"),placeholder:R("messagePlaceholder"),className:"h-[236px] px-3 py-[7px] text-sm leading-[20px] border-[#dbdbdb] rounded-[4px] focus:border-[#242424] focus:ring-0 resize-none"}),(null==(w=L.message)?void 0:w.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.message.message)}):null]}),(0,s.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,s.jsx)(u.xI,{name:"privacy",control:E,render:e=>{let{field:t}=e;return(0,s.jsx)(l.S,{id:"privacy",className:"mt-1",checked:t.value,onCheckedChange:t.onChange})}}),(0,s.jsxs)("div",{className:"grid gap-1.5 leading-none",children:[(0,s.jsx)(i.J,{htmlFor:"privacy",className:"text-sm font-normal leading-[27px] text-[#242424]",children:R.rich("privacyAgreement",{span:e=>(0,s.jsx)("span",{className:"text-mobis-accent",children:e})})}),(null==(N=L.privacy)?void 0:N.message)?(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:String(L.privacy.message)}):null]})]}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(j.N,{onVerify:e=>{z(e),C(!!e)},onExpire:()=>{z(null),C(!1)},onError:()=>{z(null),C(!1)},className:"max-w-md"})}),!S&&(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("span",{className:"text-xs text-[#cc1424]",children:"Please complete the reCAPTCHA verification"})}),(0,s.jsx)(r.$,{type:"submit",disabled:!S,variant:"secondary",className:"text-sm px-12 font-semibold transition-colors",children:R("sendMessage")})]})}},84648:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var s=n(4110),r=n(43422),l=n(45431),a=n(98055);function i(e){let{steps:t}=e;return(0,s.jsx)("div",{className:"flex flex-col",children:t.map((e,n)=>{var r;return(0,s.jsxs)("div",{className:"flex gap-6 pb-9 last:pb-0",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center shrink-0",children:[(0,s.jsx)("div",{className:"w-[42px] h-[42px] rounded-full flex items-center justify-center text-[15px] font-extrabold text-white shrink-0",style:{background:"#003C8F"},children:n+1}),n<t.length-1&&(0,s.jsx)("div",{className:"w-[2px] flex-1 mt-1.5 min-h-6",style:{background:"linear-gradient(to bottom, #003C8F 0%, #e5e7eb 100%)"}})]}),(0,s.jsxs)("div",{className:"pt-2",children:[(0,s.jsx)("p",{className:"text-[15px] font-bold text-[#1a1d23] mb-1",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-[14px] text-[#6b7280] leading-[1.65]",children:e.description})]})]},null!=(r=e.id)?r:n)})})}function o(e){let{items:t}=e,[n,l]=(0,r.useState)(null);return(0,s.jsx)("div",{className:"max-w-full",children:t.map((e,t)=>{var r;return(0,s.jsxs)("div",{className:"border-b border-[#e5e7eb]",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>l(n===t?null:t),className:"flex w-full items-center justify-between gap-4 py-5 text-left cursor-pointer",children:[(0,s.jsx)("span",{className:"text-[15px] font-bold text-[#1a1d23]",children:e.question}),(0,s.jsx)("span",{className:"shrink-0 w-[26px] h-[26px] rounded-full flex items-center justify-center text-[18px] font-light text-white transition-transform",style:{background:"#cc1424",transform:n===t?"rotate(45deg)":"rotate(0deg)"},children:"+"})]}),n===t&&(0,s.jsx)("div",{className:"pb-5 text-[14px] text-[#6b7280] leading-[1.7] max-w-[680px] [&_p]:m-0",children:(0,s.jsx)(a.s,{data:e.answer})})]},null!=(r=e.id)?r:t)})})}function d(e){let{value:t,onChange:n,adminLabel:r,workerLabel:l}=e;return(0,s.jsx)("div",{className:"flex w-full mb-12 rounded-[10px] overflow-hidden bg-white border border-[#e5e7eb] shadow-sm",children:[["admin",r],["worker",l]].map(e=>{let[r,l]=e,a=t===r;return(0,s.jsx)("button",{type:"button",onClick:()=>n(r),className:"flex-1 py-3 px-4 text-[13px] transition-colors cursor-pointer border-none ".concat(a?"font-bold text-white":"font-semibold text-[#6b7280]"),style:{background:a?"#003C8F":"transparent"},children:l},r)})})}function c(e){let{processTitle:t,processDescription:n,tabAdminLabel:a,tabWorkerLabel:c,adminSteps:u,workerSteps:x,qaTitle:p,qaTabAdminLabel:m,qaTabWorkerLabel:h,qaItems:f,qaItemsWorker:g}=e,b=(0,l.c3)("career.positions"),[v,j]=(0,r.useState)("admin"),[y,w]=(0,r.useState)("admin"),N=u&&u.length>0||x&&x.length>0,k=f&&f.length>0||g&&g.length>0;if(!N&&!k)return null;let S=a||"Administrativa",C=c||"DÄlnick\xe9 pozice",I=m||S,z=h||C,E="admin"===v?null!=u?u:[]:null!=x?x:[],T="admin"===y?null!=f?f:[]:null!=g?g:[];return(0,s.jsx)("section",{className:"w-full",style:{background:"#f8fafc",color:"#1a1d23"},children:(0,s.jsxs)("div",{className:"container mx-auto grid grid-cols-1 lg:grid-cols-2 lg:grid-rows-[auto_1fr]",children:[N&&(0,s.jsxs)("div",{className:"py-10 px-6 md:px-8 lg:border-r border-[#e0e4ea] lg:row-span-2 lg:grid lg:grid-rows-subgrid",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[13px] font-semibold tracking-[0.05em] uppercase text-[#6b7280] mb-2",children:b("processEyebrow")}),(0,s.jsx)("h2",{className:"text-[2.25rem] font-extrabold text-[#1a1d23] mb-3",children:t||"N\xe1bor a adaptace"}),n&&(0,s.jsx)("p",{className:"text-[16px] text-[#6b7280] leading-[1.7]",children:n})]}),(0,s.jsxs)("div",{className:"mt-10",children:[x&&x.length>
10&&(0,s.jsx)(d,{value:v,onChange:j,adminLabel:S,workerLabel:C}),E.length>0&&(0,s.jsx)(i,{steps:E})]})]}),k&&(0,s.jsxs)("div",{className:"py-10 px-6 md:px-8 lg:row-span-2 lg:grid lg:grid-rows-subgrid",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[13px] font-semibold tracking-[0.05em] uppercase text-[#6b7280] mb-2",children:b("qaEyebrow")}),(0,s.jsx)("h2",{className:"text-[2.25rem] font-extrabold text-[#1a1d23] mb-3",children:p||"N\xe1bor a adaptace v ot\xe1zk\xe1ch a odpovÄd\xedch"})]}),(0,s.jsxs)("div",{className:"mt-10",children:[g&&g.length>0&&(0,s.jsx)(d,{value:y,onChange:w,adminLabel:I,workerLabel:z}),T.length>0&&(0,s.jsx)(o,{items:T})]})]})]})})}},86074:(e,t,n)=>{"use strict";n.d(t,{R2:()=>a,Xn:()=>l,YZ:()=>r});var s=n(57544);let r=["en","cz","pl"],l=s.env.DEFAULT_LOCALE||"cz";function a(e){return r.includes(e)?e:l}},87247:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var s=n(4110);n(43422);var r=n(59811),l=n(98548);function a(e){let{className:t,...n}=e;return(0,s.jsx)(r.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...n})}},89491:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(4110),r=n(89244);function l(e){let{children:t}=e,n=(0,r.useSearchParams)().get("r");return(0,s.jsx)("div",{className:"detail"!==n&&"reply"!==n?"":"hidden",children:t})}},90999:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var s=n(4110);n(43422);var r=n(96568),l=n(16906),a=n(98548);let i=(0,l.F)("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap text-base font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-[#242424] text-white shadow-xs hover:bg-[#242424]/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"border border-[#242424] bg-transparent text-[#242424] shadow-xs hover:bg-[#242424] hover:text-white",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-12 py-4 has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:n,size:l,asChild:o=!1,...d}=e,c=o?r.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,a.cn)(i({variant:n,size:l,className:t})),...d})}},95311:(e,t,n)=>{"use strict";n.d(t,{HistorySection:()=>m});var s=n(4110),r=n(43422),l=n(98055),a=n(98548),i=n(82047),o=n(42944),d=n(90999),c=n(1391);function u(e){let{className:t,orientation:n="horizontal",decorative:r=!0,...l}=e;return(0,s.jsx)(c.b,{"data-slot":"separator",decorative:r,orientation:n,className:(0,a.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...l})}let x=(0,r.forwardRef)(function(e,t){let{year:n,isActive:r=!1,showLeadingSeparator:l=!0,showTrailingSeparator:i=!0,onSelect:o}=e;return(0,s.jsxs)("button",{ref:t,type:"button",onClick:o,"aria-pressed":r,className:"relative flex items-center px-[30px] cursor-pointer focus:outline-none",children:[l&&(0,s.jsx)(u,{orientation:"vertical",decorative:!0,className:"pointer-events-none absolute left-0 top-1/2 h-[24px] -translate-y-1/2 bg-border"}),(0,s.jsx)("span",{className:(0,a.cn)("relative z-10 inline-flex flex-col items-center font-semibold text-[14.625px] leading-[24px] text-subtext transition-colors ",r?"text-dark after:bg-dark":""),children:n}),r&&(0,s.jsx)("span",{className:"absolute h-0.5 bg-accent-foreground w-full left-0 right-0 top-8"}),i&&(0,s.jsx)(u,{orientation:"vertical",decorative:!0,className:"pointer-events-none absolute right-0 top-1/2 h-[24px] -translate-y-1/2 bg-border"})]})});function p(e){let{events:t}=e,n=(0,r.useMemo)(()=>t?[...t].sort((e,t)=>
1(null==t?void 0:t.year)-(null==e?void 0:e.year)):[],[t]),l=(0,r.useMemo)(()=>{if((null==n?void 0:n.length)===0)return 0;let e=null==n?void 0:n.findIndex(e=>e.isActive);return e&&e>=0?e:0},[n]),[a,c]=(0,r.useState)(l),u=(0,r.useRef)([]),p=(0,r.useRef)(!1);(0,r.useEffect)(()=>{c(l)},[l]);let m=(0,r.useCallback)(e=>{p.current=!0,c(e)},[]);(0,r.useEffect)(()=>{if((null==n?void 0:n.length)===0||!p.current)return;let e=u.current[a];null==e||e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[a,null==n?void 0:n.length]);let h=(0,r.useCallback)(e=>{p.current=!0,c(t=>(null==n?void 0:n.length)===0?t:Math.min(Math.max(t+e,0),(null==n?void 0:n.length)-1))},[null==n?void 0:n.length]),f=null==n?void 0:n[a],g=n.length>0&&a>0,b=(null==n?void 0:n.length)>0&&a<n.length-1;return(u.current.length=n.length,0===n.length)?null:(0,s.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,s.jsx)("div",{className:"w-full overflow-hidden",children:(0,s.jsxs)("div",{className:"relative flex items-center gap-6",children:[(0,s.jsx)(d.$,{variant:"ghost",size:"icon",type:"button",onClick:()=>h(-1),disabled:!g,className:"flex hover:dark:bg-transparent items-center justify-center text-subtext transition hover:text-dark disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Previous year",children:(0,s.jsx)(i.A,{className:"size-5.5"})}),(0,s.jsx)("div",{className:"flex-1 overflow-x-auto py-4 scrollbar-hide scrollbar-hidden",children:(0,s.jsx)("div",{className:"flex items-center",children:n.map((e,t)=>(0,s.jsx)(x,{year:e.year,isActive:t===a,showLeadingSeparator:0!==t,showTrailingSeparator:t!==n.length-1,onSelect:()=>m(t),ref:e=>{u.current[t]=e}},e.year))})}),(0,s.jsx)(d.$,{variant:"ghost",size:"icon",onClick:()=>h(1),disabled:!b,className:"flex hover:dark:bg-transparent items-center justify-center text-subtext transition hover:text-dark disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Next year",children:(0,s.jsx)(o.A,{className:"size-5.5"})})]})}),(0,s.jsx)("div",{className:"flex items-center justify-center pt-5 pb-4 px-0 w-full",children:(0,s.jsx)("div",{className:"font-semibold text-base leading-[24px] text-subtext text-center",children:(null==f?void 0:f.description)&&(0,s.jsx)("ul",{className:"list-disc ms-6",children:(0,s.jsx)("li",{children:(0,s.jsx)("span",{className:"leading-normal",children:f.description})})})})})]})}function m(e){let{title:t,description:n,timelineEvents:r}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-8 items-center",children:(0,s.jsxs)("div",{className:"flex flex-col gap-9 items-start w-full",children:[(0,s.jsx)("h2",{className:"font-extrabold text-3xl leading-[38.4px] text-dark",children:t}),(0,s.jsx)("div",{className:"flex flex-col gap-9 items-start w-full",children:(0,s.jsxs)("div",{className:"flex flex-col gap-[27px] items-start w-full",children:[(0,s.jsx)(l.s,{data:n}),(0,s.jsx)("div",{className:"flex flex-col items-center w-full",children:(0,s.jsx)(p,{events:r})})]})})]})})}},97617:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var s=n(4110);n(43422);var r=n(98548);function l(e){let{className:t,type:n,...l}=e;return(0,s.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...l})}},98055:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var s=n(4110),r=n(59985),l=n(21039);let a=e=>{let{linkNode:t}=e;if(t.fields.doc){let{relationTo:e,value:n}=t.fields.doc;if("media"===e&&n&&"object"==typeof n&&n.url&&"string"==typeof n.url)return n.url;if(n&&"object"==typeof n&&n.slug)switch(e){case"contact":return"/contact";case"pages":return"/".concat(n.slug);case"news":return"/news/".concat(n.slug);default:return"/".concat(e,"/").concat(n.slug)}}return"#"},i=e=>{let{defaultConverters:t}=e;return{...t,...(0,l.A)({internalDocToHref:a})}};function o(e){let{data:t,className:n,...l}=e;return(0,s.jsx)(r.s,{...l,className:n,converters:i,data:t})}}
1,98548:(e,t,n)=>{"use strict";n.d(t,{cn:()=>l,jT:()=>a});var s=n(68184),r=n(69928);function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.QP)((0,s.$)(t))}function a(e){return e.includes("&")?e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCodePoint(parseInt(t,16))):e}}},e=>{e.O(0,[9701,7989,4184,8350,2434,412,614,8877,9185,3067,1216,1342,6851,2447,1466,7358],()=>e(e.s=14104)),_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.