{"version":3,"file":"Examples.BdBc2JD-.mjs","names":["useState","useRef","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/yS1hKRh3Em6rLCLmX1e3/pnbOzZzhki3xgE7WS2z4/Examples.js"],"sourcesContent":["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,useMemo,useRef,useState}from\"react\";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\"});const SHOW_ONCE_KEY=\"token-relations-subscribe-modal-seen\";let fallbackShownThisSession=false;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 withShowOncePerVisitor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[shouldRender,setShouldRender]=useState(null);const setShouldRenderSafe=useCallback(next=>{startTransition(()=>setShouldRender(next));},[]);useEffect(()=>{if(typeof window===\"undefined\"){setShouldRenderSafe(false);return;}try{const seen=window.localStorage.getItem(SHOW_ONCE_KEY);if(seen){setShouldRenderSafe(false);return;}window.localStorage.setItem(SHOW_ONCE_KEY,\"1\");setShouldRenderSafe(true);}catch(_error){if(fallbackShownThisSession){setShouldRenderSafe(false);return;}fallbackShownThisSession=true;setShouldRenderSafe(true);}},[setShouldRenderSafe]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}if(!shouldRender)return;const isLikelyCloseControl=target=>{if(!(target instanceof Element))return false;const explicitClose=target.closest('[data-framer-name=\"Close Button\"], [data-framer-name*=\"Close Button\"]');if(explicitClose)return true;const buttonLike=target.closest('button, [role=\"button\"], [aria-label], [name], [data-close], [class*=\"close\"], [id*=\"close\"], [name*=\"close\" i]');if(!buttonLike)return false;const ariaLabel=(buttonLike.getAttribute(\"aria-label\")||\"\").toLowerCase();const name=(buttonLike.getAttribute(\"name\")||\"\").toLowerCase();const id=(buttonLike.getAttribute(\"id\")||\"\").toLowerCase();const className=(buttonLike.getAttribute(\"class\")||\"\").toLowerCase();const text=(buttonLike.textContent||\"\").trim().toLowerCase();if(ariaLabel.includes(\"close\"))return true;if(name.includes(\"close\"))return true;if(id.includes(\"close\"))return true;if(className.includes(\"close\"))return true;if(text===\"\\xd7\"||text===\"x\")return true;if(text.includes(\"close\"))return true;return false;};const findModalCard=()=>{const exact=document.querySelector('[data-framer-name=\"Subscribe Card\"]');if(exact instanceof HTMLElement)return exact;const partial=document.querySelector('[data-framer-name*=\"Subscribe Card\"]');if(partial instanceof HTMLElement)return partial;const all=Array.from(document.querySelectorAll(\"*\"));const viewportW=window.innerWidth||0;const viewportH=window.innerHeight||0;const centerX=viewportW/2;const centerY=viewportH/2;let best=null;let bestScore=-1;for(const node of all){if(!(node instanceof HTMLElement))continue;const rect=node.getBoundingClientRect();if(rect.width<120||rect.height<120)continue;if(rect.width>=viewportW*.95||rect.height>=viewportH*.95)continue;if(rect.bottom<=0||rect.right<=0)continue;if(rect.top>=viewportH||rect.left>=viewportW)continue;const style=window.getComputedStyle(node);if(style.display===\"none\"||style.visibility===\"hidden\"||Number(style.opacity)===0){continue;}const nodeCenterX=rect.left+rect.width/2;const nodeCenterY=rect.top+rect.height/2;const dist=Math.hypot(nodeCenterX-centerX,nodeCenterY-centerY);const area=rect.width*rect.height;const score=area-dist*500;if(score>bestScore){bestScore=score;best=node;}}return best;};const onDocumentPointerDownCapture=event=>{if(!(event.target instanceof Element))return;if(isLikelyCloseControl(event.target)){setShouldRenderSafe(false);return;}const card=findModalCard();if(!card)return;if(!card.contains(event.target)){setShouldRenderSafe(false);}};document.addEventListener(\"pointerdown\",onDocumentPointerDownCapture,true);return()=>{document.removeEventListener(\"pointerdown\",onDocumentPointerDownCapture,true);};},[shouldRender,setShouldRenderSafe]);if(!shouldRender)return null;return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}export function withHideModalLayerOnClick(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hideLikelyModalLayer=useCallback(startEl=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!startEl)return;const viewportW=window.innerWidth||0;const viewportH=window.innerHeight||0;const nameNeedles=[\"first load subscribe modal\",\"subscribe modal\"];let current=startEl;while(current){const el=current;const style=window.getComputedStyle(el);const rect=el.getBoundingClientRect();const isLayerPosition=style.position===\"fixed\"||style.position===\"sticky\"||style.position===\"absolute\";const viewportLikeSize=rect.width>=viewportW*.9&&rect.height>=viewportH*.9;const haystack=[el.getAttribute(\"data-framer-name\")||\"\",el.getAttribute(\"aria-label\")||\"\",el.getAttribute(\"title\")||\"\",el.textContent||\"\",el.className||\"\"].join(\" \").toLowerCase();const hasModalName=nameNeedles.some(needle=>haystack.includes(needle));if(isLayerPosition&&viewportLikeSize||hasModalName){el.style.pointerEvents=\"none\";el.style.display=\"none\";el.style.visibility=\"hidden\";el.setAttribute(\"aria-hidden\",\"true\");return;}current=el.parentElement;}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:event=>{props.onClick?.(event);if(typeof window===\"undefined\")return;const target=event?.currentTarget instanceof Element?event.currentTarget:event?.target instanceof Element?event.target:null;window.setTimeout(()=>{hideLikelyModalLayer(target);},80);}});});}export function withHideNavigationOnScroll(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isHidden,setIsHidden]=useState(false);const[resolvedBackground,setResolvedBackground]=useState(null);const[resolvedAppearance,setResolvedAppearance]=useState(null);const elementRef=useRef(null);const lastScrollYRef=useRef(0);const tickingRef=useRef(false);const hideThreshold=10;const desktopMinWidth=1200;const hiddenOffset=-24;const setHiddenSafe=useCallback(next=>{startTransition(()=>setIsHidden(prev=>prev===next?prev:next));},[]);const setResolvedBackgroundSafe=useCallback(next=>{startTransition(()=>setResolvedBackground(prev=>prev===next?prev:next));},[]);const setResolvedAppearanceSafe=useCallback(next=>{startTransition(()=>setResolvedAppearance(prev=>prev===next?prev:next));},[]);const isDesktopViewport=useCallback(()=>{if(typeof window===\"undefined\")return false;const hasDesktopWidth=window.innerWidth>=desktopMinWidth;const prefersFinePointer=typeof window.matchMedia===\"function\"?window.matchMedia(\"(pointer: fine)\").matches:true;return hasDesktopWidth&&prefersFinePointer;},[]);const prefersReducedMotion=useMemo(()=>{if(typeof window===\"undefined\")return false;if(typeof window.matchMedia!==\"function\")return false;return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;},[]);const parseColorToRgba=useCallback(value=>{const trimmed=value.trim().toLowerCase();if(trimmed.startsWith(\"rgb\")){const matches=trimmed.match(/[\\d.]+/g);if(!matches||matches.length<3)return null;const r=Number(matches[0]);const g=Number(matches[1]);const b=Number(matches[2]);const a=matches.length>=4?Number(matches[3]):1;if([r,g,b,a].some(n=>Number.isNaN(n)))return null;return{r,g,b,a};}if(trimmed.startsWith(\"#\")){const hex=trimmed.slice(1);if(hex.length===3){const r=Number.parseInt(hex[0]+hex[0],16);const g=Number.parseInt(hex[1]+hex[1],16);const b=Number.parseInt(hex[2]+hex[2],16);return{r,g,b,a:1};}if(hex.length===6||hex.length===8){const r=Number.parseInt(hex.slice(0,2),16);const g=Number.parseInt(hex.slice(2,4),16);const b=Number.parseInt(hex.slice(4,6),16);const a=hex.length===8?Number.parseInt(hex.slice(6,8),16)/255:1;return{r,g,b,a};}}return null;},[]);const findFirstSolidBackground=useCallback(start=>{if(typeof window===\"undefined\")return null;let current=start;while(current){if(current instanceof HTMLElement){const bg=window.getComputedStyle(current).backgroundColor;if(bg){const rgba=parseColorToRgba(bg);if(rgba&&rgba.a>.01)return bg;}}current=current.parentElement;}const bodyBg=typeof document!==\"undefined\"?window.getComputedStyle(document.body).backgroundColor:\"\";const bodyRgba=bodyBg?parseColorToRgba(bodyBg):null;if(bodyRgba&&bodyRgba.a>.01)return bodyBg;return null;},[parseColorToRgba]);const resolveSurfaceStyle=useCallback(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"||!isDesktopViewport()){setResolvedBackgroundSafe(null);setResolvedAppearanceSafe(null);return;}const viewportW=window.innerWidth||0;const x=Math.max(1,Math.min(Math.round(viewportW/2),viewportW-1));const styleHeight=props?.style?.height;const navHeight=typeof styleHeight===\"number\"?styleHeight:typeof styleHeight===\"string\"&&styleHeight.endsWith(\"px\")?Number.parseFloat(styleHeight):72;const y=Math.max(1,Math.round(navHeight+4));const stack=document.elementsFromPoint(x,y);let resolved=null;for(const el of stack){const candidate=findFirstSolidBackground(el);if(candidate){resolved=candidate;break;}}if(!resolved){setResolvedBackgroundSafe(null);setResolvedAppearanceSafe(null);return;}const rgba=parseColorToRgba(resolved);if(!rgba){setResolvedBackgroundSafe(resolved);setResolvedAppearanceSafe(null);return;}const toLinear=channel=>{const normalized=channel/255;return normalized<=.03928?normalized/12.92:Math.pow((normalized+.055)/1.055,2.4);};const luminance=.2126*toLinear(rgba.r)+.7152*toLinear(rgba.g)+.0722*toLinear(rgba.b);const isDarkSurface=luminance<.45;setResolvedBackgroundSafe(resolved);setResolvedAppearanceSafe(isDarkSurface?\"Uyk7nqkDz\":\"RXAVKJOug\");},[findFirstSolidBackground,isDesktopViewport,parseColorToRgba,props?.style?.height,setResolvedAppearanceSafe,setResolvedBackgroundSafe]);const evaluateScroll=useCallback(()=>{if(typeof window===\"undefined\")return;if(!isDesktopViewport()){setHiddenSafe(false);lastScrollYRef.current=Math.max(window.scrollY||0,0);setResolvedBackgroundSafe(null);setResolvedAppearanceSafe(null);return;}const currentY=Math.max(window.scrollY||0,0);const previousY=lastScrollYRef.current;const delta=currentY-previousY;const wasHidden=isHidden;let nextHidden=wasHidden;if(currentY<=hideThreshold){nextHidden=false;}else if(delta>hideThreshold){nextHidden=true;}else if(delta<0){nextHidden=false;}setHiddenSafe(nextHidden);lastScrollYRef.current=currentY;if(!nextHidden){if(wasHidden){setResolvedBackgroundSafe(null);setResolvedAppearanceSafe(null);}return;}resolveSurfaceStyle();},[hideThreshold,isHidden,isDesktopViewport,resolveSurfaceStyle,setHiddenSafe,setResolvedAppearanceSafe,setResolvedBackgroundSafe]);useEffect(()=>{if(typeof window===\"undefined\")return;lastScrollYRef.current=Math.max(window.scrollY||0,0);evaluateScroll();const onScroll=()=>{if(tickingRef.current)return;tickingRef.current=true;window.requestAnimationFrame(()=>{evaluateScroll();tickingRef.current=false;});};window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onScroll);return()=>{window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onScroll);};},[evaluateScroll]);const mergedAnimate=useMemo(()=>{const baseAnimate=props&&typeof props.animate===\"object\"?props.animate:{};return{...baseAnimate,y:isHidden?hiddenOffset:0,opacity:isHidden?0:1};},[hiddenOffset,isHidden,props]);const mergedTransition=useMemo(()=>{const baseTransition=props&&typeof props.transition===\"object\"?props.transition:{};if(prefersReducedMotion){return{...baseTransition,duration:0};}return{...baseTransition,type:\"tween\",duration:.22,ease:\"easeOut\"};},[prefersReducedMotion,props]);const mergedStyle=useMemo(()=>{const baseStyle=props?.style||{};if(!resolvedBackground||isHidden||!isDesktopViewport()){return{...baseStyle};}return{...baseStyle,background:resolvedBackground,backgroundColor:resolvedBackground};},[isDesktopViewport,isHidden,props?.style,resolvedBackground]);const resolvedForeground=useMemo(()=>{if(resolvedAppearance===\"Uyk7nqkDz\")return\"#FFFFFF\";if(resolvedAppearance===\"RXAVKJOug\")return\"#000000\";return null;},[resolvedAppearance]);const resolvedBorder=useMemo(()=>{if(!resolvedForeground)return null;return resolvedForeground===\"#FFFFFF\"?\"rgba(255, 255, 255, 0.24)\":\"rgba(0, 0, 0, 0.14)\";},[resolvedForeground]);const hasNavigationAppearanceControl=useMemo(()=>{return Object.prototype.hasOwnProperty.call(props||{},\"$control__navigationAppearance\");},[props]);const mergedProps=useMemo(()=>{const nextProps={};if(hasNavigationAppearanceControl&&resolvedAppearance&&isDesktopViewport()){nextProps[\"$control__navigationAppearance\"]=resolvedAppearance;}return nextProps;},[hasNavigationAppearanceControl,isDesktopViewport,resolvedAppearance]);const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);useEffect(()=>{if(typeof document===\"undefined\")return;if(!isDesktopViewport()||!resolvedBackground||!resolvedForeground)return;const root=document.documentElement;root.style.setProperty(\"--tr-nav-surface\",resolvedBackground);root.style.setProperty(\"--tr-nav-foreground\",resolvedForeground);root.style.setProperty(\"--tr-nav-border\",resolvedBorder||\"rgba(0, 0, 0, 0.14)\");root.setAttribute(\"data-tr-nav-surface-active\",\"1\");const styleId=\"tr-nav-dropdown-surface-style\";let styleEl=document.getElementById(styleId);if(!styleEl){styleEl=document.createElement(\"style\");styleEl.id=styleId;document.head.appendChild(styleEl);}styleEl.textContent=`\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Dropdown\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]),\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Menu\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) {\n    background: var(--tr-nav-surface) !important;\n    background-color: var(--tr-nav-surface) !important;\n    color: var(--tr-nav-foreground) !important;\n    border-color: var(--tr-nav-border) !important;\n}\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Dropdown\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) *,\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Menu\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) * {\n    border-color: var(--tr-nav-border) !important;\n}\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Dropdown\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) :is(span, p, a, button, li, label, h1, h2, h3, h4, h5, h6),\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Menu\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) :is(span, p, a, button, li, label, h1, h2, h3, h4, h5, h6),\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Dropdown\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) svg,\nhtml[data-tr-nav-surface-active=\"1\"] [data-framer-name*=\"Menu\" i]:not([data-framer-name*=\"Modal\" i]):not([data-framer-name*=\"Form\" i]) svg {\n    color: var(--tr-nav-foreground) !important;\n    fill: currentColor !important;\n    stroke: currentColor !important;\n}\n`;return()=>{root.style.removeProperty(\"--tr-nav-surface\");root.style.removeProperty(\"--tr-nav-foreground\");root.style.removeProperty(\"--tr-nav-border\");root.removeAttribute(\"data-tr-nav-surface-active\");const existing=document.getElementById(styleId);if(existing?.parentNode){existing.parentNode.removeChild(existing);}};},[isDesktopViewport,resolvedBackground,resolvedBorder,resolvedForeground]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(hasNavigationAppearanceControl)return;const rootEl=elementRef.current;if(!rootEl)return;const clearLegacyTint=()=>{const tinted=rootEl.querySelectorAll('[data-tr-nav-legacy-tinted=\"1\"]');tinted.forEach(node=>{const el=node;el.style.removeProperty(\"color\");el.style.removeProperty(\"border-color\");el.style.removeProperty(\"outline-color\");el.style.removeProperty(\"fill\");el.style.removeProperty(\"stroke\");el.removeAttribute(\"data-tr-nav-legacy-tinted\");});};if(!isDesktopViewport()||isHidden||!resolvedBackground||!resolvedForeground||!resolvedBorder){clearLegacyTint();return;}const computed=window.getComputedStyle(rootEl);const rect=rootEl.getBoundingClientRect();const isShown=computed.display!==\"none\"&&computed.visibility!==\"hidden\"&&Number(computed.opacity)>0&&rect.height>0&&rect.width>0;if(!isShown){clearLegacyTint();return;}const targetSelector=[\"span\",\"p\",\"a\",\"button\",\"[role='button']\",\"svg\",\"svg *\",\"[class*='icon' i]\",\"[data-icon]\",\"[style*='border']\",\"[class*='border' i]\"].join(\", \");const targets=rootEl.querySelectorAll(targetSelector);targets.forEach(node=>{const el=node;el.setAttribute(\"data-tr-nav-legacy-tinted\",\"1\");el.style.setProperty(\"color\",resolvedForeground);el.style.setProperty(\"border-color\",resolvedBorder);el.style.setProperty(\"outline-color\",resolvedBorder);if(el.tagName.toLowerCase()===\"svg\"){el.style.setProperty(\"fill\",\"currentColor\");el.style.setProperty(\"stroke\",\"currentColor\");}});rootEl.setAttribute(\"data-tr-nav-legacy-tinted\",\"1\");rootEl.style.setProperty(\"border-color\",resolvedBorder);rootEl.style.setProperty(\"color\",resolvedForeground);return()=>{clearLegacyTint();};},[hasNavigationAppearanceControl,isDesktopViewport,isHidden,resolvedBackground,resolvedBorder,resolvedForeground]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props,...mergedProps,animate:mergedAnimate,transition:mergedTransition,style:mergedStyle});});}export function withAdaptiveBrandsDropdownSurface(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const setRefs=useCallback(node=>{elementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);const applyAdaptiveStyles=useCallback(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const rootEl=elementRef.current;if(!rootEl)return;const docRoot=document.documentElement;const isActive=docRoot.getAttribute(\"data-tr-nav-surface-active\")===\"1\";const surface=docRoot.style.getPropertyValue(\"--tr-nav-surface\").trim();const foreground=docRoot.style.getPropertyValue(\"--tr-nav-foreground\").trim();const border=docRoot.style.getPropertyValue(\"--tr-nav-border\").trim();if(!isActive||!surface||!foreground||!border)return;const computed=window.getComputedStyle(rootEl);const rect=rootEl.getBoundingClientRect();const isShown=computed.display!==\"none\"&&computed.visibility!==\"hidden\"&&Number(computed.opacity)>0&&rect.height>0&&rect.width>0;if(!isShown)return;rootEl.style.setProperty(\"background\",surface);rootEl.style.setProperty(\"background-color\",surface);rootEl.style.setProperty(\"border-color\",border);rootEl.style.setProperty(\"color\",foreground);const hasNonTransparentBackground=el=>{const bg=window.getComputedStyle(el).backgroundColor;const normalized=bg.replace(/\\s+/g,\"\").toLowerCase();if(!normalized||normalized===\"transparent\")return false;if(normalized.startsWith(\"rgba(\")){const match=normalized.match(/rgba\\(([\\d.]+),([\\d.]+),([\\d.]+),([\\d.]+)\\)/);if(!match)return false;const alpha=Number(match[4]);return!Number.isNaN(alpha)&&alpha>.01;}if(normalized.startsWith(\"rgb(\"))return true;return true;};const surfaceNodes=rootEl.querySelectorAll(\"*\");surfaceNodes.forEach(node=>{const el=node;if(hasNonTransparentBackground(el)){el.style.setProperty(\"background\",surface);el.style.setProperty(\"background-color\",surface);}});const textNodes=rootEl.querySelectorAll(\"span, p, a, button, li, label, h1, h2, h3, h4, h5, h6\");textNodes.forEach(node=>{node.style.setProperty(\"color\",foreground);});const iconNodes=rootEl.querySelectorAll(\"svg, svg *\");iconNodes.forEach(node=>{node.style.setProperty(\"color\",foreground);node.style.setProperty(\"fill\",\"currentColor\");node.style.setProperty(\"stroke\",\"currentColor\");});const borderedNodes=rootEl.querySelectorAll(\"*\");borderedNodes.forEach(node=>{const el=node;const styles=window.getComputedStyle(el);const hasBorder=Number.parseFloat(styles.borderTopWidth||\"0\")>0||Number.parseFloat(styles.borderRightWidth||\"0\")>0||Number.parseFloat(styles.borderBottomWidth||\"0\")>0||Number.parseFloat(styles.borderLeftWidth||\"0\")>0;if(hasBorder){el.style.setProperty(\"border-color\",border);}});},[]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}applyAdaptiveStyles();const intervalId=window.setInterval(()=>{applyAdaptiveStyles();},220);const mutationObserver=new MutationObserver(()=>{applyAdaptiveStyles();});const rootEl=elementRef.current;if(rootEl){mutationObserver.observe(rootEl,{childList:true,subtree:true,attributes:true,attributeFilter:[\"style\",\"class\",\"data-framer-name\"]});}const docObserver=new MutationObserver(()=>{applyAdaptiveStyles();});docObserver.observe(document.documentElement,{attributes:true,attributeFilter:[\"style\",\"data-tr-nav-surface-active\"]});return()=>{window.clearInterval(intervalId);mutationObserver.disconnect();docObserver.disconnect();};},[applyAdaptiveStyles]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props,style:{...props?.style||{}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withShowOncePerVisitor\":{\"type\":\"reactHoc\",\"name\":\"withShowOncePerVisitor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideModalLayerOnClick\":{\"type\":\"reactHoc\",\"name\":\"withHideModalLayerOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideNavigationOnScroll\":{\"type\":\"reactHoc\",\"name\":\"withHideNavigationOnScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAdaptiveBrandsDropdownSurface\":{\"type\":\"reactHoc\",\"name\":\"withAdaptiveBrandsDropdownSurface\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"kPAAa,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAWI,CADA,GAAG,CACO,sBEdqlL,SAAgB,EAA2B,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAO,CAAC,EAAmB,GAAuBA,EAAS,IAAI,EAAO,CAAC,EAAmB,GAAuBA,EAAS,IAAI,EAAQ,EAAWC,EAAO,IAAI,EAAQ,EAAeA,EAAO,CAAC,EAAQ,EAAWA,EAAO,EAAK,EAAiF,EAAcC,EAAY,GAAM,CAAC,MAAoB,EAAY,GAAM,IAAO,EAAK,EAAK,CAAI,CAAC,CAAE,EAAE,CAAC,CAAC,EAAQ,EAA0BA,EAAY,GAAM,CAAC,MAAoB,E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