{"version":3,"file":"A_Habits_Video.GCIIx7Lf.mjs","names":["useRef","useState","_ref_current","absoluteFill","useRef","useState","_ref_current"],"sources":["https:/framerusercontent.com/modules/tg1RATHlxVr225B5jeWV/VkwEWvgmV5vgVzwTpKBi/A_Video.js","https:/framer.com/m/A-Video-tpTp.js@VkwEWvgmV5vgVzwTpKBi","https:/framerusercontent.com/modules/WGs9fItWuyS13pD1aPuC/B61olGwpRt31KdoaEXL0/A_Habits_Video.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect,useState}from\"react\";import{motion,useScroll,useSpring,useTransform}from\"framer-motion\";const absoluteFill={position:\"absolute\",top:0,left:0,right:0,bottom:0};const aMask=`url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='115' viewBox='0 0 110 115' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 115L43.0545 0H66.9455L110 115H0ZM54.3454 27.9653L31.7539 93.149H78.3049L55.7135 27.9653H54.3454Z' fill='white'/%3E%3C/svg%3E%0A\")`;const upperCircleMask=`url(\"data:image/svg+xml,%3Csvg width='1440' height='1440' viewBox='0 0 1440 1440' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_123_16862)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1440 11.4297C1469.87 -28.9664 1486.17 -72.5829 1486.17 -118.077C1486.17 -326.798 1143.14 -496 720 -496C296.857 -496 -46.168 -326.798 -46.168 -118.077C-46.168 -72.5829 -29.8711 -28.9664 0 11.4297V1440H1440V11.4297ZM1440 11.4297V0H0V11.4297C107.174 156.366 389.088 259.846 720 259.846C1050.91 259.846 1332.83 156.366 1440 11.4297Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_123_16862'%3E%3Crect width='1440' height='1440' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A\")`;const lowerCircleMask=`url(\"data:image/svg+xml,%3Csvg width='1440' height='260' viewBox='0 0 1440 260' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1440 11.4297C1332.83 156.366 1050.91 259.846 720 259.846C389.088 259.846 107.174 156.366 0 11.4297V0H1440V11.4297Z' fill='white'/%3E%3C/svg%3E%0A\")`;const horizontalEdgesFadeMask=`linear-gradient(270deg, rgba(217, 217, 217, 0.00) 12.77%, #D9D9D9 51.49%, rgba(217, 217, 217, 0.00) 85.57%)`;const fadeMask=`linear-gradient(180deg, #D9D9D9 0%, rgba(217, 217, 217, 0.25) 46.33%, rgba(217, 217, 217, 0.00) 90.1%)`;export function useParallax(progress,height,strength=.25,springy){// return useTransform(value, [0, 1], [-distance, distance])\nconst transform=useTransform(progress,[0,1],[-height*strength,height*strength]);if(springy)return useSpring(transform);return transform;}export function withApollosMask(Component){return props=>{var _window,_ref_current;const ref=useRef(null);const[height,setHeight]=useState(((_window=window)===null||_window===void 0?void 0:_window.innerHeight)||1);useEffect(()=>{var _ref_current;if(((_ref_current=ref.current)===null||_ref_current===void 0?void 0:_ref_current.offsetHeight)&&height!==ref.current.offsetHeight){setHeight(ref.current.offsetHeight);}},[(_ref_current=ref.current)===null||_ref_current===void 0?void 0:_ref_current.offsetHeight]);const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"end start\"]});const y=useParallax(scrollYProgress,height);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:absoluteFill,children:/*#__PURE__*/_jsx(motion.div,{style:{y,...absoluteFill},children:/*#__PURE__*/_jsx(Component,{...props,style:{maskImage:aMask,WebkitMaskImage:aMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}})})});};}export function withUpperCircleMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{maskImage:upperCircleMask,WebkitMaskImage:upperCircleMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withLowerCircleMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{maskImage:lowerCircleMask,WebkitMaskImage:lowerCircleMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withHorizontalEdgesFadeMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{maskImage:horizontalEdgesFadeMask,WebkitMaskImage:horizontalEdgesFadeMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withFadeMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{maskImage:fadeMask,WebkitMaskImage:fadeMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withApollosMask\":{\"type\":\"reactHoc\",\"name\":\"withApollosMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useParallax\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHorizontalEdgesFadeMask\":{\"type\":\"reactHoc\",\"name\":\"withHorizontalEdgesFadeMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLowerCircleMask\":{\"type\":\"reactHoc\",\"name\":\"withLowerCircleMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFadeMask\":{\"type\":\"reactHoc\",\"name\":\"withFadeMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUpperCircleMask\":{\"type\":\"reactHoc\",\"name\":\"withUpperCircleMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./A_Video.map","/*\n * A_Video\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/tg1RATHlxVr225B5jeWV/VkwEWvgmV5vgVzwTpKBi/A_Video.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect,useState}from\"react\";import{motion,useScroll}from\"framer-motion\";const absoluteFill={position:\"absolute\",top:0,left:0,right:0,bottom:0};import{useParallax}from\"https://framer.com/m/A-Video-tpTp.js@VkwEWvgmV5vgVzwTpKBi\";const insideVideoMask=`url(\"data:image/svg+xml,%3Csvg width='1440' height='1440' viewBox='0 0 1440 1440' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M521.451 887.753L718.97 326.716L910.823 887.753L994.905 1133.44L1012.86 1185.69H416.941L435.309 1133.44L521.451 887.753Z' fill='black'/%3E%3C/svg%3E%0A\")`;const outsideGradientMask=`url(\"data:image/svg+xml,%3Csvg width='1440' height='1425' viewBox='0 0 1440 1425' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_165_37521)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 1425.74L542.601 0H0V1425.74ZM1440 1425.74H1213.57V1426H165.314V1425.74H0V1440H1440L1440 1425.74ZM902.068 0H1440L1440 1425.74L902.068 0Z' fill='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_165_37521'%3E%3Crect width='1440' height='1425' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A\")`;const radialMask=`url(\"data:image/svg+xml,%3Csvg width='1440' height='1425' viewBox='0 0 1440 1425' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1440' height='1440' fill='url(%23paint0_radial_166_37543)'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_166_37543' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(720 529.375) rotate(-90) scale(529.375 676.424)'%3E%3Cstop stop-color='%23D9D9D9'/%3E%3Cstop offset='1' stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E%0A\")`;const fadeMask=`linear-gradient(180deg, #D9D9D9 0%, rgba(217, 217, 217, 0.25) 46.33%, rgba(217, 217, 217, 0.00) 90.1%)`;export function withInsideVideoMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style?props.style:{},maskImage:insideVideoMask,WebkitMaskImage:insideVideoMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withOutsideGradient(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style?props.style:{},maskImage:outsideGradientMask,WebkitMaskImage:outsideGradientMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withRadialMask(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style?props.style:{},maskImage:radialMask,WebkitMaskImage:radialMask,maskSize:\"100%\",WebkitMaskSize:\"100%\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}});};}export function withParallaxVideo(Component){return props=>{var _window,_ref_current;const ref=useRef(null);const[height,setHeight]=useState(((_window=window)===null||_window===void 0?void 0:_window.innerHeight)||1);useEffect(()=>{var _ref_current;if(((_ref_current=ref.current)===null||_ref_current===void 0?void 0:_ref_current.offsetHeight)&&height!==ref.current.offsetHeight){setHeight(ref.current.offsetHeight);}},[(_ref_current=ref.current)===null||_ref_current===void 0?void 0:_ref_current.offsetHeight]);const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"end start\"]});const y=useParallax(scrollYProgress,height);return /*#__PURE__*/_jsx(motion.div,{ref:ref,style:{y,...absoluteFill},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withOutsideGradient\":{\"type\":\"reactHoc\",\"name\":\"withOutsideGradient\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withParallaxVideo\":{\"type\":\"reactHoc\",\"name\":\"withParallaxVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRadialMask\":{\"type\":\"reactHoc\",\"name\":\"withRadialMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInsideVideoMask\":{\"type\":\"reactHoc\",\"name\":\"withInsideVideoMask\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./A_Habits_Video.map"],"mappings":"oNAAk3D,SAAgB,EAAY,EAAS,EAAO,EAAS,IAAI,EAAQ,CACn7D,IAAM,EAAU,EAAa,EAAS,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAO,EAAS,EAAO,EAAS,CAAC,CAAwC,OAApC,EAAe,EAAU,EAAU,CAAQ,EAAW,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAA0B,IAAM,EAAIA,EAAO,KAAK,CAAM,CAAC,EAAO,GAAWC,EAAmB,GAAgD,aAAc,EAAE,CAAC,MAAc,CAAoC,EAAI,SAA2D,cAAe,IAAS,EAAI,QAAQ,cAAc,EAAU,EAAI,QAAQ,aAAa,EAAI,CAAe,EAAI,SAA2D,aAAa,CAAC,CAAC,GAAK,CAAC,mBAAiB,EAAU,CAAC,OAAO,EAAI,OAAO,CAAC,YAAY,YAAY,CAAC,CAAC,CAAO,EAAE,EAAY,EAAgB,EAAO,CAAC,OAAoB,EAAK,MAAM,CAAK,MAAI,MAAME,EAAa,SAAsB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,IAAE,GAAGA,EAAa,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,UAAU,EAAM,gBAAgB,EAAM,SAAS,OAAO,eAAe,OAAO,WAAW,YAAY,iBAAiB,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAI,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,C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