{"version":3,"file":"shared-lib.C_7Zueai.mjs","names":["useRef","Fragment"],"sources":["https:/framerusercontent.com/modules/a1J1kubo7chY0ckqeTmc/y9cjCxGZjxTer9nMbW73/vFXhi0SXd.js","https:/framerusercontent.com/modules/D75h9oxNgJByzSe5UfeV/JrFkiQ7cI4TjIXHbGZhJ/TextScrollReveal.js","https:/framerusercontent.com/modules/3B23Qe6uzJeL0IsxT0qT/0GH8VGBZCu7v7nFOD99v/siteMetadata.js"],"sourcesContent":["// Generated by Framer (808fccf)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOM;Acid Grotesk Regular\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Acid Grotesk Regular\",source:\"custom\",style:\"normal\",uiFamilyName:\"Acid Grotesk\",url:\"https://framerusercontent.com/assets/tNxXc5M9GmHxgSLPeZZ0G88EWU.woff2\",weight:\"400\"}]}];export const css=[\".framer-PN8Ge .framer-styles-preset-1kuba1m:not(.rich-text-wrapper), .framer-PN8Ge .framer-styles-preset-1kuba1m.rich-text-wrapper p { --framer-font-family: \\\"Acid Grotesk Regular\\\", \\\"Acid Grotesk Regular Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.5em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-5833eca8-39c5-453d-9cae-84944e6b8604, #e1e0e0); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; }\"];export const className=\"framer-PN8Ge\";\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\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform,useSpring}from\"framer-motion\";import{useRef,Fragment}from\"react\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer\n * @framerIntrinsicWidth 600\n * @framerSupportedLayoutHeight any-prefer\n * @framerIntrinsicHeight 300\n */export default function TextScrollReveal({text,type,font,color,htmlTag,opacity:{minOpacity,maxOpacity},style,appear:{start,end,transition}}){const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[`0 ${start}`,`0 ${end}`]});const words=text.split(\" \");const Tag=htmlTag;return /*#__PURE__*/_jsx(Tag,{ref:ref,style:{...style,textAlign:font.textAlign},children:words.map((word,wordIndex)=>{return /*#__PURE__*/_jsx(Fragment,{children:type===\"word\"?/*#__PURE__*/_jsx(Word,{word:word,wordIndex:wordIndex,numberOfWords:words.length,scrollYProgress:scrollYProgress,minOpacity:minOpacity,maxOpacity:maxOpacity,style:{color,fontWeight:\"normal\",...font},transition:transition}):/*#__PURE__*/_jsx(Character,{word:word,wordIndex:wordIndex,numberOfWords:words.length,scrollYProgress:scrollYProgress,minOpacity:minOpacity,maxOpacity:maxOpacity,style:{color,fontWeight:\"normal\",...font},transition:transition})},word+wordIndex);})});}const Character=({word,wordIndex,numberOfWords,scrollYProgress,minOpacity,maxOpacity,style,transition})=>{const wordStart=wordIndex/numberOfWords;const wordEnd=wordStart+1/numberOfWords;return /*#__PURE__*/_jsxs(motion.span,{style:style,children:[word.split(\"\").map((char,charIndex)=>{const charStart=wordStart+charIndex/word.length*(wordEnd-wordStart);const charEnd=wordStart+(charIndex+1)/word.length*(wordEnd-wordStart);const scaleY=useSpring(scrollYProgress,transition);const opacity=useTransform(scaleY,[charStart,charEnd],[minOpacity,maxOpacity]);return /*#__PURE__*/_jsx(motion.span,{style:{opacity,...style},children:char},`${wordIndex}-${charIndex}`);}),wordIndex<numberOfWords-1&&\" \"]},word+wordIndex);};const Word=({word,wordIndex,numberOfWords,scrollYProgress,minOpacity,maxOpacity,style,transition})=>{const wordStart=wordIndex/numberOfWords;const wordEnd=wordStart+1/numberOfWords;const scaleY=useSpring(scrollYProgress,transition);const opacity=useTransform(scaleY,[wordStart,wordEnd],[minOpacity,maxOpacity]);return /*#__PURE__*/_jsxs(motion.span,{style:{opacity,...style},children:[word,wordIndex<numberOfWords-1&&\" \"]},word+wordIndex);};TextScrollReveal.displayName=\"Text Scroll Reveal\";addPropertyControls(TextScrollReveal,{text:{title:\"Text\",type:ControlType.String,displayTextArea:true,defaultValue:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"},htmlTag:{type:ControlType.Enum,title:\"Tag\",defaultValue:\"h1\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"span\",\"p\"],optionTitles:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"span\",\"p\"]},type:{title:\"Type\",type:ControlType.Enum,defaultValue:\"word\",options:[\"word\",\"character\"],optionTitles:[\"Word\",\"Character\"]},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#000\"},opacity:{title:\"Opacity\",type:ControlType.Object,controls:{minOpacity:{title:\"Min\",type:ControlType.Number,defaultValue:.2,min:0,max:1,step:.1,displayStepper:true},maxOpacity:{title:\"Max\",type:ControlType.Number,defaultValue:1,min:0,max:1,step:.1,displayStepper:true}}},appear:{title:\"Scroll Trigger\",type:ControlType.Object,controls:{start:{title:\"Start\",type:ControlType.Enum,defaultValue:\"1\",options:[\"1\",\"0.75\",\"0.5\"],optionTitles:[\"Bottom of Screen\",\"3/4 Down Screen\",\"Middle of Screen\"]},end:{title:\"End\",type:ControlType.Enum,defaultValue:\"0\",options:[\"0\",\"0.25\",\"0.5\"],optionTitles:[\"Top of Screen\",\"1/4 Down Screen\",\"Middle of Screen\"]},transition:{title:\"Transition\",type:ControlType.Transition}},description:\"Full tutorial on [NewOffset](https://newoffset.com)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextScrollReveal\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer\",\"framerSupportedLayoutHeight\":\"any-prefer\",\"framerIntrinsicHeight\":\"300\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextScrollReveal.map","// Generated by Framer (e26a126)\nexport default function metadata(params,activeLocale){return{description:\"Always Connected\",favicon:\"https://framerusercontent.com/assets/ka7ZaCc6VqQdc24hfT5COuOzrSc.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/eWV8BzXZllp7CWBEvidVtBI8.png\",title:\"Hoplynk\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sbAC8B,GAAU,UAAU,CAAC,8BAA8B,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,cAAc,uBAAuB,OAAO,SAAS,MAAM,SAAS,aAAa,eAAe,IAAI,wEAAwE,OAAO,MAAM,CAAC,CAAC,CAAC,CAAc,EAAI,CAAC,8yBAAkzB,CAAc,EAAU,kBCMzpC,SAAwB,EAAiB,CAAC,OAAK,OAAK,OAAK,QAAM,UAAQ,QAAQ,CAAC,aAAW,cAAY,QAAM,OAAO,CAAC,QAAM,MAAI,eAAa,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAM,CA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