11 lines
90 KiB
JavaScript
11 lines
90 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]="638e6d36-f0aa-c5cb-4218-ac2a4a2e48b0")}catch(e){}}();
|
|
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,112086,460208,e=>{"use strict";let t,i;var s=e.i(818454),r=e.i(933112),n=e.i(441169),a=e.i(136656),o=e.i(470919),l=e.i(427684),h=e.i(967682);function c(e){return[e("x"),e("y")]}var d=e.i(679514),u=e.i(364646),m=e.i(850669),p=e.i(502225),g=e.i(870820),x=e.i(765869),f=e.i(597719),v=e.i(409138);function y(e){return e.max-e.min}function b(e,t,i,s=.5){e.origin=s,e.originPoint=(0,g.mixNumber)(t.min,t.max,e.origin),e.scale=y(i)/y(t),e.translate=(0,g.mixNumber)(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function w(e,t,i,s){b(e.x,t.x,i.x,s?s.originX:void 0),b(e.y,t.y,i.y,s?s.originY:void 0)}function j(e,t,i,s=0){e.min=(s?(0,g.mixNumber)(i.min,i.max,s):i.min)+t.min,e.max=e.min+y(t)}function P(e,t,i,s=0){let r=s?(0,g.mixNumber)(i.min,i.max,s):i.min;e.min=t.min-r,e.max=e.min+y(t)}function k(e,t,i,s){P(e.x,t.x,i.x,s?.x),P(e.y,t.y,i.y,s?.y)}var N=e.i(921496);function D(e){return(0,N.isObject)(e)&&"ownerSVGElement"in e}var T=e.i(427772);let E=new WeakMap,S=(e,t,i)=>(s,r)=>r&&r[0]?r[0][e+"Size"]:D(s)&&"getBBox"in s?s.getBBox()[t]:s[i],L=S("inline","width","offsetWidth"),B=S("block","height","offsetHeight");function A({target:e,borderBoxSize:t}){E.get(e)?.forEach(i=>{i(e,{get width(){return L(e,t)},get height(){return B(e,t)}})})}function V(e){e.forEach(A)}let M=new Set;function R(e,s){let r;return"function"==typeof e?(M.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};M.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{M.delete(e),M.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!t&&"u">typeof ResizeObserver&&(t=new ResizeObserver(V)),(r=(0,T.resolveElements)(e)).forEach(e=>{let i=E.get(e);i||(i=new Set,E.set(e,i)),i.add(s),t?.observe(e)}),()=>{r.forEach(e=>{let i=E.get(e);i?.delete(s),i?.size||t?.unobserve(e)})})}e.s(["resize",()=>R],460208);var C=e.i(253422),I=e.i(26809),z=e.i(43866);function U(e,t,i,s){return(0,x.addDomEvent)(e,t,(0,z.addPointerInfo)(i),s)}let F=({current:e})=>e?e.ownerDocument.defaultView:null;var W=e.i(339705),O=e.i(94801),H=e.i(92727),G=e.i(182865);let $=(e,t)=>Math.abs(e-t),X=new Set(["auto","scroll"]);class K{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:n=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Y(this.lastRawMoveEventInfo,this.transformPagePoint));let i=_(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt($(e.x,t.x)**2+$(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!r)return;let{point:n}=i,{timestamp:a}=h.frameData;this.history.push({...n,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Y(t,this.transformPagePoint),h.frame.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=_("pointercancel"===e.type?this.lastMoveEventInfo:Y(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,n),s&&s(e,n)},!(0,O.isPrimaryPointer)(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;const o=Y((0,z.extractEventInfo)(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=h.frameData;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=t;d&&d(e,_(o,this.history)),this.removeListeners=(0,H.pipe)(U(this.contextWindow,"pointermove",this.handlePointerMove),U(this.contextWindow,"pointerup",this.handlePointerUp),U(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(X.has(e.overflowX)||X.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:s.x-t.x,y:s.y-t.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,s),h.frame.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,h.cancelFrame)(this.updatePoint)}}function Y(e,t){return t?{point:t(e.point)}:e}function J(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _({point:e},t){return{point:e,delta:J(e,q(t)),offset:J(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null,r=q(e);for(;i>=0&&(s=e[i],!(r.timestamp-s.timestamp>(0,G.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&r.timestamp-s.timestamp>2*(0,G.secondsToMilliseconds)(.1)&&(s=e[1]);let n=(0,G.millisecondsToSeconds)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function q(e){return e[e.length-1]}var Z=e.i(241058),Q=e.i(493858);function ee(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function et(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function ei(e,t,i){return{min:es(e,t),max:es(e,i)}}function es(e,t){return"number"==typeof e?e:e[t]||0}let er=new WeakMap;class en{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,l.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let r=e=>{t&&this.snapToCursor((0,z.extractEventInfo)(e).point),this.stopAnimation()},n=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f.isDragging[e])return null;else return f.isDragging[e]=!0,()=>{f.isDragging[e]=!1};return f.isDragging.x||f.isDragging.y?null:(f.isDragging.x=f.isDragging.y=!0,()=>{f.isDragging.x=f.isDragging.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),c(e=>{let t=this.getAxisMotionValue(e).get()||0;if(v.percent.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=y(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&h.frame.update(()=>r(e,t),!1,!0),(0,m.addValueToWillChange)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),n&&h.frame.update(()=>n(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new K(e,{onSessionStart:r,onStart:n,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:F(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&h.frame.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!eo(e,s,this.currentDirection))return;let r=this.getAxisMotionValue(e),n=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(n=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?(0,g.mixNumber)(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?(0,g.mixNumber)(i,e,s.max):Math.min(e,i)),e}(n,this.constraints[e],this.elastic[e])),r.set(n)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&(0,W.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:r}){return{x:ee(e.x,i,r),y:ee(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ei(e,"left","right"),y:ei(e,"top","bottom")}}(t),s!==this.constraints&&!(0,W.isRefObject)(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&c(e=>{var t,s;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],r={},void 0!==s.min&&(r.min=s.min-t.min),void 0!==s.max&&(r.max=s.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!(0,W.isRefObject)(t))return!1;let s=t.current;(0,I.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=(0,d.measurePageBox)(s,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:et(e.x,n.x),y:et(e.y,n.y)});if(i){let e=i((0,u.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,u.convertBoundingBoxToBox)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(c(a=>{if(!eo(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===n||n===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return(0,m.addValueToWillChange)(this.visualElement,e),i.start((0,p.animateMotionValue)(e,i,0,t,this.visualElement,!1))}stopAnimation(){c(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){c(t=>{let{drag:i}=this.getProps();if(!eo(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-(0,g.mixNumber)(i,n,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!(0,W.isRefObject)(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};c(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let n,a,o,l=t.get();s[e]=(i={min:l,max:l},r=this.constraints[e],n=.5,a=y(i),(o=y(r))>a?n=(0,Z.progress)(r.min,r.max-a,i.min):a>o&&(n=(0,Z.progress)(i.min,i.max-o,r.min)),(0,Q.clamp)(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),c(t=>{if(!eo(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:n}=this.constraints[t];i.set((0,g.mixNumber)(r,n,s[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;er.set(this.visualElement,this);let t=this.visualElement.current,i=U(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}=this.getProps(),r=e.target,n=r!==t&&(0,C.isElementTextInput)(r);i&&s&&!n&&this.start(e)}),s=()=>{var i,s,r;let n,a,{dragConstraints:o}=this.getProps();(0,W.isRefObject)(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,s=o.current,n=R(i,ea(r=()=>this.scalePositionWithinConstraints())),a=R(s,ea(r)),e=()=>{n(),a()}))},{projection:r}=this.visualElement,n=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),h.frame.read(s);let a=(0,x.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(c(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),n(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function ea(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function eo(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class el extends a.Feature{constructor(e){super(e),this.removeGroupControls=o.noop,this.removeListeners=o.noop,this.controls=new en(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.noop}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}var eh=a;let ec=e=>(t,i)=>{e&&h.frame.update(()=>e(t,i),!1,!0)};class ed extends eh.Feature{constructor(){super(...arguments),this.removePointerDownListener=o.noop}onPointerDown(e){this.session=new K(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:F(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ec(e),onStart:ec(t),onMove:ec(i),onEnd:(e,t)=>{delete this.session,s&&h.frame.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=U(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eu=e.i(452797);let em={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ep=e.i(427139),eg=e.i(907358),ex=e.i(718015),ef=e.i(807464),ev=e.i(636333);let ey=!1;class eb extends eg.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&s&&i.register(r),ey&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),em.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:r}=this.props,{projection:n}=i;return n&&(n.isPresent=r,e.layoutDependency!==t&&n.setOptions({...n.options,layoutDependency:t}),ey=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==r?n.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?n.promote():n.relegate()||h.frame.postRender(()=>{let e=n.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),ep.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;ey=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ew(e){let[t,i]=(0,ex.usePresence)(),s=(0,eg.useContext)(ef.LayoutGroupContext);return(0,eu.jsx)(eb,{...e,layoutGroup:s,switchLayoutGroup:(0,eg.useContext)(ev.SwitchLayoutGroupContext),isPresent:t,safeToRemove:i})}var ej=e.i(796457),eP=e.i(702915),ek=e.i(236585),eN=e.i(530017),eD=e.i(138526),eT=e.i(957798),eE=e.i(639068),eS=e.i(431772),eL=e.i(94907),eB=e.i(891945),eA=e.i(771559);let eV=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],eM=eV.length,eR=e=>"string"==typeof e?parseFloat(e):e,eC=e=>"number"==typeof e||v.px.test(e);function eI(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ez=eF(0,.5,eA.circOut),eU=eF(.5,.95,o.noop);function eF(e,t,i){return s=>s<e?0:s>t?1:i((0,Z.progress)(e,t,s))}function eW(e,t){e.min=t.min,e.max=t.max}function eO(e,t){eW(e.x,t.x),eW(e.y,t.y)}function eH(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eG=e.i(656731);function e$(e,t,i,s,r){return e-=t,e=(0,eG.scalePoint)(e,1/i,s),void 0!==r&&(e=(0,eG.scalePoint)(e,1/r,s)),e}function eX(e,t,[i,s,r],n,a){!function(e,t=0,i=1,s=.5,r,n=e,a=e){if(v.percent.test(t)&&(t=parseFloat(t),t=(0,g.mixNumber)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=(0,g.mixNumber)(n.min,n.max,s);e===n&&(o-=t),e.min=e$(e.min,t,i,o,r),e.max=e$(e.max,t,i,o,r)}(e,t[i],t[s],t[r],t.scale,n,a)}let eK=["x","scaleX","originX"],eY=["y","scaleY","originY"];function eJ(e,t,i,s){eX(e.x,t,eK,i?i.x:void 0,s?s.x:void 0),eX(e.y,t,eY,i?i.y:void 0,s?s.y:void 0)}function e_(e){return 0===e.translate&&1===e.scale}function eq(e){return e_(e.x)&&e_(e.y)}function eZ(e,t){return e.min===t.min&&e.max===t.max}function eQ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function e0(e,t){return eQ(e.x,t.x)&&eQ(e.y,t.y)}function e1(e){return y(e.x)/y(e.y)}function e2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var e4=e.i(57307);class e6{constructor(){this.members=[]}add(e){(0,e4.addUniqueItem)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,e4.removeItem)(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if((0,e4.removeItem)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:r}=e.options;(void 0===s||s!==r)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let e3=(e,t)=>e.depth-t.depth;class e5{constructor(){this.children=[],this.isDirty=!1}add(e){(0,e4.addUniqueItem)(this.children,e),this.isDirty=!0}remove(e){(0,e4.removeItem)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(e3),this.isDirty=!1,this.children.forEach(e)}}var e7=e.i(961417);let e9={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},e8=["","X","Y","Z"],te=0;function tt(e,t,i,s){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function ti({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=te++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eL.statsBuffer.value&&(e9.nodes=e9.calculatedTargetDeltas=e9.calculatedProjections=0),this.nodes.forEach(tn),this.nodes.forEach(tp),this.nodes.forEach(tg),this.nodes.forEach(ta),eL.statsBuffer.addProjectionMetrics&&eL.statsBuffer.addProjectionMetrics(e9)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new e5)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ej.SubscriptionManager),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=D(t)&&!(D(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,r=()=>this.root.updateBlockedByResize=!1;h.frame.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,n;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=eT.time.now(),n=({timestamp:e})=>{let i=e-t;i>=250&&((0,h.cancelFrame)(n),r(i-250))},h.frame.setup(n,!0),i=()=>(0,h.cancelFrame)(n),em.hasAnimatedSinceResize&&(em.hasAnimatedSinceResize=!1,this.nodes.forEach(tm))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||tw,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!e0(this.targetLayout,s),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,eD.getValueTransition)(n,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else t||tm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,h.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tx),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=(0,eN.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",h.frame,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(th),this.nodes.forEach(tl);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(td),this.nodes.forEach(tu),this.nodes.forEach(ts),this.nodes.forEach(tr)):this.nodes.forEach(tc),this.clearAllSnapshots();let e=eT.time.now();h.frameData.delta=(0,Q.clamp)(0,1e3/60,e-h.frameData.timestamp),h.frameData.timestamp=e,h.frameData.isProcessing=!0,h.frameSteps.update.process(h.frameData),h.frameSteps.preRender.process(h.frameData),h.frameSteps.render.process(h.frameData),h.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ep.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(to),this.sharedNodes.forEach(tf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,h.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){h.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||y(this.snapshot.measuredBox.x)||y(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,l.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!eq(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,e7.hasTransform)(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),tk((t=s).x),tk(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,l.createBox)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tD))){let{scroll:e}=this.root;e&&((0,eG.translateAxis)(t.x,e.offset.x),(0,eG.translateAxis)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,l.createBox)();if(eO(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&eO(t,e),(0,eG.translateAxis)(t.x,r.offset.x),(0,eG.translateAxis)(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let s=i||(0,l.createBox)();eO(s,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,eG.translateAxis)(s.x,-i.scroll.offset.x),(0,eG.translateAxis)(s.y,-i.scroll.offset.y)),(0,e7.hasTransform)(i.latestValues)&&(0,eG.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,e7.hasTransform)(this.latestValues)&&(0,eG.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=(0,l.createBox)();eO(t,e);for(let e=0;e<this.path.length;e++){let i,s=this.path[e];(0,e7.hasTransform)(s.latestValues)&&(s.instance&&((0,e7.hasScale)(s.latestValues)&&s.updateSnapshot(),eO(i=(0,l.createBox)(),s.measurePageBox())),eJ(t,s.latestValues,s.snapshot?.layoutBox,i))}return(0,e7.hasTransform)(this.latestValues)&&eJ(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==h.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=h.frameData.timestamp;let n=this.getClosestProjectingParent();if(n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,l.createBox)(),this.targetWithTransforms=(0,l.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,c,d;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,c=this.relativeParent.target,d=this.options.layoutAnchor||void 0,j(a.x,o.x,c.x,d?.x),j(a.y,o.y,c.y,d?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eO(this.target,this.layout.layoutBox),(0,eG.applyBoxDelta)(this.target,this.targetDelta)):eO(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0),eL.statsBuffer.value&&e9.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,e7.hasScale)(this.parent.latestValues)||(0,e7.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,l.createBox)(),this.relativeTargetOrigin=(0,l.createBox)(),k(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),eO(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===h.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;eO(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,a=this.treeScale.y;(0,eG.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,l.createBox)());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eH(this.prevProjectionDelta.x,this.projectionDelta.x),eH(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),w(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===n&&this.treeScale.y===a&&e2(this.projectionDelta.x,this.prevProjectionDelta.x)&&e2(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),eL.statsBuffer.value&&e9.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,l.createDelta)(),this.projectionDelta=(0,l.createDelta)(),this.projectionDeltaWithTransform=(0,l.createDelta)()}setAnimationOrigin(e,t=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=(0,l.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=(0,l.createBox)(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,u=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(tb));this.animationProgress=0,this.mixTargetDelta=t=>{let s=t/1e3;if(tv(a.x,e.x,s),tv(a.y,e.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,m,p,x,f,y;k(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,x=this.relativeTargetOrigin,f=o,y=s,ty(p.x,x.x,f.x,y),ty(p.y,x.y,f.y,y),i&&(c=this.relativeTarget,m=i,eZ(c.x,m.x)&&eZ(c.y,m.y))&&(this.isProjectionDirty=!1),i||(i=(0,l.createBox)()),eO(i,this.relativeTarget)}h&&(this.animationValues=n,function(e,t,i,s,r,n){r?(e.opacity=(0,g.mixNumber)(0,i.opacity??1,ez(s)),e.opacityExit=(0,g.mixNumber)(t.opacity??1,0,eU(s))):n&&(e.opacity=(0,g.mixNumber)(t.opacity??1,i.opacity??1,s));for(let r=0;r<eM;r++){let n=eV[r],a=eI(t,n),o=eI(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||eC(a)===eC(o)?(e[n]=Math.max((0,g.mixNumber)(eR(a),eR(o),s),0),(v.percent.test(o)||v.percent.test(a))&&(e[n]+="%")):e[n]=o)}(t.rotate||i.rotate)&&(e.rotate=(0,g.mixNumber)(t.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,u,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,h.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.frame.update(()=>{var t,i,s;let r;em.hasAnimatedSinceResize=!0,eS.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,eP.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{eS.activeAnimations.layout--},onComplete:()=>{eS.activeAnimations.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=(0,ek.isMotionValue)(t)?t:(0,eP.motionValue)(t)).start((0,p.animateMotionValue)("",r,i,s)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:r}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&tN(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,l.createBox)();let t=y(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=y(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}eO(t,i),(0,eG.transformBox)(t,r),w(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new e6),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&tt("z",e,s,this.animationValues);for(let t=0;t<e8.length;t++)tt(`rotate${e8[t]}`,e,s,this.animationValues),tt(`skew${e8[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=(0,eB.resolveMotionValue)(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,eB.resolveMotionValue)(t?.pointerEvents)||""),this.hasProjected&&!(0,e7.hasTransform)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(e,t,i){let s="",r=e.x.translate/t.x,n=e.y.translate/t.y,a=i?.z||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:n,skewX:a,skewY:o}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(n=i(r,n)),e.transform=n;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eE.scaleCorrectors){if(void 0===r[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eE.scaleCorrectors[t],l="none"===n?r[t]:i(r[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?(0,eB.resolveMotionValue)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(tl),this.root.sharedNodes.clear()}}}function ts(e){e.updateLayout()}function tr(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;if("size"===r)c(e=>{let s=n?t.measuredBox[e]:t.layoutBox[e],r=y(s);s.min=i[e].min,s.max=s.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";eW(n?t.measuredBox[e]:t.layoutBox[e],i[e])}else tN(r,t.layoutBox,i)&&c(s=>{let r=n?t.measuredBox[s]:t.layoutBox[s],a=y(i[s]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=(0,l.createDelta)();w(a,i,t.layoutBox);let o=(0,l.createDelta)();n?w(o,e.applyTransform(s,!0),t.measuredBox):w(o,i,t.layoutBox);let h=!eq(a),d=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=e.options.layoutAnchor||void 0,o=(0,l.createBox)();k(o,t.layoutBox,r.layoutBox,a);let h=(0,l.createBox)();k(h,i,n.layoutBox,a),e0(o,h)||(d=!0),s.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:h,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tn(e){eL.statsBuffer.value&&e9.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ta(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function to(e){e.clearSnapshot()}function tl(e){e.clearMeasurements()}function th(e){e.isLayoutDirty=!0,e.updateLayout()}function tc(e){e.isLayoutDirty=!1}function td(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function tu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tp(e){e.resolveTargetDelta()}function tg(e){e.calcProjection()}function tx(e){e.resetSkewAndRotation()}function tf(e){e.removeLeadSnapshot()}function tv(e,t,i){e.translate=(0,g.mixNumber)(t.translate,0,i),e.scale=(0,g.mixNumber)(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function ty(e,t,i,s){e.min=(0,g.mixNumber)(t.min,i.min,s),e.max=(0,g.mixNumber)(t.max,i.max,s)}function tb(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tw={duration:.45,ease:[.4,0,.1,1]},tj=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tP=tj("applewebkit/")&&!tj("chrome/")?Math.round:o.noop;function tk(e){e.min=tP(e.min),e.max=tP(e.max)}function tN(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(e1(t)-e1(i)))}function tD(e){return e!==e.root&&e.scroll?.wasRoot}let tT=ti({attachResizeListener:(e,t)=>(0,x.addDomEvent)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tE={current:void 0},tS=ti({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tE.current){let e=new tT({});e.mount(window),e.setOptions({layoutScroll:!0}),tE.current=e}return tE.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var tL=e.i(620722);let tB={...n.animations,...tL.gestureAnimations,pan:{Feature:ed},drag:{Feature:el,ProjectionNode:tS,MeasureLayout:ew},layout:{ProjectionNode:tS,MeasureLayout:ew}},tA=(0,r.createMotionProxy)(tB,s.createDomVisualElement);e.s(["motion",()=>tA],112086)},109711,e=>{"use strict";var t=e.i(452797),i=e.i(907358),s=e.i(663067);function r({src:e,alt:r,width:n=800,height:a=600,className:o="",priority:l=!1}){let[h,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(u(!0),e.disconnect())})},{threshold:.1});return m.current&&e.observe(m.current),()=>e.disconnect()},[]),(0,t.jsxs)("div",{ref:m,className:`relative overflow-hidden rounded-2xl shadow-2xl my-16 group ${o}`,children:[(0,t.jsx)("div",{className:`
|
|
absolute inset-0 bg-primary/10 z-10 pointer-events-none transition-opacity duration-1000
|
|
${h&&d?"opacity-0":"opacity-100"}
|
|
`}),(0,t.jsx)(s.default,{src:e,alt:r,width:n,height:a,className:`
|
|
duration-[1.5s] ease-out w-full h-auto transition-all
|
|
${h&&d?"scale-100 blur-0 opacity-100":"scale-110 blur-2xl opacity-0"}
|
|
group-hover:scale-105
|
|
`,onLoad:()=>c(!0),priority:l}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-tr from-white/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700 pointer-events-none"})]})}e.s(["default",()=>r])},579183,e=>{"use strict";var t=e.i(452797),i=e.i(907358);e.i(445774);var s=e.i(370476),r=e.i(575003),n=e.i(112086);function a(){let[e,s]=i.useState("idle"),r=async e=>{e.preventDefault(),s("loading"),setTimeout(()=>{s("success")},1500)};return(0,t.jsxs)("div",{className:"bg-white rounded-2xl p-8 md:p-12 shadow-xl border border-neutral-100 max-w-2xl mx-auto relative overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-primary to-primary-light"}),(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h3",{className:"font-heading text-3xl font-extrabold text-neutral-dark mb-2",children:"Projektanfrage stellen"}),(0,t.jsx)("p",{className:"text-text-secondary",children:"Hinterlassen Sie uns Ihre Kontaktdaten und Details zu Ihrem Vorhaben. Wir melden uns umgehend bei Ihnen."})]}),"success"===e?(0,t.jsxs)(n.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-primary/10 border border-primary text-primary p-6 rounded-xl flex items-start gap-4",children:[(0,t.jsx)("div",{className:"bg-primary text-white rounded-full p-1 mt-0.5",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-bold text-lg mb-1",children:"Anfrage erfolgreich gesendet"}),(0,t.jsx)("p",{children:"Vielen Dank für Ihr Interesse an der E-TIB Gruppe. Ein Ansprechpartner wird sich zeitnah mit Ihnen in Verbindung setzen."})]})]}):(0,t.jsxs)("form",{onSubmit:r,className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"firstName",className:"block text-sm font-semibold text-neutral-dark",children:"Vorname"}),(0,t.jsx)("input",{id:"firstName",required:!0,disabled:"loading"===e,className:"w-full bg-neutral-50 px-4 py-3 rounded-lg border border-neutral-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all",placeholder:"Max"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"lastName",className:"block text-sm font-semibold text-neutral-dark",children:"Nachname"}),(0,t.jsx)("input",{id:"lastName",required:!0,disabled:"loading"===e,className:"w-full bg-neutral-50 px-4 py-3 rounded-lg border border-neutral-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all",placeholder:"Mustermann"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-semibold text-neutral-dark",children:"E-Mail Adresse"}),(0,t.jsx)("input",{id:"email",type:"email",required:!0,disabled:"loading"===e,className:"w-full bg-neutral-50 px-4 py-3 rounded-lg border border-neutral-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all",placeholder:"max@beispiel.de"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"company",className:"block text-sm font-semibold text-neutral-dark",children:"Unternehmen (Optional)"}),(0,t.jsx)("input",{id:"company",disabled:"loading"===e,className:"w-full bg-neutral-50 px-4 py-3 rounded-lg border border-neutral-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all",placeholder:"Firma GmbH"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"message",className:"block text-sm font-semibold text-neutral-dark",children:"Ihre Nachricht"}),(0,t.jsx)("textarea",{id:"message",required:!0,disabled:"loading"===e,rows:5,className:"w-full bg-neutral-50 px-4 py-3 rounded-lg border border-neutral-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all resize-y",placeholder:"Beschreiben Sie kurz Ihr Anliegen..."})]}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===e,className:"w-full bg-primary hover:bg-primary-dark text-white font-bold text-lg py-4 rounded-xl transition-all shadow-md hover:shadow-lg disabled:opacity-70 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:"loading"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Wird gesendet..."]}):"Nachricht absenden"}),(0,t.jsx)("p",{className:"text-xs text-text-light text-center",children:"Mit dem Absenden erkläre ich mich mit der Datenschutzerklärung einverstanden."})]})]})}let o=(0,e.i(902498).default)(()=>e.A(662705),{loadableGenerated:{modules:[212445]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-full w-full bg-neutral-medium animate-pulse"})});e.s(["ContactSection",0,e=>{let{showForm:n,showMap:l}=e;return(0,t.jsxs)(s.Section,{className:"bg-neutral-light py-12 md:py-28",children:[(0,t.jsx)(r.Container,{children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 md:gap-16",children:[(0,t.jsxs)("div",{className:"lg:col-span-5 flex flex-col justify-center",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:"Direktkontakt"}),(0,t.jsx)("h3",{className:"font-heading text-4xl font-extrabold text-neutral-dark mb-6",children:"Wir sind für Sie da."}),(0,t.jsx)("p",{className:"text-lg text-text-secondary mb-8",children:"Haben Sie Fragen zu unseren Leistungen oder möchten Sie ein konkretes Projekt besprechen? Rufen Sie uns an oder schreiben Sie uns eine E-Mail."}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary shrink-0",children:(0,t.jsx)("svg",{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",children:(0,t.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-bold text-neutral-dark",children:"Telefon"}),(0,t.jsx)("p",{className:"text-primary hover:text-primary-dark font-medium transition-colors",children:(0,t.jsx)("a",{href:"tel:+4935616892550",children:"+49 3561 6892 550"})})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary shrink-0",children:(0,t.jsxs)("svg",{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",children:[(0,t.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,t.jsx)("polyline",{points:"22,6 12,13 2,6"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-bold text-neutral-dark",children:"E-Mail"}),(0,t.jsx)("p",{className:"text-primary hover:text-primary-dark font-medium transition-colors",children:(0,t.jsx)("a",{href:"mailto:info@e-tib.com",children:"info@e-tib.com"})})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary shrink-0",children:(0,t.jsxs)("svg",{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",children:[(0,t.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,t.jsx)("circle",{cx:"12",cy:"10",r:"3"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-bold text-neutral-dark",children:"Standort"}),(0,t.jsxs)("p",{className:"text-text-secondary leading-relaxed",children:["Gewerbestraße 22",(0,t.jsx)("br",{}),"03172 Guben",(0,t.jsx)("br",{}),"Deutschland"]})]})]})]})]}),n&&(0,t.jsx)("div",{className:"lg:col-span-7 relative",children:(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)("div",{className:"animate-pulse bg-white border border-neutral-100 shadow-xl h-96 rounded-2xl md:rounded-3xl"}),children:(0,t.jsx)(a,{})})})]})}),l&&(0,t.jsx)("section",{className:"mt-12 h-[300px] md:h-[500px] bg-neutral-medium relative overflow-hidden grayscale hover:grayscale-0 transition-all duration-1000",children:(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)("div",{className:"h-full w-full bg-neutral-medium animate-pulse"}),children:(0,t.jsx)(o,{address:"Gewerbestraße 22\\n03172 Guben",lat:51.9547,lng:14.7214})})})]})}],579183)},636899,e=>{"use strict";var t=e.i(452797);function i({children:e,className:i="",id:s,level:r="h2"}){return(0,t.jsx)("div",{id:s,className:i,children:(0,t.jsx)(r,{className:"text-xl md:text-2xl font-bold leading-tight text-text-primary",children:e})})}e.s(["default",()=>i])},813804,e=>{"use strict";var t=e.i(452797),i=e.i(184868),s=e.i(630655),r=e.i(216033);function n({href:e,eventName:n=r.AnalyticsEvents.LINK_CLICK,eventProperties:a={},className:o,children:l,onClick:h}){let{trackEvent:c}=(0,s.useAnalytics)();return(0,t.jsx)(i.default,{href:e,className:o,onClick:()=>{try{c(n,{href:e,...a})}catch{}h&&h()},children:l})}e.s(["default",()=>n])},414264,e=>{"use strict";var t=e.i(452797),i=e.i(976819);e.s(["PDFDownloadBlock",0,({label:e,style:s})=>{let r=(0,i.usePathname)().split("/").filter(Boolean),n=r[r.length-1]||"home",a=`/api/pages/${n}/pdf`;return(0,t.jsx)("div",{className:"my-8",children:(0,t.jsxs)("a",{href:a,className:`inline-flex items-center px-8 py-3.5 font-bold rounded-full transition-all duration-300 shadow-lg hover:shadow-xl group ${"primary"===s?"bg-primary text-white hover:bg-primary-dark":"secondary"===s?"bg-accent text-primary-dark hover:bg-neutral-light":"border-2 border-primary text-primary hover:bg-primary hover:text-white"}`,children:[(0,t.jsx)("span",{className:"mr-3 transition-transform group-hover:scale-12 bit-bounce",children:"📄"}),e]})})}])},306253,e=>{"use strict";var t=e.i(452797),i=e.i(112086),s=e.i(663067);function r({members:e}){return e&&0!==e.length?(0,t.jsx)("section",{className:"py-24 bg-white",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"mb-12",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:"Persönliche Beratung"}),(0,t.jsx)("h3",{className:"font-heading text-4xl font-extrabold text-neutral-dark mb-4",children:"Ihre Ansprechpartner"}),(0,t.jsx)("p",{className:"text-text-secondary max-w-2xl",children:"Sprechen Sie direkt mit unseren Experten für Ihr regionales Projekt."})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((e,r)=>(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*r},className:"group bg-neutral-50 rounded-2xl p-6 border border-neutral-100 hover:shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("div",{className:"relative w-24 h-24 flex-shrink-0 rounded-xl overflow-hidden bg-neutral-200",children:e.image&&"object"==typeof e.image&&e.image.url?(0,t.jsx)(s.default,{src:e.image.url,alt:e.name,fill:!0,className:"object-cover"}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-neutral-400",children:(0,t.jsxs)("svg",{className:"w-12 h-12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",children:[(0,t.jsx)("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),(0,t.jsx)("circle",{cx:"12",cy:"7",r:"4"})]})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-heading font-bold text-xl text-neutral-dark",children:e.name}),(0,t.jsx)("p",{className:"text-primary font-medium text-sm mb-2",children:e.position}),(0,t.jsx)("p",{className:"text-text-secondary text-xs uppercase tracking-widest",children:"e-tib"===e.branch?"E-TIB GmbH":"ing"===e.branch?"Ingenieurgesellschaft":"Bohrtechnik"})]})]}),(0,t.jsxs)("div",{className:"mt-6 pt-6 border-t border-neutral-200 space-y-3",children:[e.email&&(0,t.jsxs)("a",{href:`mailto:${e.email}`,className:"flex items-center gap-3 text-text-secondary hover:text-primary transition-colors text-sm",children:[(0,t.jsxs)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,t.jsx)("polyline",{points:"22,6 12,13 2,6"})]}),e.email]}),e.phone&&(0,t.jsxs)("a",{href:`tel:${e.phone}`,className:"flex items-center gap-3 text-text-secondary hover:text-primary transition-colors text-sm",children:[(0,t.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),e.phone]})]})]},e.id))})]})}):null}e.s(["TeamGrid",()=>r])},287980,e=>{"use strict";var t=e.i(452797),i=e.i(907358),s=e.i(112086),r=e.i(651692),n=e.i(702915),a=e.i(26809),o=e.i(470919),l=e.i(967682);function h(e,t){let i,s=()=>{let{currentTime:s}=t,r=(null===s?0:s.value)/100;i!==r&&e(r),i=r};return l.frame.preUpdate(s,!0),()=>(0,l.cancelFrame)(s)}function c(e){return!("u"<typeof window)&&(e?(0,r.supportsViewTimeline)():(0,r.supportsScrollTimeline)())}var d=e.i(460208),u=e.i(241058),m=e.i(921692);let p=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),g={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function x(e,t,i,s){let r=i[t],{length:n,position:a}=g[t],o=r.current,l=i.time;r.current=Math.abs(e[`scroll${a}`]),r.scrollLength=e[`scroll${n}`]-e[`client${n}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,u.progress)(0,r.scrollLength,r.current);let h=s-l;r.velocity=h>50?0:(0,m.velocityPerSecond)(r.current-o,h)}e.i(653782);var f=e.i(498920),v=e.i(805639),y=e.i(493858),b=e.i(250438);let w={start:0,center:.5,end:1};function j(e,t,i=0){let s=0;if(e in w&&(e=w[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?s=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?s=t/100*document.documentElement.clientWidth:e.endsWith("vh")?s=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(s=t*e),i+s}let P=[0,0],k=[[0,0],[1,1]],N={x:0,y:0},D=new WeakMap,T=new WeakMap,E=new WeakMap,S=new WeakMap,L=new WeakMap,B=e=>e===document.scrollingElement?window:e;function A(e,{container:t=document.scrollingElement,trackContentSize:i=!1,...s}={}){if(!t)return o.noop;let r=E.get(t);r||(r=new Set,E.set(t,r));let n=function(e,t,i,s={}){return{measure:t=>{!function(e,t=e,i){if(i.x.targetOffset=0,i.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)i.x.targetOffset+=s.offsetLeft,i.y.targetOffset+=s.offsetTop,s=s.offsetParent}i.x.targetLength=t===e?t.scrollWidth:t.clientWidth,i.y.targetLength=t===e?t.scrollHeight:t.clientHeight,i.x.containerLength=e.clientWidth,i.y.containerLength=e.clientHeight}(e,s.target,i),x(e,"x",i,t),x(e,"y",i,t),i.time=t,(s.offset||s.target)&&function(e,t,i){let{offset:s=k}=i,{target:r=e,axis:n="y"}=i,a="y"===n?"height":"width",o=r!==e?function(e,t){let i={x:0,y:0},s=e;for(;s&&s!==t;)if((0,b.isHTMLElement)(s))i.x+=s.offsetLeft,i.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let e=s.getBoundingClientRect(),t=(s=s.parentElement).getBoundingClientRect();i.x+=e.left-t.left,i.y+=e.top-t.top}else if(s instanceof SVGGraphicsElement){let{x:e,y:t}=s.getBBox();i.x+=e,i.y+=t;let r=null,n=s.parentNode;for(;!r;)"svg"===n.tagName&&(r=n),n=s.parentNode;s=r}else break;return i}(r,e):N,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},h={width:e.clientWidth,height:e.clientHeight};t[n].offset.length=0;let c=!t[n].interpolate,d=s.length;for(let e=0;e<d;e++){let i=function(e,t,i,s){let r=Array.isArray(e)?e:P,n=0;return"number"==typeof e?r=[e,e]:"string"==typeof e&&(r=(e=e.trim()).includes(" ")?e.split(" "):[e,w[e]?e:"0"]),(n=j(r[0],i,s))-j(r[1],t)}(s[e],h[a],l[a],o[n]);c||i===t[n].interpolatorOffsets[e]||(c=!0),t[n].offset[e]=i}c&&(t[n].interpolate=(0,f.interpolate)(t[n].offset,(0,v.defaultOffset)(s),{clamp:!1}),t[n].interpolatorOffsets=[...t[n].offset]),t[n].progress=(0,y.clamp)(0,1,t[n].interpolate(t[n].current))}(e,i,s)},notify:()=>t(i)}}(t,e,{time:0,x:p(),y:p()},s);if(r.add(n),!D.has(t)){let e=()=>{for(let e of r)e.measure(l.frameData.timestamp);l.frame.preUpdate(i)},i=()=>{for(let e of r)e.notify()},s=()=>l.frame.read(e);D.set(t,s);let n=B(t);window.addEventListener("resize",s),t!==document.documentElement&&T.set(t,(0,d.resize)(t,s)),n.addEventListener("scroll",s),s()}if(i&&!L.has(t)){let e=D.get(t),i={width:t.scrollWidth,height:t.scrollHeight};S.set(t,i);let s=l.frame.read(()=>{let s=t.scrollWidth,r=t.scrollHeight;(i.width!==s||i.height!==r)&&(e(),i.width=s,i.height=r)},!0);L.set(t,s)}let a=D.get(t);return l.frame.read(a,!1,!0),()=>{(0,l.cancelFrame)(a);let e=E.get(t);if(!e||(e.delete(n),e.size))return;let i=D.get(t);D.delete(t),i&&(B(t).removeEventListener("scroll",i),T.get(t)?.(),window.removeEventListener("resize",i));let s=L.get(t);s&&((0,l.cancelFrame)(s),L.delete(t)),S.delete(t)}}let V=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[k,"contain"]],M={start:0,end:1};function R(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,i]of V)if(function(e,t){let i=function(e){if(2!==e.length)return;let t=[];for(let i of e)if(Array.isArray(i))t.push(i);else{if("string"!=typeof i)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let i=M[t[0]],s=M[t[1]];if(void 0!==i&&void 0!==s)return[i,s]}(i);if(!e)return;t.push(e)}return t}(e);if(!i)return!1;for(let e=0;e<2;e++){let s=i[e],r=t[e];if(s[0]!==r[0]||s[1]!==r[1])return!1}return!0}(e,t))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let C=new Map;function I(e){let t={value:0},i=A(i=>{t.value=100*i[e.axis].progress},e);return{currentTime:t,cancel:i}}function z({source:e,container:t,...i}){let{axis:s}=i;e&&(t=e);let r=C.get(t);r||(r=new Map,C.set(t,r));let n=i.target??"self",a=r.get(n);a||(a={},r.set(n,a));let o=s+(i.offset??[]).join(",");return a[o]||(i.target&&c(i.target)?R(i.offset)?a[o]=new ViewTimeline({subject:i.target,axis:s}):a[o]=I({container:t,...i}):c()?a[o]=new ScrollTimeline({source:t,axis:s}):a[o]=I({container:t,...i})),a[o]}function U(e,{axis:t="y",container:i=document.scrollingElement,...s}={}){var r,n;let a,l,d;if(!i)return o.noop;let u={axis:t,container:i,...s};return"function"==typeof e?(r=e,n=u,2===r.length?A(e=>{r(e[n.axis].progress,e)},n):h(r,z(n))):(a=z(u),l=u.target?R(u.offset):void 0,d=u.target?c(u.target)&&!!l:c(),e.attachTimeline({timeline:d?a:void 0,...l&&d&&{rangeStart:l.rangeStart,rangeEnd:l.rangeEnd},observe:e=>(e.pause(),h(t=>{e.time=e.iterationDuration*t},a))}))}var F=e.i(134174),W=e.i(736986);let O=()=>({scrollX:(0,n.motionValue)(0),scrollY:(0,n.motionValue)(0),scrollXProgress:(0,n.motionValue)(0),scrollYProgress:(0,n.motionValue)(0)}),H=e=>!!e&&!e.current;function G(e,t,i,s){return{factory:r=>U(r,{...t,axis:e,container:i?.current||void 0,target:s?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}var $=e.i(753942);function X(e,t){let s=function(e){let t=(0,F.useConstant)(()=>(0,n.motionValue)(e)),{isStatic:s}=(0,i.useContext)($.MotionConfigContext);if(s){let[,s]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",s),[])}return t}(t()),r=()=>s.set(t());return r(),(0,W.useIsomorphicLayoutEffect)(()=>{let t=()=>l.frame.preRender(r,!1,!0),i=e.map(e=>e.on("change",t));return()=>{i.forEach(e=>e()),(0,l.cancelFrame)(r)}}),s}function K(e,t){let i=(0,F.useConstant)(()=>[]);return X(e,()=>{i.length=0;let s=e.length;for(let t=0;t<s;t++)i[t]=e[t].get();return t(i)})}let Y=[{year:"2015",date:"16.12.2015",title:"Gründung E-TIB GmbH",desc:"Aufbau der Kernkompetenzen: Kabelbau, Kabelpflugarbeiten, Horizontalspülbohrungen, Elektromontagen bis 110 kV, Glasfaser-Kabelmontagen."},{year:"2019",date:"04.02.2019",title:"Gründung E-TIB Ingenieurgesellschaft mbH",desc:"Erweiterung in Planung, Projektierung und Dokumentation. Abdeckung komplexer Querungen."},{year:"2019",date:"14.11.2019",title:"Gründung E-TIB Verwaltung GmbH",desc:"Bündelung von Erwerb, Vermietung, Verpachtung und Verwaltung von Immobilien, Grundstücken, Maschinen und Geräten."},{year:"2025",date:"21.10.2025",title:"Gründung E-TIB Bohrtechnik GmbH",desc:"Spezialisierung auf präzise Horizontalspülbohrungen in allen Bodenklassen zur Sicherung der technologischen Marktdominanz."}];function J(){let e=i.useRef(null),{scrollYProgress:o}=function({container:e,target:t,...s}={}){var n;let o=(0,F.useConstant)(O);n=s.offset,!("u"<typeof window)&&(t?(0,r.supportsViewTimeline)()&&!!R(n):(0,r.supportsScrollTimeline)())&&(o.scrollXProgress.accelerate=G("x",s,e,t),o.scrollYProgress.accelerate=G("y",s,e,t));let l=(0,i.useRef)(null),h=(0,i.useRef)(!1),c=(0,i.useCallback)(()=>(l.current=U((e,{x:t,y:i})=>{o.scrollX.set(t.current),o.scrollXProgress.set(t.progress),o.scrollY.set(i.current),o.scrollYProgress.set(i.progress)},{...s,container:e?.current||void 0,target:t?.current||void 0}),()=>{l.current?.()}),[e,t,JSON.stringify(s.offset)]);return(0,W.useIsomorphicLayoutEffect)(()=>{if(h.current=!1,!(H(e)||H(t)))return c();h.current=!0},[c]),(0,i.useEffect)(()=>h.current?((0,a.invariant)(!H(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,a.invariant)(!H(t),"Target ref is defined but not hydrated","use-scroll-ref"),c()):void 0,[c]),o}({target:e,offset:["start center","end center"]}),l=function e(t,i,s,r){if("function"==typeof t){let e;return n.collectMotionValues.current=[],t(),e=X(n.collectMotionValues.current,t),n.collectMotionValues.current=void 0,e}if(void 0!==s&&!Array.isArray(s)&&"function"!=typeof i){var a=t,o=i,l=s,h=r;let n=(0,F.useConstant)(()=>Object.keys(l)),c=(0,F.useConstant)(()=>({}));for(let t of n)c[t]=e(a,o,l[t],h);return c}let c="function"==typeof i?i:function(...e){let t=!Array.isArray(e[0]),i=t?0:-1,s=e[0+i],r=e[1+i],n=e[2+i],a=e[3+i],o=(0,f.interpolate)(r,n,a);return t?o(s):o}(i,s,r),d=Array.isArray(t)?K(t,c):K([t],([e])=>c(e)),u=Array.isArray(t)?void 0:t.accelerate;return u&&!u.isTransformed&&"function"!=typeof i&&Array.isArray(s)&&r?.clamp!==!1&&(d.accelerate={...u,times:i,keyframes:s,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),d}(o,[0,1],["0%","100%"]);return(0,t.jsx)("section",{className:"py-24 bg-white relative",children:(0,t.jsxs)("div",{className:"container max-w-4xl",children:[(0,t.jsxs)("div",{className:"text-center mb-16",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:"Unsere Geschichte"}),(0,t.jsx)("h3",{className:"font-heading text-4xl font-extrabold text-neutral-dark",children:"Meilensteine der Entwicklung"})]}),(0,t.jsxs)("div",{ref:e,className:"relative",children:[(0,t.jsx)("div",{className:"absolute left-4 md:left-1/2 top-0 bottom-0 w-1 bg-neutral-200 -translate-x-1/2 rounded-full overflow-hidden",children:(0,t.jsx)(s.motion.div,{className:"w-full bg-primary",style:{height:l}})}),(0,t.jsx)("div",{className:"space-y-16",children:Y.map((e,i)=>{let r=i%2==0;return(0,t.jsxs)(s.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:`relative flex flex-col md:flex-row items-center ${r?"md:flex-row-reverse":""}`,children:[(0,t.jsx)("div",{className:"absolute left-4 md:left-1/2 w-8 h-8 rounded-full bg-white border-4 border-primary z-10 -translate-x-1/2 shadow-lg"}),(0,t.jsx)("div",{className:`w-full pl-16 md:pl-0 md:w-1/2 ${r?"md:pr-16 text-left md:text-right":"md:pl-16 text-left"}`,children:(0,t.jsxs)("div",{className:"bg-neutral-50 p-6 rounded-2xl shadow-sm border border-neutral-100 hover:shadow-md transition-shadow",children:[(0,t.jsx)("span",{className:"inline-block py-1 px-3 rounded-full bg-primary/10 text-primary font-bold text-sm mb-4",children:e.date}),(0,t.jsx)("h4",{className:"font-heading font-bold text-2xl mb-2 text-neutral-dark",children:e.title}),(0,t.jsx)("p",{className:"text-text-secondary",children:e.desc})]})})]},i)})})]})]})})}e.s(["CompanyTimeline",()=>J],287980)},610408,e=>{"use strict";var t=e.i(452797),i=e.i(184868),s=e.i(663067),r=e.i(112086);function n({data:e}){let n=e?.title||"DIE EXPERTEN FÜR KABELTIEFBAU",a=e?.subtitle||"Wir verbinden Infrastruktur mit Präzision. Von Horizontalbohrungen bis zu komplexen Leitungsnetzen.",o=e?.videoUrl||"/assets/dummy-hero.mp4",l=e?.posterImage?.url||"/assets/photos/DJI_0048.JPG",h=e?.posterImage?.alt||"E-TIB Gruppe Baustelle",c=e?.ctaLabel||"Unternehmen entdecken",d=e?.ctaHref||"#unternehmen",u=e?.secondaryCtaLabel||"Projekt anfragen",m=e?.secondaryCtaHref||"/kontakt";return(0,t.jsxs)("div",{className:"relative w-full h-[100svh] flex items-center justify-center overflow-hidden bg-neutral-dark",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 overflow-hidden",children:(0,t.jsx)(s.default,{src:l,alt:h,fill:!0,priority:!0,className:"object-cover opacity-40 grayscale contrast-125",sizes:"100vw"})}),o&&(0,t.jsx)("video",{className:"absolute inset-0 w-full h-full object-cover opacity-50 z-1 pointer-events-none",src:o,poster:l,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-primary-dark/30 z-[2] mix-blend-multiply"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-transparent to-black/60 z-[3]"}),(0,t.jsx)("div",{className:"container relative z-[4] text-center px-4",children:(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1.2,ease:[.16,1,.3,1]},children:[(0,t.jsx)("h1",{className:"font-heading font-bold text-4xl md:text-6xl lg:text-8xl text-white mb-6 uppercase tracking-tight drop-shadow-lg",dangerouslySetInnerHTML:{__html:n.replace("KABELTIEFBAU",'<span class="text-primary-light">KABELTIEFBAU</span>').replace(/\n/g,"<br />")}}),(0,t.jsx)("p",{className:"text-lg md:text-xl lg:text-2xl text-white/90 max-w-3xl mx-auto mb-12 drop-shadow",children:a}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6",children:[(0,t.jsx)(i.default,{href:d,className:"group relative inline-flex items-center justify-center px-8 py-4 text-lg font-bold text-white bg-primary rounded-none shadow-lg transition-transform hover:-translate-y-1",children:(0,t.jsx)("span",{className:"relative z-10",children:c})}),(0,t.jsx)(i.default,{href:m,className:"px-8 py-4 text-lg font-bold text-white border-2 border-white/60 hover:bg-white hover:text-primary rounded-none transition-colors",children:u})]})]})})]})}e.s(["HeroVideo",()=>n])},138557,e=>{"use strict";var t=e.i(452797),i=e.i(112086),s=e.i(663067);let r=[{title:"E-TIB GmbH",desc:"Ausführung elektrischer Infrastrukturprojekte und komplexer Tiefbaumaßnahmen.",icon:"M13 10V3L4 14h7v7l9-11h-7z",bgImage:"/assets/photos/DJI_0243.JPG"},{title:"Bohrtechnik GmbH",desc:"Präzise Horizontalbohrungen und steuerbare Spülbohrtechnik in allen Bodenklassen.",icon:"M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0zm10-8v16m-8-8h16",bgImage:"/assets/photos/DSC08653.JPG"},{title:"Ingenieurgesellschaft",desc:"Fachübergreifende Planung, Projektierung und digitale Dokumentation von Leitungsnetzen.",icon:"M14 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V8l-6-6z M14 3v5h5 M16 13H8 M16 17H8 M10 9H8",bgImage:"/assets/photos/DSC01137.JPG"},{title:"Verwaltung GmbH",desc:"Zentrale Koordination, moderner Einkauf und effizientes Finanzmanagement der Gruppe.",icon:"M3 21h18 M3 7h18 M5 21V7 M19 21V7 M9 21v-5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v5 M12 3v4",bgImage:"/assets/photos/DJI_0037.JPG"}],n={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.15}}},a={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}}};function o({data:e}){let o=e?.badge||"Die Gruppe",l=e?.title||"Geballte Kompetenz unter einem Dach",h=e?.companies?.map(e=>({title:e.title,desc:e.description,icon:e.icon||"M13 10V3L4 14h7v7l9-11h-7z",bgImage:e.backgroundImage?.url||"/assets/photos/DJI_0243.JPG"}))||r;return(0,t.jsx)("section",{id:"unternehmen",className:"py-24 bg-neutral overflow-hidden",children:(0,t.jsxs)("div",{className:"container relative z-10",children:[(0,t.jsxs)("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:o}),(0,t.jsx)("h3",{className:"font-heading text-4xl md:text-5xl font-extrabold text-text-primary",children:l})]}),(0,t.jsx)(i.motion.div,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",variants:n,initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},children:h.map((e,r)=>(0,t.jsxs)(i.motion.div,{variants:a,className:"group relative rounded-none overflow-hidden aspect-[4/5] flex flex-col justify-end p-8 shadow-xl border-b-4 border-primary transition-colors duration-500 bg-white",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white z-0",children:(0,t.jsx)(s.default,{src:e.bgImage,alt:e.title||"",fill:!0,className:"object-cover opacity-80 group-hover:scale-105 group-hover:opacity-100 transition-all duration-700 ease-in-out",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-white via-white/80 to-white/10 opacity-90 group-hover:opacity-100 transition-opacity duration-500 z-0"}),(0,t.jsxs)("div",{className:"relative z-10 flex flex-col h-full justify-between",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-none bg-primary text-white flex items-center justify-center group-hover:bg-primary-dark transition-all duration-300 shadow-md",children:(0,t.jsx)("svg",{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",children:(0,t.jsx)("path",{d:e.icon})})}),(0,t.jsxs)("div",{className:"mt-auto transform translate-y-4 group-hover:translate-y-0 transition-transform duration-500 ease-out",children:[(0,t.jsx)("h4",{className:"font-heading font-bold text-2xl text-text-primary mb-2 leading-tight group-hover:text-primary transition-colors",children:e.title}),(0,t.jsx)("p",{className:"text-text-secondary leading-relaxed text-sm h-0 opacity-0 group-hover:h-auto group-hover:opacity-100 group-hover:mt-3 transition-all duration-500 ease-out overflow-hidden line-clamp-3",children:e.desc})]})]})]},r))})]})})}e.s(["SubCompanyTiles",()=>o])},285997,e=>{"use strict";var t=e.i(452797),i=e.i(184868),s=e.i(663067),r=e.i(112086),n=e.i(907358);function a({data:e}){let[a,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{o(!0)},[]);let l=e?.badge||"Leistungsspektrum",h=e?.title||"Umfassende Lösungen für komplexe Netzwerke",c=e?.ctaLabel||"Alle Kompetenzen ansehen",d=e?.ctaHref||"/kompetenzen",u=e?.items||[];return a?(0,t.jsx)("section",{className:"py-24 bg-neutral text-neutral-dark overflow-hidden relative",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-end mb-12",children:[(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:l}),(0,t.jsx)("h3",{className:"font-heading text-4xl md:text-5xl font-extrabold text-neutral-dark mb-4",children:h})]}),(0,t.jsxs)(i.default,{href:d,className:"inline-flex items-center font-bold text-primary hover:text-primary-dark transition-colors group mt-6 md:mt-0 bg-primary/5 hover:bg-primary/10 px-6 py-3 rounded-xl",children:[c,(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5 ml-2 transform group-hover:translate-x-1 transition-transform",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4 auto-rows-[220px]",children:u.map((e,i)=>{let n="large"===e.size,a="medium"===e.size,o="accent"===e.size,l=e.image?.url,h="rounded-none overflow-hidden relative group ";return(n?h+="md:col-span-2 md:row-span-2":a?h+="md:col-span-2 lg:col-span-2":o?h+="md:col-span-1 bg-primary text-white p-6 md:p-8 flex flex-col justify-center border-none shadow-md":h+="md:col-span-1",o)?(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*i},className:h,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-primary/30 blur-3xl rounded-full -mr-10 -mt-10 group-hover:bg-primary/50 transition-colors duration-500"}),(0,t.jsx)("h4",{className:"font-bold text-xl md:text-2xl relative z-10 leading-snug",children:e.title}),e.description&&(0,t.jsx)("p",{className:"text-white/60 text-sm mt-3 relative z-10",children:e.description})]},i):(0,t.jsxs)(r.motion.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.1*i},className:h,children:[!l&&(0,t.jsx)("div",{className:"absolute inset-0 bg-neutral-dark z-0 transition-colors duration-500 group-hover:bg-primary-dark"}),l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white z-0",children:(0,t.jsx)(s.default,{src:l,alt:e.title||"",fill:!0,className:"object-cover opacity-90 group-hover:scale-105 group-hover:opacity-100 transition-all duration-700 ease-in-out",sizes:n?"(max-width: 768px) 100vw, 50vw":"(max-width: 768px) 100vw, 25vw"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-90 transition-opacity duration-500 z-0"})]}),(0,t.jsxs)("div",{className:"relative z-10 p-8 flex flex-col justify-end h-full text-white",children:[e.tag&&(0,t.jsx)("span",{className:"inline-block px-3 py-1 bg-primary/20 backdrop-blur-md rounded-full text-xs font-bold uppercase tracking-wider text-primary-light mb-3 w-fit border border-primary/30",children:e.tag}),(0,t.jsx)("h4",{className:`font-heading font-extrabold mb-2 ${n?"text-3xl md:text-5xl":"text-xl md:text-2xl"}`,children:e.title}),e.description&&(0,t.jsx)("p",{className:`text-white/80 ${n?"text-lg md:text-xl max-w-sm":"text-sm"}`,children:e.description})]})]},i)})})]})}):(0,t.jsx)("section",{className:"py-24 bg-neutral text-neutral-dark overflow-hidden relative",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-end mb-12",children:(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsx)("h2",{className:"text-primary font-bold tracking-wider uppercase text-sm mb-3",children:l}),(0,t.jsx)("h3",{className:"font-heading text-4xl md:text-5xl font-extrabold text-neutral-dark mb-4",children:h})]})}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4 auto-rows-[220px]"})]})})}e.s(["CompetenceBentoGrid",()=>a])},677705,e=>{"use strict";var t=e.i(452797),i=e.i(907358),s=e.i(112086),r=e.i(184868),n=e.i(663067);function a({references:e,data:a}){let o=i.useRef(null),l=a?.badge||"Ausgewählte Projekte",h=a?.title||"Referenzen & Erfolge",c=a?.description||"Ein Auszug unserer erfolgreich abgeschlossenen Projekte im Bereich Kabeltiefbau, Bohrtechnik und Netzinfrastruktur.",d=a?.ctaLabel||"Alle Referenzen ansehen",u=a?.ctaHref||"/referenzen";if(!e||0===e.length)return null;let m=["/assets/photos/DSC01123.JPG","/assets/photos/DSC00850.JPG","/assets/photos/DSC01129.JPG","/assets/photos/DSC00010.JPG"];return(0,t.jsxs)("section",{className:"py-24 bg-neutral-dark text-white overflow-hidden relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-neutral-dark via-neutral-900 to-neutral-dark z-0"}),(0,t.jsxs)("div",{className:"container relative z-10 mb-12 flex flex-col md:flex-row justify-between items-end gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-primary-light font-bold tracking-wider uppercase text-sm mb-3",children:l}),(0,t.jsx)("h3",{className:"font-heading text-4xl md:text-5xl font-extrabold",children:h})]}),(0,t.jsx)("p",{className:"text-white/60 max-w-md",children:c})]}),(0,t.jsx)("div",{className:"relative z-10",children:(0,t.jsx)("div",{ref:o,className:"flex gap-6 overflow-x-auto pb-12 pt-4 snap-x snap-mandatory hide-scrollbar px-[calc((100vw-min(100%,1280px))/2)]",children:e.map((e,i)=>{let r=e.image&&"object"==typeof e.image&&e.image.url?e.image.url:m[i%m.length];return(0,t.jsx)(s.motion.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.1*i,duration:.6,ease:"easeOut"},className:"flex-shrink-0 w-[320px] md:w-[480px] snap-center group cursor-pointer",children:(0,t.jsxs)("div",{className:"relative aspect-[16/10] bg-neutral-800 rounded-3xl overflow-hidden mb-5 border border-white/5 shadow-2xl",children:[(0,t.jsx)(n.default,{src:r,alt:e.title,fill:!0,sizes:"(max-width: 768px) 320px, 480px",className:"object-cover saturate-50 opacity-70 group-hover:scale-105 group-hover:opacity-100 group-hover:saturate-100 transition-all duration-700 ease-in-out"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/30 to-transparent opacity-80 group-hover:opacity-90 transition-opacity duration-300"}),(0,t.jsxs)("div",{className:"absolute bottom-6 left-8 right-8 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-500",children:[(0,t.jsx)("span",{className:"inline-block py-1.5 px-4 rounded-full bg-primary/30 backdrop-blur-md text-white text-xs font-bold uppercase tracking-widest mb-3 border border-primary/50",children:e.category}),(0,t.jsx)("h4",{className:"font-heading text-2xl md:text-3xl font-bold line-clamp-2",children:e.title})]})]})},e.id)})})}),(0,t.jsx)("div",{className:"container relative z-10 mt-4 flex justify-center",children:(0,t.jsxs)(r.default,{href:u,className:"px-8 py-4 rounded-xl bg-white/5 border border-white/20 hover:bg-white hover:text-neutral-dark hover:shadow-[0_0_20px_rgba(255,255,255,0.3)] transition-all font-bold flex items-center gap-3 backdrop-blur-sm",children:[d,(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})})]})}e.s(["ReferencesSlider",()=>a])},388732,e=>{"use strict";var t=e.i(452797),i=e.i(663067),s=e.i(190422);e.i(445774);var r=e.i(370476),n=e.i(575003),a=e.i(982016),o=e.i(902498),l=e.i(976819);let h=(0,o.default)(()=>e.A(357643),{loadableGenerated:{modules:[888085]},ssr:!1});function c({data:e}){let o=(0,s.useTranslations)("Home.gallery"),c=(0,l.useSearchParams)(),d=["/uploads/2024/12/DSC07433-Large-600x400.webp","/uploads/2024/12/DSC07460-Large-600x400.webp","/uploads/2024/12/DSC07469-Large-600x400.webp","/uploads/2024/12/DSC07539-Large-600x400.webp","/uploads/2024/12/DSC07655-Large.webp","/uploads/2024/12/DSC07768-Large.webp"],u=c.get("photo"),m=u?parseInt(u,10):0;return(0,t.jsxs)(r.Section,{className:"bg-white text-white py-32",children:[(0,t.jsxs)(n.Container,{children:[(0,t.jsx)(a.Heading,{level:2,subtitle:e?.subtitle||o("subtitle"),align:"center",children:e?.title||o("title")}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((e,s)=>(0,t.jsxs)("button",{type:"button","aria-label":`${o("alt")} ${s+1}`,onClick:()=>{let e=new URLSearchParams(c.toString());e.set("photo",s.toString()),window.history.replaceState(null,"",`?${e.toString()}`)},className:"relative aspect-[4/3] overflow-hidden rounded-3xl group shadow-lg hover:shadow-2xl transition-all duration-700 cursor-pointer",children:[(0,t.jsx)(i.default,{src:e,alt:`${o("alt")} ${s+1}`,fill:!0,className:"object-cover transition-transform duration-1000 group-hover:scale-110",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",loading:"lazy"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-primary-dark/20 group-hover:bg-transparent transition-all duration-500"}),(0,t.jsx)("div",{className:"absolute inset-0 border-0 group-hover:border-[16px] border-white/10 transition-all duration-500 pointer-events-none"})]},s))})]}),(0,t.jsx)(h,{isOpen:null!==u,images:d,initialIndex:m,onClose:()=>{let e=new URLSearchParams(c.toString());e.delete("photo"),window.history.replaceState(null,"",`?${e.toString()}`)}})]})}e.s(["default",()=>c])},878286,e=>{"use strict";var t=e.i(452797),i=e.i(907358),s=e.i(190422);function r({data:e}){let r=(0,s.useTranslations)("Home.video"),[n,a]=(0,i.useState)(!1),o=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=new IntersectionObserver(([t])=>{t.isIntersecting&&(a(!0),e.disconnect())},{rootMargin:"200px"});return o.current&&e.observe(o.current),()=>e.disconnect()},[]),(0,t.jsxs)("section",{ref:o,className:"relative h-[70vh] overflow-hidden bg-primary",children:[n&&(0,t.jsx)("video",{className:"w-full h-full object-cover opacity-60",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:(0,t.jsx)("source",{src:"/uploads/2024/12/making-of-metal-cable-on-factory-2023-11-27-04-55-16-utc-2.webm",type:"video/webm"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/60 via-transparent to-primary/60 flex items-center justify-center pointer-events-none",children:(0,t.jsx)("div",{className:"max-w-5xl px-6 text-center animate-slide-up pointer-events-auto",children:(0,t.jsx)("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-extrabold text-white leading-[1.1]",children:e?.title?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title.replace(/<future>/g,'<span class="italic text-accent">').replace(/<\/future>/g,"</span>")}}):r.rich("title",{future:e=>(0,t.jsx)("span",{className:"italic text-accent",children:e})})})})})]})}e.s(["default",()=>r])}]);
|
|
|
|
//# debugId=638e6d36-f0aa-c5cb-4218-ac2a4a2e48b0
|