{"version":3,"file":"TextShine.BTcWZQuL.mjs","names":["useRef","useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/5W0RVcUGMXXVKKwt0HzH/O6tKboDeKQzZuMNCVZky/Text_reveal.js","https:/framerusercontent.com/modules/XBPZTrACUOWNgwzE5au4/8LS7iwdbR0qKExq8zfXA/TextShine.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform,useSpring}from\"framer-motion\";import{useRef,useEffect,useState}from\"react\";const EachWord=({word,starting,ending,startOpacity,endOpacity,progress,stiffness,damping})=>{const[sanitizedWord,setSanitizedWord]=useState(word);const progressVal=useTransform(progress,[starting,ending],[startOpacity,endOpacity]);const smoothProgress=useSpring(progressVal,{stiffness,damping});const animationStyles={opacity:smoothProgress,willChange:\"opacity\"};useEffect(()=>{if(typeof window!==\"undefined\"){import(\"dompurify\").then(DOMPurify=>{setSanitizedWord(DOMPurify.sanitize(word));});}},[word]);return /*#__PURE__*/_jsx(motion.span,{style:animationStyles,dangerouslySetInnerHTML:{__html:sanitizedWord}});};export default function Reveal(props){const text=props.text;const words=text.split(/(<[^>]+>[^<]*<\\/[^>]+>|<[^>]+>|[^<>\\s]+)/g).filter(Boolean)// Split by HTML tags and words, keeping tags with their content together\n;const totalWords=words.length;const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[`start ${props.startOffset}`,`end ${props.endOffset}`]});return /*#__PURE__*/_jsx(\"p\",{ref:ref,style:{...props.font,color:props.textColor,margin:0,padding:0},children:words.map((word,idx)=>{const starting=idx/totalWords;const ending=(idx+1)/totalWords;return /*#__PURE__*/_jsx(EachWord,{word:word,starting:starting,ending:ending,startOpacity:props.startOpacity,endOpacity:props.endOpacity,progress:scrollYProgress,stiffness:props.stiffness,damping:props.damping},idx);})});}addPropertyControls(Reveal,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Step into the future where each collection is a doorway to a different realm. <br><br>From the <b>nomadic trails</b> of the desert to the bustling streets of the urban jungle, our collections merge the <u>past's heritage</u> with the future's possibilities.<br><br>Futuristic architecture in the Amazon jungle\",displayTextArea:true},font:{type:\"font\",controls:\"extended\"},textColor:{type:ControlType.Color},startOffset:{title:\"Start Offset\",type:ControlType.Number,defaultValue:.75,min:0,max:1,step:.01},endOffset:{title:\"End Offset\",type:ControlType.Number,defaultValue:.15,min:0,max:1,step:.01},stiffness:{title:\"Stiffness\",type:ControlType.Number,defaultValue:100,min:0,max:1e3,step:1},damping:{title:\"Damping\",type:ControlType.Number,defaultValue:20,min:0,max:100,step:1},startOpacity:{title:\"Start Opacity\",type:ControlType.Number,defaultValue:.1,min:0,max:1,step:.01},endOpacity:{title:\"End Opacity\",type:ControlType.Number,defaultValue:1,min:0,max:1,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Reveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_reveal.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export const TextShine=props=>{useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n@keyframes shine {\n0% { -webkit-mask-position: 200%; }\n100% { -webkit-mask-position: -100%; }\n}\n        .shine {\n            -webkit-mask-image: linear-gradient(to right, transparent 30%, #EEE 50%, transparent 70%);\n            -webkit-mask-size: 150% auto;\n            animation: shine 5s ease-in-out infinite;\n        }\n    `;document.head.appendChild(style);},[]);return{...props,style:{...props.style},children:/*#__PURE__*/_jsx(\"span\",{className:\"shine\",children:props.children})};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withTextShine(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextShine(props)});};}withTextShine.displayName=\"TextShine\";\nexport const __FramerMetadata__ = {\"exports\":{\"TextShine\":{\"type\":\"override\",\"name\":\"TextShine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextShine\":{\"type\":\"reactHoc\",\"name\":\"withTextShine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextShine.map"],"mappings":"2dAAszB,SAAwB,EAAO,EAAM,CAAuB,IAAM,EAAjB,EAAM,KAAsB,MAAM,4CAA4C,CAAC,OAAO,QAAQ,CAC97B,EAAW,EAAM,OAAa,EAAIA,EAAO,KAAK,CAAM,CAAC,mBAAiB,EAAU,CAAC,OAAO,EAAI,OAAO,CAAC,SAAS,EAAM,cAAc,OAAO,EAAM,YAAY,CAAC,CAAC,CAAC,OAAoB,EAAK,IAAI,CAAK,MAAI,MAAM,CAAC,GAAG,EAAM,KAAK,MAAM,EAAM,UAAU,OAAO,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAM,KAAK,EAAK,IAAM,CAAC,IAAM,EAAS,EAAI,EAAiB,GAAQ,EAAI,GAAG,EAAW,OAAoB,EAAK,EAAS,CAAM,OAAc,WAAgB,SAAO,aAAa,EAAM,aAAa,WAAW,EAAM,WAAW,SAAS,EAAgB,UAAU,EAAM,UAAU,QAAQ,EAAM,QAAQ,CAAC,EAAI,EAAG,CAAC,CAAC,wBADxhB,IAAoD,IAAmE,IAA6C,CAAM,GAAU,CAAC,OAAK,WAAS,SAAO,eAAa,aAAW,WAAS,YAAU,aAAW,CAAC,GAAK,CAAC,EAAc,GAAkBC,EAAS,EAAK,CAAO,EAAY,EAAa,EAAS,CAAC,EAAS,EAAO,CAAC,CAAC,EAAa,EAAW,CAAC,CAAuE,EAAgB,CAAC,QAAlE,EAAU,EAAY,CAAC,YAAU,UAAQ,CAAC,CAA+C,WAAW,UAAU,CAA8I,OAA7I,MAAc,CAAW,IAAS,QAAa,OAAO,yBAAa,KAAK,GAAW,CAAC,EAAiB,E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