{"version":3,"file":"Text_Highlight.Cui4EWes.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/puuhcHOavJlPikfTK4iN/sdsjaVK6BfoLyctG6kkQ/Text_Highlight.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function spotify_green(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} strong, .${props.className} b`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{const markElement=document.createElement(\"mark\");const spanElement=document.createElement(\"span\");// Wrap the element with mark\nelement.parentNode.insertBefore(markElement,element);markElement.appendChild(element);// Wrap the content of the element with span\nwhile(element.firstChild){spanElement.appendChild(element.firstChild);}element.appendChild(spanElement);setIsVisible(true);});const handle=entries=>{entries.forEach(entry=>{const highlightedValue=entry.target.style.getPropertyValue(\"--highlighted\");console.log(\"handle\");if(!highlightedValue||parseInt(highlightedValue)===0){entry.target.style.setProperty(\"--highlighted\",entry.isIntersecting?\"1\":\"0\");}});};const observer=new IntersectionObserver(handle,{threshold:1});elements.forEach(M=>observer.observe(M));},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.${props.className} strong,\n.${props.className} b {\n  font-weight: bold;\n}  \n\n.${props.className} mark {\n--highlighted: 0;\n--highlight: rgba(29, 185, 84, 0.25);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(90deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1.5s;\ncolor: rgba(71, 68, 64, 1);\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}export function vidseo_purple(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} strong, .${props.className} b`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{const markElement=document.createElement(\"mark\");const spanElement=document.createElement(\"span\");// Wrap the element with mark\nelement.parentNode.insertBefore(markElement,element);markElement.appendChild(element);// Wrap the content of the element with span\nwhile(element.firstChild){spanElement.appendChild(element.firstChild);}element.appendChild(spanElement);setIsVisible(true);});const handle=entries=>{entries.forEach(entry=>{const highlightedValue=entry.target.style.getPropertyValue(\"--highlighted\");console.log(\"handle\");if(!highlightedValue||parseInt(highlightedValue)===0){entry.target.style.setProperty(\"--highlighted\",entry.isIntersecting?\"1\":\"0\");}});};const observer=new IntersectionObserver(handle,{threshold:1});elements.forEach(M=>observer.observe(M));},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.${props.className} strong,\n.${props.className} b {\n  font-weight: bold;\n}  \n\n.${props.className} mark {\n--highlighted: 0;\n--highlight: rgba(120, 72, 245, 0.25);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(90deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1.5s;\ncolor: rgba(71, 68, 64, 1);\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}export function splitsavvy_blue(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} strong, .${props.className} b`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{const markElement=document.createElement(\"mark\");const spanElement=document.createElement(\"span\");// Wrap the element with mark\nelement.parentNode.insertBefore(markElement,element);markElement.appendChild(element);// Wrap the content of the element with span\nwhile(element.firstChild){spanElement.appendChild(element.firstChild);}element.appendChild(spanElement);setIsVisible(true);});const handle=entries=>{entries.forEach(entry=>{const highlightedValue=entry.target.style.getPropertyValue(\"--highlighted\");console.log(\"handle\");if(!highlightedValue||parseInt(highlightedValue)===0){entry.target.style.setProperty(\"--highlighted\",entry.isIntersecting?\"1\":\"0\");}});};const observer=new IntersectionObserver(handle,{threshold:1});elements.forEach(M=>observer.observe(M));},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.${props.className} strong,\n.${props.className} b {\n  font-weight: bold;\n}  \n\n.${props.className} mark {\n--highlighted: 0;\n--highlight: rgba(44, 118, 226, 0.25);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(90deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1.5s;\ncolor: rgba(71, 68, 64, 1);\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}export function infrared(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} strong, .${props.className} b`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{const markElement=document.createElement(\"mark\");const spanElement=document.createElement(\"span\");// Wrap the element with mark\nelement.parentNode.insertBefore(markElement,element);markElement.appendChild(element);// Wrap the content of the element with span\nwhile(element.firstChild){spanElement.appendChild(element.firstChild);}element.appendChild(spanElement);setIsVisible(true);});const handle=entries=>{entries.forEach(entry=>{const highlightedValue=entry.target.style.getPropertyValue(\"--highlighted\");console.log(\"handle\");if(!highlightedValue||parseInt(highlightedValue)===0){entry.target.style.setProperty(\"--highlighted\",entry.isIntersecting?\"1\":\"0\");}});};const observer=new IntersectionObserver(handle,{threshold:1});elements.forEach(M=>observer.observe(M));},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.${props.className} strong,\n.${props.className} b {\n  font-weight: bold;\n}  \n\n.${props.className} mark {\n--highlighted: 0;\n--highlight: rgba(240, 48, 70, 0.25);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(90deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1.5s;\ncolor: rgba(71, 68, 64, 1);\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"splitsavvy_blue\":{\"type\":\"reactHoc\",\"name\":\"splitsavvy_blue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"infrared\":{\"type\":\"reactHoc\",\"name\":\"infrared\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"vidseo_purple\":{\"type\":\"reactHoc\",\"name\":\"vidseo_purple\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"spotify_green\":{\"type\":\"reactHoc\",\"name\":\"spotify_green\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_Highlight.map"],"mappings":"iLAAqH,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CAGgT,OAH/S,MAAc,CAAC,IAAM,EAAS,SAAS,iBAAiB,IAAI,EAAM,UAAU,YAAY,EAAM,UAAU,IAAI,CACvU,EAAS,QAAQ,GAAS,CAAC,IAAM,EAAY,SAAS,cAAc,OAAO,CAAO,EAAY,SAAS,cAAc,OAAO,CAE5H,IADA,EAAQ,WAAW,aAAa,EAAY,EAAQ,CAAC,EAAY,YAAY,EAAQ,CAC/E,EAAQ,YAAY,EAAY,YAAY,EAAQ,WAAW,CAAE,EAAQ,YAAY,EAAY,CAAC,EAAa,GAAK,EAAG,CAA2R,IAAM,EAAS,IAAI,qBAAhS,GAAS,CAAC,EAAQ,QAAQ,GAAO,CAAC,IAAM,EAAiB,EAAM,OAAO,MAAM,iBAAiB,gBAAgB,CAAC,QAAQ,IAA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