{"version":3,"file":"shared-lib.fNr3BN9m.mjs","names":["useState","useCallback","useMemo","startTransition","useState","useCallback","useMemo","startTransition"],"sources":["https:/framerusercontent.com/modules/4fc4ysfpzr9vNf2DklHN/KHZ8eoWsVSpUoIyGwToy/CookieBanner.js","https:/framerusercontent.com/modules/Ko5jZvjN9qfFhhyTSIT8/Sdekv8rCR5GD7vR2eJu6/CookieSettingsLink.js","https:/framerusercontent.com/modules/h2KlZVE5Mzy5KZTLoclA/dIlKcTYx4OrN7uQmwnn8/FPs77pFJ0.js","https:/framerusercontent.com/modules/mYroZrVjBxb21XzqMitL/SAIBIH6ApnhWHkZhFGIh/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const FONT_OVERRIDE_STYLE_ID=\"rf-font-override\";const CONSENT_KEY=\"cookieConsent\";const REOPEN_EVENT=\"reopen-cookie-banner\";const CONSENT_EVENT=\"cookie-consent-given\";function injectFontOverride(){if(typeof document===\"undefined\")return;const existing=document.getElementById(FONT_OVERRIDE_STYLE_ID);if(existing)return;const style=document.createElement(\"style\");style.id=FONT_OVERRIDE_STYLE_ID;style.textContent=\"html, html * { font-family: Arial, Helvetica, sans-serif !important; }\";document.head.appendChild(style);}function removeFontOverride(){if(typeof document===\"undefined\")return;const existing=document.getElementById(FONT_OVERRIDE_STYLE_ID);if(existing?.parentNode){existing.parentNode.removeChild(existing);}}/**\n * @framerSupportedLayoutWidth auto-prefer-fixed\n * @framerSupportedLayoutHeight auto-prefer-fixed\n */export default function CookieBanner(props){const isStaticRenderer=useIsStaticRenderer();const[_note]=useState(props._controlsNote);const[visible,setVisible]=useState(false);const hideBanner=useCallback(()=>{startTransition(()=>{setVisible(false);});},[]);const showBanner=useCallback(()=>{startTransition(()=>{setVisible(true);});},[]);const dispatchConsentEvent=useCallback(detail=>{if(typeof window===\"undefined\")return;window.dispatchEvent(new window.CustomEvent(CONSENT_EVENT,{detail}));},[]);const handleAccept=useCallback(()=>{if(typeof window!==\"undefined\"){window.localStorage.setItem(CONSENT_KEY,\"accepted\");}removeFontOverride();hideBanner();dispatchConsentEvent(\"accepted\");},[dispatchConsentEvent,hideBanner]);const handleDecline=useCallback(()=>{if(typeof window!==\"undefined\"){window.localStorage.setItem(CONSENT_KEY,\"declined\");}injectFontOverride();hideBanner();dispatchConsentEvent(\"declined\");},[dispatchConsentEvent,hideBanner]);useEffect(()=>{if(isStaticRenderer)return;if(typeof window===\"undefined\")return;const consent=window.localStorage.getItem(CONSENT_KEY);if(consent===\"declined\"){injectFontOverride();hideBanner();return;}if(consent===\"accepted\"){hideBanner();return;}const timeoutId=window.setTimeout(()=>{showBanner();},600);return()=>{window.clearTimeout(timeoutId);};},[hideBanner,isStaticRenderer,showBanner]);useEffect(()=>{if(isStaticRenderer)return;if(typeof window===\"undefined\")return;const onReopen=()=>{showBanner();};window.addEventListener(REOPEN_EVENT,onReopen);return()=>{window.removeEventListener(REOPEN_EVENT,onReopen);};},[isStaticRenderer,showBanner]);const[acceptHover,setAcceptHover]=useState(false);const[declineHover,setDeclineHover]=useState(false);const acceptStyle=useMemo(()=>({background:\"#6C63FF\",color:\"#FAFAFA\",fontFamily:\"Space Grotesk\",fontWeight:700,fontSize:14,lineHeight:1,padding:\"10px 24px\",borderRadius:8,border:\"none\",cursor:\"pointer\",opacity:acceptHover?.85:1,transition:\"opacity 0.2s ease\"}),[acceptHover]);const declineStyle=useMemo(()=>({background:\"transparent\",color:\"#6B6B8A\",fontFamily:\"Manrope\",fontWeight:500,fontSize:14,lineHeight:1.2,padding:\"10px 16px\",border:\"none\",cursor:\"pointer\",textDecoration:declineHover?\"underline\":\"none\"}),[declineHover]);if(isStaticRenderer||!visible)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",bottom:0,left:0,right:0,zIndex:9999,background:\"#1A1A24\",borderTop:\"1px solid rgba(250,250,250,0.1)\",padding:\"24px 32px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1280,margin:\"0 auto\",display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"space-between\",columnGap:32,rowGap:16},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:\"Manrope\",fontWeight:500,fontSize:14,color:\"rgba(250,250,250,0.7)\",lineHeight:1.5,flex:1,maxWidth:640},children:\"Diese Website verwendet Cookies und externe Dienste (Google Fonts, Tally, Calendly). Mit Klick auf Akzeptieren stimmen Sie deren Nutzung zu.\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",gap:12,flexShrink:0},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleAccept,onMouseEnter:()=>startTransition(()=>setAcceptHover(true)),onMouseLeave:()=>startTransition(()=>setAcceptHover(false)),style:acceptStyle,children:\"Akzeptieren\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleDecline,onMouseEnter:()=>startTransition(()=>setDeclineHover(true)),onMouseLeave:()=>startTransition(()=>setDeclineHover(false)),style:declineStyle,children:\"Nur notwendige\"})]})]})})});}addPropertyControls(CookieBanner,{_controlsNote:{type:ControlType.String,title:\"Note\",defaultValue:\"CookieBanner is configured in code.\",hidden:()=>true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CookieBanner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto-prefer-fixed\",\"framerSupportedLayoutWidth\":\"auto-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CookieBanner.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo,useState,startTransition,useCallback}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CookieSettingsLink(props){const isStaticRenderer=useIsStaticRenderer();const[_note]=useState(props._controlsNote);const[isHover,setIsHover]=useState(false);const handleClick=useCallback(()=>{if(typeof window!==\"undefined\"){window.dispatchEvent(new window.CustomEvent(\"reopen-cookie-banner\"));}},[]);const style=useMemo(()=>({position:\"relative\",display:\"inline\",fontFamily:\"Manrope\",fontSize:12,fontWeight:400,color:\"#6B6B8A\",letterSpacing:\"0.02em\",textDecoration:isHover?\"underline\":\"none\",background:\"none\",border:\"none\",padding:0,margin:0,cursor:\"pointer\",lineHeight:1.2}),[isHover]);return /*#__PURE__*/_jsx(\"button\",{type:\"button\",style:style,onClick:isStaticRenderer?undefined:handleClick,onMouseEnter:()=>startTransition(()=>setIsHover(true)),onMouseLeave:()=>startTransition(()=>setIsHover(false)),children:\"Cookie-Einstellungen\"});}addPropertyControls(CookieSettingsLink,{_controlsNote:{type:ControlType.String,title:\"Note\",defaultValue:\"CookieSettingsLink is configured in code.\",hidden:()=>true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CookieSettingsLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CookieSettingsLink.map","// Generated by Framer (780c728)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-sJuiv .framer-styles-preset-1lgrs1:not(.rich-text-wrapper), .framer-sJuiv .framer-styles-preset-1lgrs1.rich-text-wrapper a { --framer-link-hover-text-color: #6b6b8a; --framer-link-hover-text-decoration: underline; --framer-link-hover-text-decoration-color: #6B6B8A; --framer-link-text-color: #6b6b8a; --framer-link-text-decoration: none; transition-delay: 0s; transition-duration: 0.15s; transition-property: color; transition-timing-function: cubic-bezier(0.3, 0, 0.7, 1); }\"];export const className=\"framer-sJuiv\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (f3f9b36)\nexport default function metadata(params,activeLocale){return{description:\"The only personal branding agency professional footballers need. We build the brand that outlasts your career.\",robots:\"max-image-preview:large\",title:\"Reachfield — Personal Branding for Footballers\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"yOAAkX,SAAS,GAAoB,CAAwG,GAApG,OAAO,SAAW,KAAkC,SAAS,eAAe,EAAuB,CAAa,OAAO,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,EAAuB,EAAM,YAAY,yEAAyE,SAAS,KAAK,YAAY,EAAM,CAAE,SAAS,GAAoB,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAS,SAAS,eAAe,EAAuB,CAAI,GAAU,YAAY,EAAS,WAAW,YAAY,EAAS,CAGv5B,SAAwB,EAAa,EAAM,CAAC,IAAM,EAAiB,GAAqB,CAAM,CAAC,GAAOA,EAAS,EAAM,cAAc,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAO,EAAWC,MAAgB,CAAC,MAAoB,CAAC,EAAW,GAAM,EAAG,EAAG,EAAE,CAAC,CAAO,EAAWA,MAAgB,CAAC,MAAoB,CAAC,EAAW,GAAK,EAAG,EAAG,EAAE,CAAC,CAAO,EAAqBA,EAAY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