{"version":3,"file":"Examples.fvvotPQv.mjs","names":["useState","useRef","useCallback","__esmMin","init_npm_react_18_3_1","window","ce","init_jsx_runtime","ne","J","_e","de","init_ssg_sandbox_shims","init_framer_CKT6jEEQ","useObserveData","RenderTarget","Data","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","centerContent","init_Utils","init_utils_js__0_9","withSourcePage","elementRef","latestUrlRef","retryTimeoutRef","retryRafRef","retryCountRef","setRefs","node","ref","findTargetField","root","applyValueToField","prototype","input","descriptor","url","syncSourcePage","clearRetryTimers","scheduleRetrySync","trySync","onLocationChange","originalPushState","originalReplaceState","observer","args","Component","props","RedirectOnSuccess","hasRedirectedRef","redirectTimeoutRef","settleTimeoutRef","renderTarget","triggerRedirect","checkForSuccessText","init_Examples"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/F2LGLiLPZVS94MoVTta3/nVYiXzxAKH7JVmXeTFY6/Examples.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});function findScopedSwatchTargets(textNode){if(typeof window===\"undefined\")return null;if(!textNode)return null;let ancestor=textNode.parentElement;while(ancestor){const directChildren=Array.from(ancestor.children);const directColorChildren=directChildren.filter(child=>child.getAttribute(\"data-framer-name\")===\"Color\");const directTextBranchChildren=directChildren.filter(child=>child===textNode||child.contains(textNode));if(directColorChildren.length===1&&directTextBranchChildren.length===1){return{swatchRoot:ancestor,colorElement:directColorChildren[0]};}ancestor=ancestor.parentElement;}return null;}function parseCssAlpha(colorValue){const value=colorValue.trim().toLowerCase();if(!value)return null;if(value===\"transparent\")return 0;const parseAlphaToken=token=>{const cleaned=token.trim();if(!cleaned)return null;const numeric=cleaned.endsWith(\"%\")?Number(cleaned.slice(0,-1))/100:Number(cleaned);if(!Number.isFinite(numeric))return null;return Math.max(0,Math.min(1,numeric));};if(/^#[0-9a-f]{3}$/i.test(value)||/^#[0-9a-f]{6}$/i.test(value))return 1;if(/^#[0-9a-f]{4}$/i.test(value)){const alphaNibble=value[4];const alpha=parseInt(alphaNibble+alphaNibble,16)/255;return Math.max(0,Math.min(1,alpha));}if(/^#[0-9a-f]{8}$/i.test(value)){const alpha=parseInt(value.slice(7),16)/255;return Math.max(0,Math.min(1,alpha));}const rgbLikeMatch=value.match(/^rgba?\\((.*)\\)$/i);if(rgbLikeMatch){const body=rgbLikeMatch[1].trim();if(body.includes(\"/\")){const alphaToken=body.split(\"/\").pop();return alphaToken?parseAlphaToken(alphaToken):null;}if(body.includes(\",\")){const commaParts=body.split(\",\");if(commaParts.length>=4){return parseAlphaToken(commaParts[3]);}return 1;}const spaceParts=body.split(/\\s+/).filter(Boolean);if(spaceParts.length===4){return parseAlphaToken(spaceParts[3]);}return 1;}const colorFunctionMatch=value.match(/^color\\((.*)\\)$/i);if(colorFunctionMatch){const body=colorFunctionMatch[1].trim();if(!body.includes(\"/\"))return 1;const alphaToken=body.split(\"/\").pop();return alphaToken?parseAlphaToken(alphaToken):null;}return null;}function normalizeHexToSix(input){const value=input.trim();if(/^#[0-9a-f]{3}$/i.test(value)){const[r,g,b]=value.slice(1).split(\"\");return`#${r}${r}${g}${g}${b}${b}`.toUpperCase();}if(/^#[0-9a-f]{6}$/i.test(value)){return value.toUpperCase();}return null;}export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function withSourcePage(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const latestUrlRef=useRef(\"\");const retryTimeoutRef=useRef(null);const retryRafRef=useRef(null);const retryCountRef=useRef(0);const maxRetries=24;const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);const findTargetField=useCallback(()=>{if(typeof window===\"undefined\")return null;const root=elementRef.current;const scopedInput=root instanceof HTMLInputElement||root instanceof HTMLTextAreaElement?root:(root?.querySelector('input[name=\"Source-Page\"], textarea[name=\"Source-Page\"], input, textarea'));if(scopedInput)return scopedInput;return document.querySelector('input[name=\"Source-Page\"], textarea[name=\"Source-Page\"]');},[]);const applyValueToField=useCallback((input,url)=>{const prototype=input instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype;const descriptor=Object.getOwnPropertyDescriptor(prototype,\"value\");descriptor?.set?.call(input,url);if(!descriptor?.set){input.value=url;}input.dispatchEvent(new Event(\"input\",{bubbles:true}));input.dispatchEvent(new Event(\"change\",{bubbles:true}));},[]);const syncSourcePage=useCallback(()=>{if(typeof window===\"undefined\")return;const url=window.location.href;latestUrlRef.current=url;const input=findTargetField();if(!input)return false;if(input.value!==url){applyValueToField(input,url);}return input.value===url;},[applyValueToField,findTargetField]);const clearRetryTimers=useCallback(()=>{if(typeof window===\"undefined\")return;if(retryRafRef.current!==null){window.cancelAnimationFrame(retryRafRef.current);retryRafRef.current=null;}if(retryTimeoutRef.current!==null){window.clearTimeout(retryTimeoutRef.current);retryTimeoutRef.current=null;}},[]);const scheduleRetrySync=useCallback(()=>{if(typeof window===\"undefined\")return;clearRetryTimers();retryCountRef.current=0;const trySync=()=>{const didSync=syncSourcePage();if(didSync||retryCountRef.current>=maxRetries)return;retryCountRef.current+=1;retryRafRef.current=window.requestAnimationFrame(()=>{retryTimeoutRef.current=window.setTimeout(trySync,40);});};retryRafRef.current=window.requestAnimationFrame(()=>{retryTimeoutRef.current=window.setTimeout(trySync,0);});},[clearRetryTimers,syncSourcePage]);useEffect(()=>{if(typeof window===\"undefined\")return;scheduleRetrySync();const onLocationChange=()=>{latestUrlRef.current=window.location.href;scheduleRetrySync();};const originalPushState=window.history.pushState;const originalReplaceState=window.history.replaceState;const observer=new MutationObserver(()=>{if(retryCountRef.current<maxRetries){scheduleRetrySync();}});window.history.pushState=function(...args){originalPushState.apply(this,args);onLocationChange();};window.history.replaceState=function(...args){originalReplaceState.apply(this,args);onLocationChange();};window.addEventListener(\"popstate\",onLocationChange);window.addEventListener(\"hashchange\",onLocationChange);if(document.body){observer.observe(document.body,{childList:true,subtree:true,attributes:true,attributeFilter:[\"name\",\"value\"]});}return()=>{clearRetryTimers();observer.disconnect();window.history.pushState=originalPushState;window.history.replaceState=originalReplaceState;window.removeEventListener(\"popstate\",onLocationChange);window.removeEventListener(\"hashchange\",onLocationChange);};},[clearRetryTimers,scheduleRetrySync]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props});});}export function RedirectOnSuccess(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const hasRedirectedRef=useRef(false);const redirectTimeoutRef=useRef(null);const settleTimeoutRef=useRef(null);const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);useEffect(()=>{if(typeof window===\"undefined\")return;const renderTarget=RenderTarget.current();const isEditorEnvironment=renderTarget===RenderTarget.canvas||renderTarget===RenderTarget.export||renderTarget===RenderTarget.thumbnail;if(isEditorEnvironment||hasRedirectedRef.current||!elementRef.current)return;const root=elementRef.current;const triggerRedirect=()=>{if(hasRedirectedRef.current)return;hasRedirectedRef.current=true;redirectTimeoutRef.current=window.setTimeout(()=>{window.location.assign(\"/kontakt/danke\");},500);};const checkForSuccessText=()=>{if(!root||hasRedirectedRef.current)return;const normalizedText=(root.textContent??\"\").replace(/\\s+/g,\" \").trim();if(normalizedText.includes(\"Anfrage gesendet\")){triggerRedirect();}};settleTimeoutRef.current=window.setTimeout(()=>{checkForSuccessText();},120);const observer=new MutationObserver(()=>{checkForSuccessText();});observer.observe(root,{childList:true,subtree:true,characterData:true});return()=>{observer.disconnect();if(settleTimeoutRef.current!==null){window.clearTimeout(settleTimeoutRef.current);settleTimeoutRef.current=null;}if(redirectTimeoutRef.current!==null){window.clearTimeout(redirectTimeoutRef.current);redirectTimeoutRef.current=null;}};},[]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props});});}export function withHexCode(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const[label,setLabel]=useState(null);const observerRef=useRef(null);const frameRef=useRef(null);const latestHexRef=useRef(null);const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);const rgbaToHex=useCallback(input=>{const value=input.trim();if(/^#[0-9a-f]{3}$/i.test(value)){const[r,g,b]=value.slice(1).split(\"\");return`#${r}${r}${g}${g}${b}${b}`.toUpperCase();}if(/^#[0-9a-f]{4}$/i.test(value)){const[r,g,b]=value.slice(1,4).split(\"\");return`#${r}${r}${g}${g}${b}${b}`.toUpperCase();}if(/^#[0-9a-f]{6}$/i.test(value))return value.toUpperCase();if(/^#[0-9a-f]{8}$/i.test(value))return`#${value.slice(1,7)}`.toUpperCase();const rgbMatch=value.match(/^rgba?\\(\\s*(\\d{1,3})\\s*[\\s,]\\s*(\\d{1,3})\\s*[\\s,]\\s*(\\d{1,3})(?:\\s*[/,]\\s*(\\d*\\.?\\d+%?))?\\s*\\)$/i);if(!rgbMatch)return null;const clamp255=n=>Math.max(0,Math.min(255,Math.round(n)));const toHex2=n=>clamp255(n).toString(16).toUpperCase().padStart(2,\"0\");const r=Number(rgbMatch[1]);const g=Number(rgbMatch[2]);const b=Number(rgbMatch[3]);if(!Number.isFinite(r)||!Number.isFinite(g)||!Number.isFinite(b))return null;return`#${toHex2(r)}${toHex2(g)}${toHex2(b)}`;},[]);const findScopedTargets=useCallback(()=>{return findScopedSwatchTargets(elementRef.current);},[]);const resolveHex=useCallback(input=>{if(typeof input!==\"string\")return null;return rgbaToHex(input);},[rgbaToHex]);const readColorFromProps=useCallback(()=>{const incomingProps=props;const candidates=[incomingProps.color,incomingProps.background,incomingProps.fill,incomingProps.backgroundColor];for(const candidate of candidates){const resolved=resolveHex(candidate);if(resolved)return resolved;}return null;},[props,resolveHex]);const syncHexFromSibling=useCallback(()=>{if(typeof window===\"undefined\")return;const propHex=readColorFromProps();if(propHex){startTransition(()=>{setLabel(current=>current===propHex?current:propHex);});latestHexRef.current=propHex;return;}const scopedTargets=findScopedTargets();if(!scopedTargets){latestHexRef.current=null;return;}const colorElement=scopedTargets.colorElement;const computedBackground=window.getComputedStyle(colorElement).backgroundColor;const nextHex=rgbaToHex(computedBackground);if(!nextHex){latestHexRef.current=null;return;}startTransition(()=>{setLabel(current=>current===nextHex?current:nextHex);});latestHexRef.current=nextHex;},[findScopedTargets,readColorFromProps,rgbaToHex]);useEffect(()=>{if(typeof window===\"undefined\")return;if(!elementRef.current)return;syncHexFromSibling();const scopedTargets=findScopedTargets();if(!scopedTargets){return;}if(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);frameRef.current=null;}const observer=new MutationObserver(entries=>{const hexNode=elementRef.current;const shouldSync=entries.some(entry=>{if(!hexNode)return true;const target=entry.target;return!hexNode.contains(target);});if(!shouldSync)return;if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);}frameRef.current=window.requestAnimationFrame(()=>{frameRef.current=null;syncHexFromSibling();});});observer.observe(scopedTargets.swatchRoot,{attributes:true,childList:true,subtree:true,characterData:true,attributeFilter:[\"style\",\"class\"]});observerRef.current=observer;return()=>{observer.disconnect();observerRef.current=null;if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);frameRef.current=null;}};},[findScopedTargets,syncHexFromSibling]);const incomingProps=props;const incomingOnClick=incomingProps.onClick;const incomingOnKeyDown=incomingProps.onKeyDown;const copyHexToClipboard=useCallback(async()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const value=latestHexRef.current;if(!value||!/^#[0-9A-F]{6}$/.test(value))return;try{if(typeof navigator!==\"undefined\"&&navigator.clipboard&&typeof navigator.clipboard.writeText===\"function\"){await navigator.clipboard.writeText(value);return;}}catch(_){// Graceful fallback below.\n}try{const textarea=document.createElement(\"textarea\");textarea.value=value;textarea.setAttribute(\"readonly\",\"true\");textarea.style.position=\"fixed\";textarea.style.opacity=\"0\";textarea.style.pointerEvents=\"none\";document.body.appendChild(textarea);textarea.focus();textarea.select();document.execCommand(\"copy\");document.body.removeChild(textarea);}catch(_){// No misleading success state is shown if copying fails.\n}},[]);const handleActivate=useCallback(event=>{if(incomingOnClick){incomingOnClick(event);}void copyHexToClipboard();},[copyHexToClipboard,incomingOnClick]);const handleKeyDown=useCallback(event=>{if(incomingOnKeyDown){incomingOnKeyDown(event);}if(event.defaultPrevented)return;if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();void copyHexToClipboard();}},[copyHexToClipboard,incomingOnKeyDown]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...incomingProps,onClick:handleActivate,onKeyDown:handleKeyDown,role:incomingProps.role??\"button\",tabIndex:incomingProps.tabIndex??0,\"aria-label\":incomingProps[\"aria-label\"]??\"Copy hex color code\",style:{...incomingProps.style??{},cursor:incomingProps.style?.cursor??\"pointer\"},text:label??incomingProps.text});});}export function withOpacityInfo(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const[label,setLabel]=useState(null);const observerRef=useRef(null);const frameRef=useRef(null);const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref){ref.current=node;}},[ref]);const findScopedTargets=useCallback(()=>{return findScopedSwatchTargets(elementRef.current);},[]);const readColorFromProps=useCallback(()=>{const incomingProps=props;const candidates=[incomingProps.color,incomingProps.background,incomingProps.fill,incomingProps.backgroundColor];for(const candidate of candidates){if(typeof candidate===\"string\"&&candidate.trim().length>0){return candidate;}}return null;},[props]);const syncOpacityLabel=useCallback(()=>{if(typeof window===\"undefined\")return;const fromProps=readColorFromProps();const propAlpha=fromProps?parseCssAlpha(fromProps):null;if(propAlpha!==null){const scopedTargets=findScopedTargets();const frameOpacity=scopedTargets!==null?Number(window.getComputedStyle(scopedTargets.colorElement).opacity||\"1\"):1;const normalizedFrameOpacity=Number.isFinite(frameOpacity)&&frameOpacity>=0?Math.min(1,frameOpacity):1;const percent=Math.round(propAlpha*normalizedFrameOpacity*100);const nextLabel=`Opacity ${percent}%`;startTransition(()=>{setLabel(current=>current===nextLabel?current:nextLabel);});return;}const scopedTargets=findScopedTargets();if(!scopedTargets)return;const computedStyles=window.getComputedStyle(scopedTargets.colorElement);const computedBackground=computedStyles.backgroundColor;const alpha=parseCssAlpha(computedBackground);if(alpha===null)return;const frameOpacity=Number(computedStyles.opacity||\"1\");const normalizedFrameOpacity=Number.isFinite(frameOpacity)&&frameOpacity>=0?Math.min(1,frameOpacity):1;const percent=Math.round(alpha*normalizedFrameOpacity*100);const nextLabel=`Opacity ${percent}%`;startTransition(()=>{setLabel(current=>current===nextLabel?current:nextLabel);});},[findScopedTargets,readColorFromProps]);useEffect(()=>{if(typeof window===\"undefined\")return;if(!elementRef.current)return;syncOpacityLabel();const scopedTargets=findScopedTargets();if(!scopedTargets)return;if(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);frameRef.current=null;}const observer=new MutationObserver(entries=>{const textNode=elementRef.current;const shouldSync=entries.some(entry=>{if(!textNode)return true;const target=entry.target;return!textNode.contains(target);});if(!shouldSync)return;if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);}frameRef.current=window.requestAnimationFrame(()=>{frameRef.current=null;syncOpacityLabel();});});observer.observe(scopedTargets.swatchRoot,{attributes:true,childList:true,subtree:true,characterData:true,attributeFilter:[\"style\",\"class\"]});observerRef.current=observer;return()=>{observer.disconnect();observerRef.current=null;if(frameRef.current!==null){window.cancelAnimationFrame(frameRef.current);frameRef.current=null;}};},[findScopedTargets,syncOpacityLabel]);const incomingProps=props;return /*#__PURE__*/_jsx(Component,{ref:setRefs,...incomingProps,text:label??incomingProps.text});});}export function withHexFill(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const incomingProps=props;const rawHexCandidate=typeof incomingProps.ariaLabel===\"string\"?incomingProps.ariaLabel:typeof incomingProps[\"aria-label\"]===\"string\"?incomingProps[\"aria-label\"]:\"\";const normalizedHex=normalizeHexToSix(rawHexCandidate);return /*#__PURE__*/_jsx(Component,{ref:ref,...incomingProps,style:{...incomingProps.style??{},...normalizedHex?{background:normalizedHex}:{}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"RedirectOnSuccess\":{\"type\":\"reactHoc\",\"name\":\"RedirectOnSuccess\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSourcePage\":{\"type\":\"reactHoc\",\"name\":\"withSourcePage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHexFill\":{\"type\":\"reactHoc\",\"name\":\"withHexFill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpacityInfo\":{\"type\":\"reactHoc\",\"name\":\"withOpacityInfo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHexCode\":{\"type\":\"reactHoc\",\"name\":\"withHexCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"A,wNAA8E,SAAgBiB,EAAY,EAAO,CACjH,IAAMC,EAAUF,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAGG,CAAM,CAAC,CAAC,CAAC,EACjDC,EAAa,GAAU,CAC1B,OAAOC,GAAW,aAAY,EAASA,EAASH,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAGA,EAAU,MAAM,GAAGG,CAAQ,CAAC,CAAE,EACjIC,EAAW,OAAOH,GAAS,SAAS,OAAO,OAAO,CAAC,GAAGA,CAA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