{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/dKW0Bcv3ScTZbXSTk0kr/eTzTGUneEcWfiR4qK7uH/Helpers.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import React,{useState}from\"react\";export function withPathFill(Component){return props=>{const color=props?.style?.backgroundColor||\"red\";const svg=props?.svg||props?.children?.props?.svg||props?.children?.props?.children?.props?.svg;function replaceFillColorInSVG(svgString,color){if(!svgString)return svgString;return svgString.replace(/fill=\"([^\"]+)\"/g,`fill=\"${color}\"`);}const formatted={...props,style:{...props?.style||{},backgroundColor:\"none\"},svg:replaceFillColorInSVG(svg,color),children:{...props?.children||{},props:{...props?.children?.props||{},svg:replaceFillColorInSVG(svg,color),children:{...props?.children?.props?.children||{},props:{...props?.children?.props?.children?.props||{},svg:replaceFillColorInSVG(svg,color)}}}}};return /*#__PURE__*/_jsx(Component,{...formatted});};}export function withMaxTextLength(Component){return props=>{const[isHovered,setIsHovered]=useState(false);const clampStyle=!isHovered?{overflow:\"hidden\",display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:4}:{};return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style||{}},children:{...props?.children||{},props:{...props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle},children:{...props?.children?.props?.children||{},props:{...props?.children?.props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle}}}}}});};}export function withMaxTextLength2(Component){return props=>{const[isHovered,setIsHovered]=useState(false);const clampStyle=!isHovered?{overflow:\"hidden\",display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:2}:{};return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style||{}},children:{...props?.children||{},props:{...props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle},children:{...props?.children?.props?.children||{},props:{...props?.children?.props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle}}}}}});};}export function withMaxTextLength1(Component){return props=>{const[isHovered,setIsHovered]=useState(false);const clampStyle=!isHovered?{overflow:\"hidden\",display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:1}:{};return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style||{}},children:{...props?.children||{},props:{...props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle},children:{...props?.children?.props?.children||{},props:{...props?.children?.props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle}}}}}});};}export function withSingleTextLine(Component){return props=>{const[isHovered,setIsHovered]=React.useState(false);const clampStyle=!isHovered?{overflow:\"hidden\",display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:1}:{};return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style||{}},children:{...props?.children||{},props:{...props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle},children:{...props?.children?.props?.children||{},props:{...props?.children?.props?.children?.props||{},style:{...props?.children?.props?.style||{},...clampStyle}}}}}});};}export function withMaxZIndex(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,className:`${props?.className} max-z-index`,style:{...props.style,position:\"fixed\"}});};}export function withRenderInView(Component){return props=>{const elementRef=React.useRef(null);const[isVisible,setIsVisible]=React.useState(false);React.useEffect(()=>{const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setIsVisible(true);}},{root:null,rootMargin:\"0px\",threshold:.5});const element=elementRef.current;if(element){observer.observe(element);}return()=>{if(element){observer.unobserve(element);}};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:elementRef,...props,children:isVisible&&/*#__PURE__*/_jsx(Component,{...props})});};}export function withForceFixedBottomRight(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style||{},position:\"fixed\",right:16,bottom:16,zIndex:9}});};}export function withTextCenter(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,className:`${props?.className||\"\"} force-text-center`});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withForceFixedBottomRight\":{\"type\":\"reactHoc\",\"name\":\"withForceFixedBottomRight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRenderInView\":{\"type\":\"reactHoc\",\"name\":\"withRenderInView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxZIndex\":{\"type\":\"reactHoc\",\"name\":\"withMaxZIndex\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPathFill\":{\"type\":\"reactHoc\",\"name\":\"withPathFill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSingleTextLine\":{\"type\":\"reactHoc\",\"name\":\"withSingleTextLine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxTextLength2\":{\"type\":\"reactHoc\",\"name\":\"withMaxTextLength2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxTextLength1\":{\"type\":\"reactHoc\",\"name\":\"withMaxTextLength1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMaxTextLength\":{\"type\":\"reactHoc\",\"name\":\"withMaxTextLength\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextCenter\":{\"type\":\"reactHoc\",\"name\":\"withTextCenter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Helpers.map"],
  "mappings": "uDAAqF,SAASA,EAAaC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAMD,GAAO,OAAO,iBAAiB,MAAYE,EAAIF,GAAO,KAAKA,GAAO,UAAU,OAAO,KAAKA,GAAO,UAAU,OAAO,UAAU,OAAO,IAAI,SAASG,EAAsBC,EAAUH,EAAM,CAAC,OAAIG,GAAkCA,EAAU,QAAQ,kBAAkB,SAASH,IAAQ,CAAE,CAAC,IAAMI,EAAU,CAAC,GAAGL,EAAM,MAAM,CAAC,GAAGA,GAAO,OAAO,CAAC,EAAE,gBAAgB,MAAM,EAAE,IAAIG,EAAsBD,EAAID,CAAK,EAAE,SAAS,CAAC,GAAGD,GAAO,UAAU,CAAC,EAAE,MAA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,GAAGC,EAAM,UAAU,GAAGA,GAAO,wBAAwB,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,OAAO,CAAC,CAAC,CAAI,CAA0vB,SAASO,EAAeC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,UAAU,GAAGA,GAAO,WAAW,sBAAsB,CAAC,CAAI",
  "names": ["withPathFill", "Component", "props", "color", "svg", "replaceFillColorInSVG", "svgString", "formatted", "p", "withMaxTextLength", "isHovered", "setIsHovered", "ye", "clampStyle", "withMaxTextLength2", "withSingleTextLine", "Component", "props", "isHovered", "setIsHovered", "e", "clampStyle", "p", "withMaxZIndex", "withTextCenter", "Component", "props", "p"]
}
