{"version":3,"file":"FamilyTadaHowToUseSection.DeCeUTGZ.mjs","names":["withClass","InViewComponent","useRef","useState","withClass","InViewComponent","useRef","useRef"],"sources":["https:/framerusercontent.com/modules/AMRWG5DLXXQfdkz6eAnc/5LDUHEDuch2ZHRYhjMO1/FamilyTadaBenefitSeciton.js","https:/framerusercontent.com/modules/EVnxPkEIqq8ugtSfdb8q/trS8jHlPSLOiXky3iyxu/FamilyTadaHeader.js","https:/framerusercontent.com/modules/ePpLL23yK6lsFGzz7pAx/qeKMm1tpKcI3cTt1SgNq/FamilyTadaHowToApplySection.js","https:/framerusercontent.com/modules/rePgZcTtgD4fQM5BGq4D/LsEE6Yng6jSZi7fxXIpA/FamilyTadaHowToUseSection.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{useInView}from\"framer-motion\";export function withClass(Component){return props=>{props.className+=\" benefit-section\"// Remember to add a space\n;return /*#__PURE__*/_jsx(InViewComponent,{children:/*#__PURE__*/_jsx(Component,{...props})});};}const InViewComponent=({children})=>{const ref=useRef(null);const isInView=useInView(ref);useEffect(()=>{if(isInView){// document.querySelector(\"#header-benefit\").style.opacity = 1\ndocument.querySelector(\"#header-benefit\").dataset.isInView=\"true\";}else{// document.querySelector(\"#header-benefit\").style.opacity = 0.1\ndocument.querySelector(\"#header-benefit\").dataset.isInView=\"false\";}},[isInView]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},ref:ref,children:children});};\nexport const __FramerMetadata__ = {\"exports\":{\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FamilyTadaBenefitSeciton.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FamilyTadaHeader(props){const[index,setIndex]=useState(0);useEffect(()=>{setInterval(()=>{setIndex(()=>{const lastIndex=[document.querySelector(\"#header-benefit\").dataset.isInView,document.querySelector(\"#header-how-to-apply\").dataset.isInView,document.querySelector(\"#header-how-to-use\").dataset.isInView].lastIndexOf(\"true\");return lastIndex;});},400);},[]);return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:borderStyle}),/*#__PURE__*/_jsx(\"div\",{onClick:()=>{const topOfElement=document.querySelector(\".benefit-section\").offsetTop-90;window.scroll({top:topOfElement,behavior:\"smooth\"});},style:{...imgWrapperStyle,opacity:index===0?1:.1},id:\"header-benefit\",children:/*#__PURE__*/_jsx(\"img\",{style:imgStyle,src:\"https://framerusercontent.com/images/fFJp7k3lAjLYONZh3OATFvCcqI.png?scale-down-to=2048\"})}),/*#__PURE__*/_jsx(\"div\",{onClick:()=>{const topOfElement=document.querySelector(\".how-to-apply-section\").offsetTop-90;window.scroll({top:topOfElement,behavior:\"smooth\"});},style:{...imgWrapperStyle,opacity:index===1?1:.1},id:\"header-how-to-apply\",children:/*#__PURE__*/_jsx(\"img\",{style:imgStyle,src:\"https://framerusercontent.com/images/p87jpTwBEBRLUxQoAn9ke0PsKXg.png?scale-down-to=2048\"})}),/*#__PURE__*/_jsx(\"div\",{onClick:()=>{const topOfElement=document.querySelector(\".how-to-use-section\").offsetTop-100;window.scroll({top:topOfElement,behavior:\"smooth\"});},style:{...imgWrapperStyle,opacity:index===2?1:.1},id:\"header-how-to-use\",children:/*#__PURE__*/_jsx(\"img\",{style:imgStyle,src:\"https://framerusercontent.com/images/zfaQy65xqtXqAIzPLmZKC6Eh9d0.png?scale-down-to=2048\"})})]});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={display:\"flex\",position:\"relative\",height:\"66px\",width:\"100%\",justifyContent:\"center\",alignItems:\"center\",backgroundColor:\"white\"};const imgWrapperStyle={flex:\"1 0 0px\",display:\"flex\",justifyContent:\"center\"};const imgStyle={width:\"80px\",height:\"100%\",objectPosition:\"center center\",obejctFit:\"contain\"};const borderStyle={position:\"absolute\",width:\"100%\",bottom:\"-2px\",height:\"2px\",backgroundColor:\"black\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FamilyTadaHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FamilyTadaHeader.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{useInView}from\"framer-motion\";export function withClass(Component){return props=>{props.className+=\" how-to-apply-section\"// Remember to add a space\n;return /*#__PURE__*/_jsx(InViewComponent,{children:/*#__PURE__*/_jsx(Component,{...props})});};}const InViewComponent=({children})=>{const ref=useRef(null);const isInView=useInView(ref);useEffect(()=>{if(isInView){// document.querySelector(\"#header-how-to-apply\").style.opacity = 1\ndocument.querySelector(\"#header-how-to-apply\").dataset.isInView=\"true\";}else{// document.querySelector(\"#header-how-to-apply\").style.opacity = 0.1\ndocument.querySelector(\"#header-how-to-apply\").dataset.isInView=\"false\";}},[isInView]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},ref:ref,children:children});};\nexport const __FramerMetadata__ = {\"exports\":{\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FamilyTadaHowToApplySection.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{useInView}from\"framer-motion\";export function withClass(Component){return props=>{props.className+=\" how-to-use-section\"// Remember to add a space\n;return /*#__PURE__*/_jsx(InViewComponent,{children:/*#__PURE__*/_jsx(Component,{...props})});};}const InViewComponent=({children})=>{const ref=useRef(null);const isInView=useInView(ref);useEffect(()=>{if(isInView){// document.querySelector(\"#header-how-to-use\").style.opacity = 1\ndocument.querySelector(\"#header-how-to-use\").dataset.isInView=\"true\";}else{// document.querySelector(\"#header-how-to-use\").style.opacity = 0.1\ndocument.querySelector(\"#header-how-to-use\").dataset.isInView=\"false\";}},[isInView]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},ref:ref,children:children});};\nexport const __FramerMetadata__ = {\"exports\":{\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FamilyTadaHowToUseSection.map"],"mappings":"iMAAoH,SAAgBA,EAAU,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,mBACpK,EAAKC,EAAgB,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,qBADlD,IAAoC,IAAqC,CACbA,GAAiB,CAAC,cAAY,CAAC,IAAM,EAAIC,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAExG,OAFyG,MAAc,CAAI,EAC7M,SAAS,cAAc,kBAAkB,CAAC,QAAQ,SAAS,OAC3D,SAAS,cAAc,kBAAkB,CAAC,QAAQ,SAAS,SAAW,CAAC,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,CAAK,MAAa,WAAS,CAAC,KCK/J,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,EAAM,GAAUC,EAAS,EAAE,CAA+S,OAA9S,MAAc,CAAC,gBAAgB,CAAC,MAA8B,CAAC,SAAS,cAAc,kBAAkB,CAAC,QAAQ,SAAS,SAAS,cAAc,uBAAuB,CAAC,QAAQ,SAAS,SAAS,cAAc,qBAAqB,CAAC,QAAQ,S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