{"version":3,"file":"Hero_Video_Loop.aJB6bamI.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","useRef","useState"],"sources":["https:/framerusercontent.com/modules/36Q8IRoiNPXRW7TLq2VC/j78psxF1BYS6N6Mt2nLH/q5eQg6fJg.js","https:/framerusercontent.com/modules/ViFObrmFP5h1bqhjRI7f/OAsPwJCV8khzYOyCoyKu/Hero_Video_Loop.js"],"sourcesContent":["// Generated by Framer (43e8337)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,Link,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={O3rgJSm0l:{hover:true,pressed:true}};const serializationHash=\"framer-FezJb\";const variantClassNames={O3rgJSm0l:\"framer-v-tlwozw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const transformTemplate1=(_,t)=>`translate(-50%, -50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"O3rgJSm0l\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:{hash:\":tzKWZlGHf\",webPageId:\"ODIf2dbPr\"},motionChild:true,nodeId:\"O3rgJSm0l\",openInNewTab:false,scopeId:\"q5eQg6fJg\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-tlwozw\",className,classNames)} framer-15opmrq`,\"data-border\":true,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"O3rgJSm0l\",ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgb(237, 234, 228)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backdropFilter:\"blur(3px)\",backgroundColor:\"rgba(0, 0, 0, 0.4)\",borderBottomLeftRadius:30,borderBottomRightRadius:30,borderTopLeftRadius:30,borderTopRightRadius:30,WebkitBackdropFilter:\"blur(3px)\",...style},variants:{\"O3rgJSm0l-hover\":{backgroundColor:\"rgb(237, 234, 228)\"},\"O3rgJSm0l-pressed\":{backgroundColor:\"rgb(237, 234, 228)\"}},...addPropertyOverrides({\"O3rgJSm0l-hover\":{\"data-framer-name\":undefined},\"O3rgJSm0l-pressed\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"RlM7UHVibGljIFNhbnMtcmVndWxhcg==\",\"--framer-font-family\":'\"Public Sans\", \"Public Sans Placeholder\", sans-serif',\"--framer-font-open-type-features\":\"'salt' on\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, #EDEAE4)\",\"--framer-text-stroke-color\":\"var(--extracted-1nvstw5, rgba(0, 0, 0, 1))\",\"--framer-text-stroke-width\":\"var(--extracted-1kkmzbh, 0px)\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-padding\":\"0px 5px 0px 5px\"},children:\"Available for hire, get in touch.\"})})}),className:\"framer-7w7r3l\",fonts:[\"FS;Public Sans-regular\"],layoutDependency:layoutDependency,layoutId:\"mwrCjYYw9\",style:{\"--extracted-1kkmzbh\":\"0px\",\"--extracted-1nvstw5\":\"rgba(0, 0, 0, 1)\",\"--extracted-r6o4lv\":\"#EDEAE4\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},transformTemplate:transformTemplate1,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"O3rgJSm0l-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"RlM7UHVibGljIFNhbnMtcmVndWxhcg==\",\"--framer-font-family\":'\"Public Sans\", \"Public Sans Placeholder\", sans-serif',\"--framer-font-open-type-features\":\"'salt' on\",\"--framer-text-alignment\":\"left\",\"--framer-text-stroke-color\":\"var(--extracted-1nvstw5, rgba(0, 0, 0, 1))\",\"--framer-text-stroke-width\":\"var(--extracted-1kkmzbh, 0px)\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-padding\":\"0px 5px 0px 5px\"},children:\"Available for hire, get in touch.\"})})})},\"O3rgJSm0l-pressed\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"RlM7UHVibGljIFNhbnMtcmVndWxhcg==\",\"--framer-font-family\":'\"Public Sans\", \"Public Sans Placeholder\", sans-serif',\"--framer-font-open-type-features\":\"'salt' on\",\"--framer-text-alignment\":\"left\",\"--framer-text-stroke-color\":\"var(--extracted-1nvstw5, rgba(0, 0, 0, 1))\",\"--framer-text-stroke-width\":\"var(--extracted-1kkmzbh, 0px)\"},children:/*#__PURE__*/_jsx(motion.mark,{style:{\"--framer-text-background-padding\":\"0px 5px 0px 5px\"},children:\"Available for hire, get in touch.\"})})})}},baseVariant,gestureVariant)})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-FezJb.framer-15opmrq, .framer-FezJb .framer-15opmrq { display: block; }\",\".framer-FezJb.framer-tlwozw { cursor: pointer; height: 40px; overflow: var(--overflow-clip-fallback, clip); position: relative; text-decoration: none; width: 260px; will-change: var(--framer-will-change-override, transform); }\",\".framer-FezJb .framer-7w7r3l { flex: none; height: auto; left: 50%; position: absolute; top: 50%; white-space: pre; width: auto; }\",'.framer-FezJb[data-border=\"true\"]::after, .framer-FezJb [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 260\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"p6vmlufqo\":{\"layout\":[\"fixed\",\"fixed\"]},\"gFYNZBX1t\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerq5eQg6fJg=withCSS(Component,css,\"framer-FezJb\");export default Framerq5eQg6fJg;Framerq5eQg6fJg.displayName=\"GET IN TOUCH BUTTON\";Framerq5eQg6fJg.defaultProps={height:40,width:260};addFonts(Framerq5eQg6fJg,[{explicitInter:true,fonts:[{cssFamilyName:\"Public Sans\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Public Sans\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/SJMDNDWFQFKF6P2C3BSVXDX5DH2LMTPD/NCL5LNG7O6EG4WSTAFHJJDW3NISNEXFB/RFZLLA6NQUFAWMX5HJLUYJOAQDM2HW6L.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerq5eQg6fJg\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"260\",\"framerIntrinsicHeight\":\"40\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"p6vmlufqo\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"gFYNZBX1t\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./q5eQg6fJg.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef,useState}from\"react\";export default function HeroVideo({videoSrc,fallbackSrc,disableOnMobile}){const videoRef=useRef(null);const[showVideo,setShowVideo]=useState(true);useEffect(()=>{// Skip video entirely on small screens if enabled\nif(disableOnMobile&&window.matchMedia(\"(max-width: 809px)\").matches){setShowVideo(false);return;}const video=videoRef.current;if(!video)return;const startPlayback=()=>{video.play().catch(()=>setShowVideo(false))// reveal fallback on block\n;};if(video.readyState>=3)startPlayback();else video.addEventListener(\"canplaythrough\",startPlayback,{once:true});return()=>video.removeEventListener(\"canplaythrough\",startPlayback);},[videoSrc,disableOnMobile]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[fallbackSrc&&/*#__PURE__*/_jsx(\"img\",{src:fallbackSrc,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"right center\",zIndex:0}}),showVideo&&/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoSrc,muted:true,loop:true,autoPlay:true,playsInline:true,preload:\"auto\",poster:fallbackSrc,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"right center\",zIndex:1}})]});}addPropertyControls(HeroVideo,{videoSrc:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"mov\"],title:\"Video\"},fallbackSrc:{type:ControlType.Image,title:\"Fallback Image\"},disableOnMobile:{type:ControlType.Boolean,title:\"Disable Video on Mobile\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hero_Video_Loop.map"],"mappings":"2WACqa,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAliB,IAAyG,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAkB,eA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