{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/fW0ikx4YbkdW3CHqxb5E/wjZRUppddk7O25nbXw2W/General_Styles.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{motion}from\"framer-motion\";export function DropdownClickOutside(Component){return props=>{const[isOpen,setIsOpen]=useState(false);const containerRef=useRef(null)// Reference to the container div\n;const handleClickOutside=event=>{// Close the dropdown if clicked outside the container\nif(containerRef.current&&!containerRef.current.contains(event.target)){setIsOpen(false);}};useEffect(()=>{// Add event listener when the component is mounted\ndocument.addEventListener(\"click\",handleClickOutside);// Cleanup the event listener when the component is unmounted\nreturn()=>{document.removeEventListener(\"click\",handleClickOutside);};},[]);const toggleDropdown=event=>{// Prevent the click from bubbling up to the document\nevent.stopPropagation();// Toggle the dropdown\nsetIsOpen(prevState=>!prevState);};return /*#__PURE__*/_jsxs(Component,{...props,ref:containerRef,style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:toggleDropdown,children:props.children[0]}),/*#__PURE__*/_jsx(motion.div,{style:{display:isOpen?\"block\":\"none\",position:\"absolute\",top:\"100%\",left:0,width:\"100%\",zIndex:10},children:props.children[1]})]});};}export function withCustomScrollableSection(Component){return props=>{const scrollOffset=100;const[isScrollable,setIsScrollable]=useState(false);useEffect(()=>{const handleScroll=()=>{// Get the navbar height\nconst navbar=document.querySelector('[name=\"Navbar\"]');const navbarHeight=navbar?navbar.offsetHeight:0;console.log(\"scrolling\");// Get the section element\nconst section=document.querySelector('[name=\"Scroll Section\"]');if(section){const sectionTop=section.getBoundingClientRect().top;// Enable scroll when the section is at or below the navbar height\nif(sectionTop<=navbarHeight+scrollOffset){setIsScrollable(true);}else{setIsScrollable(false);}}};// Add scroll event listener\nwindow.addEventListener(\"scroll\",handleScroll);// Clean up the event listener on unmount\nreturn()=>{window.removeEventListener(\"scroll\",handleScroll);};},[props.id]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflowY:isScrollable?\"auto\":\"hidden\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",// Webkit Scrollbar styles (for Chrome, Safari, etc.)\nWebkitOverflowScrolling:\"touch\",// Custom scrollbar styles\n\"::-webkit-scrollbar\":{display:\"none\"},\"::-webkit-scrollbar-track\":{backgroundColor:\"#f1f1f1\",borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb\":{backgroundColor:\"#888\",borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb:hover\":{backgroundColor:\"#555\"}}});};}export function withScrollElement(Component){return props=>{useEffect(()=>{const scrollContainer=document.querySelector('[name=\"Scroll Section\"]');const absoluteElement=document.querySelector('[name=\"Scroll Thumb\"]');if(scrollContainer&&absoluteElement){const handleScroll=()=>{const scrollPosition=scrollContainer.scrollTop;const containerHeight=scrollContainer.scrollHeight;const viewportHeight=scrollContainer.clientHeight;// Calculate the maximum scroll position\nconst maxScroll=containerHeight-viewportHeight;// Calculate the thumb's top position as a proportion of the scroll\nconst thumbPosition=scrollPosition/maxScroll*(containerHeight-absoluteElement.clientHeight);// Adjust the absolute position element according to scroll\nabsoluteElement.style.top=thumbPosition+\"px\";};// Attach scroll event listener\nscrollContainer.addEventListener(\"scroll\",handleScroll);// Cleanup the event listener on component unmount\nreturn()=>{scrollContainer.removeEventListener(\"scroll\",handleScroll);};}},[])// Empty dependency array ensures this runs once after the component mounts\n;return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,// Enable or disable scroll\nscrollbarWidth:\"none\",msOverflowStyle:\"none\",// Webkit Scrollbar styles (for Chrome, Safari, etc.)\nWebkitOverflowScrolling:\"touch\",// Custom scrollbar styles\n\"::-webkit-scrollbar\":{display:\"none\"},\"::-webkit-scrollbar-track\":{backgroundColor:\"#f1f1f1\",borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb\":{backgroundColor:\"#888\",borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb:hover\":{backgroundColor:\"#555\"}}});};}export function NavbarMarginBottom(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,marginBottom:\"80px\",overflow:\"visible\"}});};}// Linear gradient override\nexport function withGradientText(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,background:\"linear-gradient(90deg, #27C2A7 32%, #023047 100%)\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\"}});};}export function LeftClipPath(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,clipPath:\"polygon(23% 0, 100% 0, 100% 100%, 0 100%)\"}});};}export function RightClipPath(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,clipPath:\"polygon(0 0, 100% 0, 80% 100%, 0 100%)\"}});};}export function TranslateY140(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transform:\"translateY(140px)\",// boxShadow: `0 0 20px rgba(0, 0, 0, 0.25)`,\noverflow:\"visible\"}});};}export function TranslateY100(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transform:\"translateY(100px)\"}});};}export function withClass_TabsContainer(Component){return props=>{props.className+=\" tabs-container\";return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"LeftClipPath\":{\"type\":\"reactHoc\",\"name\":\"LeftClipPath\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NavbarMarginBottom\":{\"type\":\"reactHoc\",\"name\":\"NavbarMarginBottom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClass_TabsContainer\":{\"type\":\"reactHoc\",\"name\":\"withClass_TabsContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RightClipPath\":{\"type\":\"reactHoc\",\"name\":\"RightClipPath\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollElement\":{\"type\":\"reactHoc\",\"name\":\"withScrollElement\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomScrollableSection\":{\"type\":\"reactHoc\",\"name\":\"withCustomScrollableSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DropdownClickOutside\":{\"type\":\"reactHoc\",\"name\":\"DropdownClickOutside\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TranslateY140\":{\"type\":\"reactHoc\",\"name\":\"TranslateY140\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TranslateY100\":{\"type\":\"reactHoc\",\"name\":\"TranslateY100\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGradientText\":{\"type\":\"reactHoc\",\"name\":\"withGradientText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./General_Styles.map"],
  "mappings": "gDAaoQ,SAASA,EAAkBC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,IAAMC,EAAgB,SAAS,cAAc,yBAAyB,EAAQC,EAAgB,SAAS,cAAc,uBAAuB,EAAE,GAAGD,GAAiBC,EAAgB,CAAC,IAAMC,EAAa,IAAI,CAAC,IAAMC,EAAeH,EAAgB,UAAgBI,EAAgBJ,EAAgB,aAAmBK,EAAeL,EAAgB,aACppBM,EAAUF,EAAgBC,EAC1BE,EAAcJ,EAAeG,GAAWF,EAAgBH,EAAgB,cAC9EA,EAAgB,MAAM,IAAIM,EAAc,IAAK,EAC7C,OAAAP,EAAgB,iBAAiB,SAASE,CAAY,EAChD,IAAI,CAACF,EAAgB,oBAAoB,SAASE,CAAY,CAAE,CAAE,CAAC,EAAE,CAAC,CAAC,EACxDM,EAAKX,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAC9D,eAAe,OAAO,gBAAgB,OACtC,wBAAwB,QACxB,sBAAsB,CAAC,QAAQ,MAAM,EAAE,4BAA4B,CAAC,gBAAgB,UAAU,aAAa,MAAM,EAAE,4BAA4B,CAAC,gBAAgB,OAAO,aAAa,MAAM,EAAE,kCAAkC,CAAC,gBAAgB,MAAM,CAAC,CAAC,CAAC,EAAI,CACrP,SAASW,EAAiBC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,WAAW,oDAAoD,qBAAqB,OAAO,oBAAoB,aAAa,CAAC,CAAC,CAAI",
  "names": ["withScrollElement", "Component", "props", "ue", "scrollContainer", "absoluteElement", "handleScroll", "scrollPosition", "containerHeight", "viewportHeight", "maxScroll", "thumbPosition", "p", "withGradientText", "Component", "props", "p"]
}
