{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/kMAu7uZHvtiPOM8KKw4y/6HXw3EbhhgC9f0RxXIux/Text.js"],
  "sourcesContent": ["function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";export function truncate(Component){return props=>{const ref=useRef(null);useEffect(()=>{const el=ref?.current?.querySelector(\".framer-text\");if(!el)return;el.style.overflow=\"hidden\";el.style.textOverflow=\"ellipsis\";el.style.whiteSpace=\"nowrap\";},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}export function scramble(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(location.host.endsWith(\"framercanvas.com\")&&!location.search.startsWith(\"?target=preview-web\")){return;}const el=ref?.current?.querySelector(\".framer-text\");if(!el)return;const fn=new TextScramble(el);fn.setText(el.innerText);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}export function scrambleTruncate(Component){return props=>{const ref=useRef(null);useEffect(()=>{const el=ref?.current?.querySelector(\".framer-text\");if(!el)return;el.style.overflow=\"hidden\";el.style.textOverflow=\"ellipsis\";el.style.whiteSpace=\"nowrap\";if(location.host.endsWith(\"framercanvas.com\")&&!location.search.startsWith(\"?target=preview-web\")){return;}const fn=new TextScramble(el);fn.setText(el.innerText);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}class TextScramble{constructor(el){_define_property(this,\"el\",void 0);_define_property(this,\"chars\",\"!-______+*0\");_define_property(this,\"setText\",newText=>{const oldText=this.el.innerText;const length=Math.max(oldText.length,newText.length);const promise=new Promise(resolve=>this.resolve=resolve);this.queue=[];for(let i=0;i<length;i++){const from=oldText[i]||\"\";const to=newText[i]||\"\";const start=Math.floor(Math.random()*25);const end=start+Math.floor(Math.random()*25);this.queue.push({from,to,start,end});}cancelAnimationFrame(this.frameRequest);this.frame=0;this.update();return promise;});_define_property(this,\"update\",()=>{let output=\"\";let complete=0;for(let i=0,n=this.queue.length;i<n;i++){const{from,to,start,end,char}=this.queue[i];if(this.frame>=end){complete++;output+=to;}else if(this.frame>=start){if(!char||Math.random()<.28){this.queue[i].char=this.randomChar();}output+=`<span>${this.queue[i].char}</span>`;}else{output+=from;}}this.el.innerHTML=output;if(complete===this.queue.length){this.resolve();}else{this.frameRequest=requestAnimationFrame(this.update);this.frame++;}});_define_property(this,\"randomChar\",()=>{return this.chars[Math.floor(Math.random()*this.chars.length)];});_define_property(this,\"frame\",0);_define_property(this,\"queue\",[]);_define_property(this,\"resolve\",void 0);_define_property(this,\"frameRequest\",void 0);this.el=el;}}\nexport const __FramerMetadata__ = {\"exports\":{\"scramble\":{\"type\":\"reactHoc\",\"name\":\"scramble\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"scrambleTruncate\":{\"type\":\"reactHoc\",\"name\":\"scrambleTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"truncate\":{\"type\":\"reactHoc\",\"name\":\"truncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text.map"],
  "mappings": "uDAAA,SAASA,EAAiBC,EAAIC,EAAIC,EAAM,CAAC,OAAGD,KAAOD,EAAK,OAAO,eAAeA,EAAIC,EAAI,CAAC,MAAMC,EAAM,WAAW,GAAK,aAAa,GAAK,SAAS,EAAI,CAAC,EAAQF,EAAIC,CAAG,EAAEC,EAAcF,CAAI,CAAuF,SAASG,EAASC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAGH,GAAK,SAAS,cAAc,cAAc,EAAMG,IAAUA,EAAG,MAAM,SAAS,SAASA,EAAG,MAAM,aAAa,WAAWA,EAAG,MAAM,WAAW,SAAS,EAAE,CAAC,CAAC,EAAsB,EAAKL,EAAU,CAAC,GAAGC,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,EAAEO,EAAE,KAAK,MAAM,OAAOP,EAAEO,EAAEP,IAAI,CAAC,GAAK,CAAC,KAAAC,EAAK,GAAAC,EAAG,MAAAC,EAAM,IAAAC,EAAI,KAAAI,CAAI,EAAE,KAAK,MAAMR,CAAC,EAAK,KAAK,OAAOI,GAAKE,IAAWD,GAAQH,GAAY,KAAK,OAAOC,IAAU,CAACK,GAAM,KAAK,OAAO,EAAE,OAAK,KAAK,MAAMR,CAAC,EAAE,KAAK,KAAK,WAAW,GAAGK,GAAQ,SAAS,KAAK,MAAML,CAAC,EAAE,IAAI,WAAgBK,GAAQJ,CAAM,CAAC,KAAK,GAAG,UAAUI,EAAUC,IAAW,KAAK,MAAM,OAAQ,KAAK,QAAQ,GAAQ,KAAK,aAAa,sBAAsB,KAAK,MAAM,EAAE,KAAK,QAAS,CAAC,EAAEZ,EAAiB,KAAK,aAAa,IAAY,KAAK,MAAM,KAAK,MAAM,KAAK,OAAO,EAAE,KAAK,MAAM,MAAM,CAAC,CAAG,EAAEA,EAAiB,KAAK,QAAQ,CAAC,EAAEA,EAAiB,KAAK,QAAQ,CAAC,CAAC,EAAEA,EAAiB,KAAK,UAAU,MAAM,EAAEA,EAAiB,KAAK,eAAe,MAAM,EAAE,KAAK,GAAGD,CAAG,CAAC",
  "names": ["_define_property", "obj", "key", "value", "truncate", "Component", "props", "ref", "pe", "ue", "el", "scramble", "TextScramble", "TextScramble", "el", "_define_property", "newText", "oldText", "length", "promise", "resolve", "i", "from", "to", "start", "end", "output", "complete", "n", "char"]
}
