{"version":3,"file":"shared-lib.O4thGo8j.mjs","names":["useState","useRef","iteration"],"sources":["https:/framerusercontent.com/modules/5lrP5wRQ2SGUXXBmc0oN/xEVqnfKlDiG8KBj2ocba/Scramble.js","https:/framerusercontent.com/modules/rDS4sWLQCWM2lHNl3QDh/Dbnw0R2nJpXDvOJbQUHp/iaSdMlnUc.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";// Loop only\nconst loopDelay=1e3;const initDelay=100;// Do not configure\nconst letters=\"abcdefghijklmnopqrstuvwxyz-.,+*!?@&%/=\";export function onAppear(Component){return props=>{const value=props.children.props.children.props.children;const[isVisible,setIsVisible]=useState(false);const[iteration,setIteration]=useState(0);const intersectionRef=useRef(null);const encrypt=iteration=>{return value.split(\"\").map((letter,index)=>{if(index<iteration){return value[index];}return letters[Math.floor(Math.random()*38)];}).join(\"\");};useEffect(()=>{const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setIsVisible(true);}else{setIsVisible(false);}});});observer.observe(intersectionRef.current);return()=>observer.disconnect();},[]);useEffect(()=>{let interval=null;if(isVisible){interval=setTimeout(()=>{setIteration(prev=>prev+5/6);interval=setInterval(()=>{setIteration(prev=>prev+5/6);},50);},100);}return()=>clearInterval(interval);},[isVisible]);return /*#__PURE__*/_jsx(Component,{ref:intersectionRef,...props,text:isVisible?encrypt(iteration):value});};}export function onLoop(Component){return props=>{const value=props.children.props.children.props.children;const[isVisible,setIsVisible]=useState(false);const[iteration,setIteration]=useState(0);const[delayTime,setDelayTime]=useState(loopDelay);const intersectionRef=useRef(null);const encrypt=iteration=>{const length=value.length;let result=\"\";for(let i=0;i<length;i++){const letter=value[i];if(i<iteration){result+=letter;}else{result+=letters[Math.floor(Math.random()*38)];}}if(iteration>=length){setTimeout(()=>{setIteration(0);},delayTime);}return result;};useEffect(()=>{const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setIsVisible(true);}else{setIsVisible(false);}});});observer.observe(intersectionRef.current);return()=>observer.disconnect();},[]);useEffect(()=>{let interval=null;if(isVisible){interval=setTimeout(()=>{setIteration(prev=>prev+5/6);interval=setInterval(()=>{setIteration(prev=>prev+5/6);},50);},initDelay);}return()=>clearInterval(interval);},[isVisible]);return /*#__PURE__*/_jsx(Component,{ref:intersectionRef,...props,text:isVisible?encrypt(iteration):value});};}\nexport const __FramerMetadata__ = {\"exports\":{\"onLoop\":{\"type\":\"reactHoc\",\"name\":\"onLoop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"onAppear\":{\"type\":\"reactHoc\",\"name\":\"onAppear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scramble.map","// Generated by Framer (259a342)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Geist Mono-regular\",\"GF;Geist Mono-700\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Geist Mono\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/geistmono/v1/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KJ5W7ihaO_CS.woff2\",weight:\"400\"},{family:\"Geist Mono\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/geistmono/v1/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeHaL55W7ihaO_CS.woff2\",weight:\"700\"}]}];export const css=['.framer-jaskQ .framer-styles-preset-ian7ew:not(.rich-text-wrapper), .framer-jaskQ .framer-styles-preset-ian7ew.rich-text-wrapper h6 { --framer-font-family: \"Geist Mono\", monospace; --framer-font-family-bold: \"Geist Mono\", monospace; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 135%; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }','@media (max-width: 1439px) and (min-width: 810px) { .framer-jaskQ .framer-styles-preset-ian7ew:not(.rich-text-wrapper), .framer-jaskQ .framer-styles-preset-ian7ew.rich-text-wrapper h6 { --framer-font-family: \"Geist Mono\", monospace; --framer-font-family-bold: \"Geist Mono\", monospace; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 135%; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-jaskQ .framer-styles-preset-ian7ew:not(.rich-text-wrapper), .framer-jaskQ .framer-styles-preset-ian7ew.rich-text-wrapper h6 { --framer-font-family: \"Geist Mono\", monospace; --framer-font-family-bold: \"Geist Mono\", monospace; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 135%; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; } }'];export const className=\"framer-jaskQ\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6KAEuD,SAAgB,EAAS,E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