12 lines
14 KiB
JavaScript
12 lines
14 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="bbdff0d3-863c-6706-eeeb-4ce1a8f8bb39")}catch(e){}}();
|
|
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,140802,e=>{"use strict";e.i(653782);var t=e.i(452797),r=e.i(907358),s=e.i(807464),n=e.i(134174),a=e.i(736986),i=e.i(370338),l=e.i(250438),o=r,c=e.i(753942);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,l.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,s=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,n=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(n.height),a.width=parseFloat(n.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:s,anchorX:n,anchorY:a,root:i,pop:l}){let h=(0,o.useId)(),p=(0,o.useRef)(null),f=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,o.useContext)(c.MotionConfigContext),x=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,s=e.map(e=>{let s=d(e,t);return r||"function"!=typeof s||(r=!0),s});if(r)return()=>{for(let t=0;t<s.length;t++){let r=s[t];"function"==typeof r?r():d(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:o,right:c,bottom:d}=f.current;if(s||!1===l||!p.current||!e||!t)return;let u="left"===n?`left: ${o}`:`right: ${c}`,x="bottom"===a?`bottom: ${d}`:`top: ${r}`;p.current.dataset.motionPopId=h;let g=document.createElement("style");m&&(g.nonce=m);let b=i??document.head;return b.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
[data-motion-pop-id="${h}"] {
|
|
position: absolute !important;
|
|
width: ${e}px !important;
|
|
height: ${t}px !important;
|
|
${u}px !important;
|
|
${x}px !important;
|
|
}
|
|
`),()=>{p.current?.removeAttribute("data-motion-pop-id"),b.contains(g)&&b.removeChild(g)}},[s]),(0,t.jsx)(u,{isPresent:s,childRef:p,sizeRef:f,pop:l,children:!1===l?e:o.cloneElement(e,{ref:x})})}let p=({children:e,initial:s,isPresent:a,onExitComplete:l,custom:o,presenceAffectsLayout:c,mode:d,anchorX:u,anchorY:p,root:m})=>{let x=(0,n.useConstant)(f),g=(0,r.useId)(),b=!0,y=(0,r.useMemo)(()=>(b=!1,{id:g,initial:s,isPresent:a,custom:o,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>x.delete(e))}),[a,x,l]);return c&&b&&(y={...y}),(0,r.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[a]),r.useEffect(()=>{a||x.size||!l||l()},[a]),e=(0,t.jsx)(h,{pop:"popLayout"===d,isPresent:a,anchorX:u,anchorY:p,root:m,children:e}),(0,t.jsx)(i.PresenceContext.Provider,{value:y,children:e})};function f(){return new Map}var m=e.i(718015);let x=e=>e.key||"";function g(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:i,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:h="left",anchorY:f="top",root:b})=>{let[y,j]=(0,m.usePresence)(u),v=(0,r.useMemo)(()=>g(e),[e]),w=u&&!y?[]:v.map(x),k=(0,r.useRef)(!0),N=(0,r.useRef)(v),C=(0,n.useConstant)(()=>new Map),E=(0,r.useRef)(new Set),[$,P]=(0,r.useState)(v),[L,T]=(0,r.useState)(v);(0,a.useIsomorphicLayoutEffect)(()=>{k.current=!1,N.current=v;for(let e=0;e<L.length;e++){let t=x(L[e]);w.includes(t)?(C.delete(t),E.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[L,w.length,w.join("-")]);let A=[];if(v!==$){let e=[...v];for(let t=0;t<L.length;t++){let r=L[t],s=x(r);w.includes(s)||(e.splice(t,0,r),A.push(r))}return"wait"===d&&A.length&&(e=A),T(g(e)),P(v),null}let{forceRender:R}=(0,r.useContext)(s.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:L.map(e=>{let r=x(e),s=(!u||!!y)&&(v===L||w.includes(r));return(0,t.jsx)(p,{isPresent:s,initial:(!k.current||!!l)&&void 0,custom:i,presenceAffectsLayout:c,mode:d,root:b,onExitComplete:s?void 0:()=>{if(E.current.has(r)||!C.has(r))return;E.current.add(r),C.set(r,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(R?.(),T(N.current),u&&j?.(),o&&o())},anchorX:h,anchorY:f,children:e},r)})})};e.s(["AnimatePresence",()=>b],140802)},993983,e=>{"use strict";var t=e.i(452797),r=e.i(907358),s=e.i(184868),n=e.i(663067),a=e.i(976819),i=e.i(112086),l=e.i(140802);function o({navLinks:e}){let[o,c]=r.useState(!1),[d,u]=r.useState(!1),h=(0,a.usePathname)()||"/",p=h.startsWith("/en")?"en":"de",f=e=>{let t=h.replace(/^\/(en|de)/,"");return`/${e}${""===t?"":t}`};r.useEffect(()=>{let e=()=>{c(window.scrollY>20)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),r.useEffect(()=>{u(!1)},[h]);let m=({mobile:e=!1})=>(0,t.jsxs)("div",{className:`flex items-center gap-2 ${e?"text-xl":"text-sm font-bold"} ${e?"text-neutral-dark":o?"text-text-primary":"text-neutral-light"}`,children:[(0,t.jsx)(s.default,{href:f("de"),className:`transition-colors hover:text-primary ${"de"===p?"text-primary":""}`,children:"DE"}),(0,t.jsx)("span",{className:"opacity-50",children:"|"}),(0,t.jsx)(s.default,{href:f("en"),className:`transition-colors hover:text-primary ${"en"===p?"text-primary":""}`,children:"EN"})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ease-in-out ${o?"bg-neutral-light/90 backdrop-blur-md shadow-sm py-4":"bg-transparent py-6"}`,children:(0,t.jsxs)("div",{className:"container flex items-center justify-between",children:[(0,t.jsx)(s.default,{href:`/${p}`,className:"relative flex items-center h-12 w-48 z-50",children:(0,t.jsx)(n.default,{src:o||d?"/assets/logo.png":"/assets/logo-white.png",alt:"E-TIB Gruppe",fill:!0,className:"object-contain object-left",priority:!0,sizes:"192px"})}),(0,t.jsxs)("nav",{className:"hidden md:flex items-center gap-10",children:[e&&e.length>0&&e.map(e=>{let r=e.url.startsWith("/")&&!e.url.match(/^\/(en|de)/)?`/${p}${e.url}`:e.url;return(0,t.jsx)(s.default,{href:r,className:`font-semibold text-sm uppercase tracking-widest transition-all duration-300 ${o?"text-text-primary hover:text-primary":"text-neutral-light hover:text-primary-light"}`,children:e.label},e.url)}),(0,t.jsx)("div",{className:"h-4 w-px bg-white/20 mx-2"}),(0,t.jsx)(m,{}),(0,t.jsx)(s.default,{href:`/${p}/kontakt`,className:"rounded-xl bg-primary hover:bg-primary-dark text-neutral-light px-8 py-3 font-bold text-sm uppercase tracking-wider transition-all shadow-xl hover:shadow-primary/20 hover:-translate-y-0.5 active:translate-y-0",children:"Kontakt"})]}),(0,t.jsx)("button",{className:"md:hidden z-50 text-primary p-2",onClick:()=>u(!d),"aria-label":"Toggle menu",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:o||d?"currentColor":"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"3",x2:"21",y1:"6",y2:"6"}),(0,t.jsx)("line",{x1:"3",x2:"21",y1:"12",y2:"12"}),(0,t.jsx)("line",{x1:"3",x2:"21",y1:"18",y2:"18"})]})})})]})}),(0,t.jsx)(l.AnimatePresence,{children:d&&(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2},className:"fixed inset-0 z-40 bg-white md:hidden pt-32 pb-8 px-6 overflow-y-auto",children:(0,t.jsxs)("nav",{className:"flex flex-col gap-6",children:[e&&e.length>0&&e.map(e=>{let r=e.url.startsWith("/")&&!e.url.match(/^\/(en|de)/)?`/${p}${e.url}`:e.url;return(0,t.jsx)(s.default,{href:r,className:"text-2xl font-heading font-bold text-neutral-dark border-b border-neutral-100 pb-4",children:e.label},e.url)}),(0,t.jsx)(s.default,{href:`/${p}/kontakt`,className:"text-2xl font-heading font-bold text-primary border-b border-neutral-100 pb-4",children:"Kontakt"}),(0,t.jsxs)("div",{className:"mt-8 pt-6",children:[(0,t.jsx)("p",{className:"text-text-secondary text-sm font-bold uppercase tracking-widest mb-4",children:"Sprache wählen"}),(0,t.jsx)(m,{mobile:!0})]})]})})})]})}e.s(["Header",()=>o])},814508,e=>{"use strict";var t=e.i(452797),r=e.i(190422);function s(){let e=(0,r.useTranslations)("Navigation");return(0,t.jsx)("a",{href:"#main-content",className:"fixed -top-full left-4 z-[100] px-6 py-3 bg-white text-primary-dark font-bold rounded-lg shadow-xl outline-none ring-2 ring-accent transition-all duration-300 focus:top-4",children:e("skipToContent")})}e.s(["default",()=>s])},892737,e=>{"use strict";var t=e.i(653782),r=e.i(452797),s=e.i(907358);let n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...d},u)=>(0,s.createElement)("svg",{ref:u,...i,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:n("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let r=(0,s.forwardRef)(({className:r,...i},o)=>(0,s.createElement)(l,{ref:o,iconNode:t,className:n(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=a(e),r},c=o("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),d=o("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var u=e.i(161664);function h(){let[,e]=(0,s.useState)("checking"),[n,a]=(0,s.useState)(""),[i,l]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{(async()=>{let r=new URLSearchParams(window.location.search).has("cms_debug"),s=u.config.isDevelopment,n=u.config.isTesting,i=t.default.env.NEXT_PUBLIC_TARGET||"";if(s||n||"branch"===i||r)try{let t=await fetch("/api/health/cms"),r=await t.json();"ok"!==r.status?(e("error"),a(r.message),l(!0)):(e("ok"),l(!1))}catch{(r||s)&&(e("error"),a("Could not connect to CMS health endpoint"),l(!0))}})()},[]),i)?(0,r.jsx)("div",{className:"fixed bottom-4 right-4 z-[9999] animate-slide-up",children:(0,r.jsx)("div",{className:"bg-red-500/90 backdrop-blur-md border border-red-400 text-white p-4 rounded-2xl shadow-2xl max-w-sm",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"bg-white/20 p-2 rounded-lg",children:(0,r.jsx)(c,{className:"w-5 h-5"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h4",{className:"font-bold text-sm mb-1",children:"CMS Issue Detected"}),(0,r.jsx)("p",{className:"text-xs opacity-90 leading-relaxed mb-3",children:'relation "products" does not exist'===n?"The database schema is missing. Please run migrations for this environment.":"A content service is unavailable. Check the deployment logs for details."}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{onClick:()=>window.location.reload(),className:"bg-white text-red-600 text-[10px] font-bold uppercase tracking-wider px-3 py-1.5 rounded-lg flex items-center gap-2 hover:bg-neutral-100 transition-colors",children:[(0,r.jsx)(d,{className:"w-3 h-3"}),"Retry"]}),(0,r.jsx)("button",{onClick:()=>l(!1),className:"bg-black/20 text-white text-[10px] font-bold uppercase tracking-wider px-3 py-1.5 rounded-lg hover:bg-black/30 transition-colors",children:"Dismiss"})]})]})]})})}):null}e.s(["default",()=>h],892737)},531518,e=>{"use strict";var t=e.i(653782),r=e.i(452797),s=e.i(902498),n=e.i(907358);let a=(0,s.default)(()=>e.A(348814),{loadableGenerated:{modules:[565071]},ssr:!1}),i=(0,s.default)(()=>e.A(740018),{loadableGenerated:{modules:[248785]},ssr:!1}),l=(0,s.default)(()=>e.A(225514),{loadableGenerated:{modules:[950648]},ssr:!1});function o(){let[e,s]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{if("true"!==t.default.env.NEXT_PUBLIC_CI)if("requestIdleCallback"in window)window.requestIdleCallback(()=>s(!0),{timeout:3e3});else{let e=setTimeout(()=>s(!0),2500);return()=>clearTimeout(e)}},[]),e)?(0,r.jsxs)(n.Suspense,{fallback:null,children:[(0,r.jsx)(a,{}),(0,r.jsx)(i,{}),(0,r.jsx)(l,{})]}):null}e.s(["default",()=>o])},600023,e=>{"use strict";var t=e.i(883647),r=e.i(452797);function s({locale:e,...s}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...s})}e.s(["default",()=>s])},689647,e=>{"use strict";var t=e.i(452797);let r=(0,e.i(902498).default)(()=>e.A(262386).then(e=>e.FeedbackOverlay),{loadableGenerated:{modules:[566137]},ssr:!1});function s({feedbackEnabled:e}){return e?(0,t.jsx)(r,{}):null}e.s(["default",()=>s])},348814,e=>{e.v(t=>Promise.all(["static/chunks/76e862334618313a.js"].map(t=>e.l(t))).then(()=>t(565071)))},740018,e=>{e.v(t=>Promise.all(["static/chunks/bd93dc44b2deaa66.js"].map(t=>e.l(t))).then(()=>t(248785)))},225514,e=>{e.v(t=>Promise.all(["static/chunks/f7ac9bd7a3d3773e.js"].map(t=>e.l(t))).then(()=>t(950648)))},262386,e=>{e.v(t=>Promise.all(["static/chunks/dc5c8a5830c4548e.js","static/chunks/c9e4534297dc4d54.js"].map(t=>e.l(t))).then(()=>t(566137)))},662705,e=>{e.v(t=>Promise.all(["static/chunks/cd64e50f3dc8ff13.js"].map(t=>e.l(t))).then(()=>t(212445)))},805135,e=>{e.v(t=>Promise.all(["static/chunks/3ffd2a1cf95ceb60.js","static/chunks/a584b0fb482afc90.js","static/chunks/6d182a34db4f4c54.js"].map(t=>e.l(t))).then(()=>t(640915)))},357643,e=>{e.v(t=>Promise.all(["static/chunks/39db22b959bfa285.js"].map(t=>e.l(t))).then(()=>t(888085)))}]);
|
|
|
|
//# debugId=bbdff0d3-863c-6706-eeeb-4ce1a8f8bb39
|