{"version":3,"file":"pNFlxUL34.C1RobXHD.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/tKGOzgJrqWcE5gAlxR0G/0tE6UqkU3xFCMXgMCuLJ/YELLOW_HIGHLIGHT_1.js","https:/framerusercontent.com/modules/JnruuKt4BcTdHturLGav/hsO6AmWWFWcGj29Bksb5/pNFlxUL34.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withHighlightColor1(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} [style*=\"--framer-text-decoration\"]`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{element.style.removeProperty(\"--framer-text-decoration\");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} mark {\n--highlighted: 0;\n--highlight: rgba(250, 250, 51, 1);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(120deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1s;\ncolor: inherit;\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}export function withHighlightColor2(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} [style*=\"--framer-text-decoration\"]`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{element.style.removeProperty(\"--framer-text-decoration\");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\");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} mark {\n--highlighted: 0;\n--highlight: rgba(250, 250, 51), 0.8);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(120deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1s;\ncolor: black;\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}export function withHighlightColor3(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const elements=document.querySelectorAll(`.${props.className} [style*=\"--framer-text-decoration\"]`);// Now, let's add a parent <mark> tag to the selected elements\nelements.forEach(element=>{element.style.removeProperty(\"--framer-text-decoration\");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\");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} mark {\n--highlighted: 0;\n--highlight: rgba(140, 0, 255, 0.5);\nbackground: transparent;\n}\n\n.${props.className} mark span {\nbackground: linear-gradient(120deg, var(--highlight) 50%, transparent 50%) 110% 0 / 200% 100% no-repeat;\nbackground-position: calc((1 - var(--highlighted)) * 110%) 0;\ntransition: background-position 1s;\ncolor: white;\n}\n`}),/*#__PURE__*/_jsx(Component,{...props,style:!isVisible?{opacity:0}:{}})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHighlightColor3\":{\"type\":\"reactHoc\",\"name\":\"withHighlightColor3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHighlightColor1\":{\"type\":\"reactHoc\",\"name\":\"withHighlightColor1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHighlightColor2\":{\"type\":\"reactHoc\",\"name\":\"withHighlightColor2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YELLOW_HIGHLIGHT_1.map","// Generated by Framer (005c846)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-5WdN2 .framer-styles-preset-987itc:not(.rich-text-wrapper), .framer-5WdN2 .framer-styles-preset-987itc.rich-text-wrapper a { --framer-link-current-text-color: var(--token-6856ce41-477e-4d0c-aaee-9d4359c88373, #bada55); --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #0040ff; --framer-link-hover-text-decoration: underline; --framer-link-text-color: var(--token-f558ec9f-cf8c-40dc-9716-2a7179631c0f, #181f00); --framer-link-text-decoration: underline; }\"];export const className=\"framer-5WdN2\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wLAAqH,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,EAAK,EAG2S,OAHzS,MAAc,CAAC,IAAM,EAAS,SAAS,iBAAiB,IAAI,EAAM,UAAU,qCAAqC,EAClV,EAAS,QAAQ,GAAS,CAAC,EAAQ,MAAM,eAAe,0BAA0B,EAAE,IAAM,EAAY,SAAS,cAAc,MAAM,EAAQ,EAAY,SAAS,cAAc,MAAM,EAEpL,IADA,EAAQ,WAAW,aAAa,EAAY,CAAO,EAAE,EAAY,YAAY,CAAO,EAC9E,EAAQ,YAAY,EAAY,YAAY,EAAQ,UAAU,EAAG,EAAQ,YAAY,CAAW,EAAE,EAAa,EAAI,CAAE,CAAC,EAA4R,IAAM,EAAS,IAAI,qBAAhS,GAAS,CAAC,EAAQ,QAAQ,GAAO,CAAC,IAAM,EAAiB,EAAM,OAAO,MAAM,iBAAiB,eAAe,EAAE,QAAQ,IAAI,QAAQ,GAAK,CAAC,GAAkB,SAAS,CAAgB,IAAI,IAAG,EAAM,OAAO,MAAM,YAAY,gBAAgB,EAAM,eAAe,IAAI,GAAG,CAAG,CAAC,CAAE,EAAiD,CAAC,UAAU,CAAC,CAAC,EAAE,EAAS,QAAQ,GAAG,EAAS,QAAQ,CAAC,CAAC,CAAE,EAAE,CAAC,CAAK,CAAC,EAAsB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;GAC1lB,EAAM,UAAU;;;;;;GAMhB,EAAM,UAAU;;;;;;CAMlB,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,EAAM,MAAO,EAAsB,CAAC,EAAb,CAAC,QAAQ,CAAC,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,iBAhBH,IAAsC,uBCCvF,EAAC,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,ifAAif,EAAe,EAAU"}