{"version":3,"file":"t14IX97Py.CMA5YY5l.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","_e","p","ce","de","init_framer_BisrWwwE","fontStore","addPropertyControls","ControlType","RenderTarget","MediaVideo","props","src","video","posterSrc","poster","ref","vref","ready","setReady","hovering","setHovering","reduce","setReduce","isCanvas","mode","v","io","e","host","hoverLayer","enter","leave","showVideo","media","fit","position","radius","fade","init_MediaVideo","init_jsx_runtime","fonts","css","className","init_t14IX97Py"],"sources":["https:/framerusercontent.com/modules/jX0CFdU3NXgrY8rOVOFd/TaIu9uxVNy6SYHHWnWcz/MediaVideo.js","https:/framerusercontent.com/modules/mHrvwypxzTh7dgJEiIa6/UxpLkSdq6z317lGQyAs7/t14IX97Py.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Poise media video.\n * - Autoplay mode: muted, looping background video that only plays while on screen.\n * - Hover mode: shows the poster; when the pointer enters the nearest ancestor layer\n *   named by \"Hover layer\", the video fades in and plays from the start.\n * - Poster stays underneath, so nothing flashes while the video loads.\n * - Reduced motion and the canvas show the poster only.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function MediaVideo(props){const{video,poster,mode,hoverLayer,fit,position,fade,radius}=props;const src=typeof video===\"string\"?video:video?.src||\"\";const posterSrc=typeof poster===\"string\"?poster:poster?.src||\"\";const ref=useRef(null);const vref=useRef(null);const[ready,setReady]=useState(false);const[hovering,setHovering]=useState(false);const[reduce,setReduce]=useState(false);const isCanvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(typeof window===\"undefined\")return;setReduce(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches);},[]);// play only while visible (autoplay mode)\nuseEffect(()=>{if(isCanvas||mode!==\"autoplay\"||!ref.current)return;const v=vref.current;const io=new IntersectionObserver(([e])=>{if(!v)return;if(e.isIntersecting)v.play().catch(()=>{});else v.pause();},{rootMargin:\"200px\"});io.observe(ref.current);return()=>io.disconnect();},[mode,src,isCanvas]);// hover mode\nuseEffect(()=>{if(isCanvas||mode!==\"hover\"||!ref.current)return;if(window.matchMedia(\"(hover: none)\").matches)return;const host=hoverLayer&&ref.current.closest(`[data-framer-name=\"${hoverLayer}\"]`)||ref.current;const enter=()=>{setHovering(true);const v=vref.current;if(v){try{v.currentTime=0;}catch(e){}v.play().catch(()=>{});}};const leave=()=>{setHovering(false);setTimeout(()=>vref.current?.pause(),400);};host.addEventListener(\"pointerenter\",enter);host.addEventListener(\"pointerleave\",leave);return()=>{host.removeEventListener(\"pointerenter\",enter);host.removeEventListener(\"pointerleave\",leave);};},[mode,hoverLayer,isCanvas]);const showVideo=!isCanvas&&!reduce&&!!src&&(mode===\"autoplay\"?ready:ready&&hovering);const media={position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:fit,objectPosition:position,display:\"block\"};return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius},children:[posterSrc&&/*#__PURE__*/_jsx(\"img\",{src:posterSrc,alt:\"\",\"aria-hidden\":\"true\",style:media}),!isCanvas&&!reduce&&src&&/*#__PURE__*/_jsx(\"video\",{ref:vref,src:src,poster:posterSrc||undefined,muted:true,loop:true,playsInline:true,autoPlay:mode===\"autoplay\",preload:mode===\"autoplay\"?\"auto\":\"metadata\",onLoadedData:()=>setReady(true),onCanPlay:()=>setReady(true),\"aria-hidden\":\"true\",style:{...media,opacity:showVideo?1:0,transition:`opacity ${fade}ms cubic-bezier(0.23, 1, 0.32, 1)`,pointerEvents:\"none\"}})]});}MediaVideo.defaultProps={video:\"\",poster:\"\",mode:\"autoplay\",hoverLayer:\"\",fit:\"cover\",position:\"50% 50%\",fade:500,radius:0};addPropertyControls(MediaVideo,{video:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},poster:{type:ControlType.Image,title:\"Poster\"},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"autoplay\",\"hover\"],optionTitles:[\"Autoplay\",\"On hover\"],displaySegmentedControl:true},hoverLayer:{type:ControlType.String,title:\"Hover layer\",hidden:p=>p.mode!==\"hover\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"]},position:{type:ControlType.String,title:\"Position\"},fade:{type:ControlType.Number,title:\"Fade ms\",min:0,max:2e3,step:50},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:80}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MediaVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MediaVideo.map","// Generated by Framer (c142a8f)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Libre Caslon Condensed-regular\",\"GF;Libre Caslon Condensed-700\",\"GF;Libre Caslon Condensed-700italic\",\"GF;Libre Caslon Condensed-italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Libre Caslon Condensed\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Libre Caslon Condensed\",url:\"https://fonts.gstatic.com/s/librecasloncondensed/v3/flUURrasxYEyVwtcWIsbLunUPow3bHNaxvyEdaQClLYatgOE7C0S4yutisx0OV3e.woff2\",weight:\"400\"},{cssFamilyName:\"Libre Caslon Condensed\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Libre Caslon Condensed\",url:\"https://fonts.gstatic.com/s/librecasloncondensed/v3/flUURrasxYEyVwtcWIsbLunUPow3bHNaxvyEdaQClLYatgOE7C315Cutisx0OV3e.woff2\",weight:\"700\"},{cssFamilyName:\"Libre Caslon Condensed\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Libre Caslon Condensed\",url:\"https://fonts.gstatic.com/s/librecasloncondensed/v3/flUWRrasxYEyVwtcWIsbLunUPow3bHNaxvyEX60wa25z3Zkq6zjaoCTsgM1WPE3e70g.woff2\",weight:\"700\"},{cssFamilyName:\"Libre Caslon Condensed\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Libre Caslon Condensed\",url:\"https://fonts.gstatic.com/s/librecasloncondensed/v3/flUWRrasxYEyVwtcWIsbLunUPow3bHNaxvyEX60wa25z3Zkq6zjaoMPrgM1WPE3e70g.woff2\",weight:\"400\"}]}];export const css=['.framer-igfMY .framer-styles-preset-1kemotq:not(.rich-text-wrapper), .framer-igfMY .framer-styles-preset-1kemotq.rich-text-wrapper h2 { --framer-font-family: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv09\\' on, \\'cv11\\' on; --framer-font-size: 72px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b4cf3b3e-801c-4526-a9ce-c81cd12e7403); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-igfMY .framer-styles-preset-1kemotq:not(.rich-text-wrapper), .framer-igfMY .framer-styles-preset-1kemotq.rich-text-wrapper h2 { --framer-font-family: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv09\\' on, \\'cv11\\' on; --framer-font-size: 56px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b4cf3b3e-801c-4526-a9ce-c81cd12e7403); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-igfMY .framer-styles-preset-1kemotq:not(.rich-text-wrapper), .framer-igfMY .framer-styles-preset-1kemotq.rich-text-wrapper h2 { --framer-font-family: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-bold-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-family-italic: \"Libre Caslon Condensed\", \"Libre Caslon Condensed Placeholder\", serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv09\\' on, \\'cv11\\' on; --framer-font-size: 44px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b4cf3b3e-801c-4526-a9ce-c81cd12e7403); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; } }'];export const className=\"framer-igfMY\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,kNAUG,SAAwBe,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,OAAK,aAAW,MAAI,WAAS,OAAK,UAAQC,EAAYC,EAAI,OAAOC,GAAQ,SAASA,EAAMA,GAAO,KAAK,GAASC,EAAU,OAAOC,GAAS,SAASA,EAAOA,GAAQ,KAAK,GAASC,EAAIrB,EAAO,IAAI,EAAQsB,EAAKtB,EAAO,IAAI,EAAO,CAACuB,EAAMC,GAAUvB,EAAS,EAAK,EAAO,CAACwB,EAASC,GAAazB,EAAS,EAAK,EAAO,CAAC0B,EAAOC,GAAW3B,EAAS,EAAK,EAAQ4B,EAASf,EAAa,QAAQ,IAAIA,EAAa,OAAON,MAAc,CAAWH,IAAS,QAAmBuB,EAAUvB,EAAO,WAAW,kCAAkC,CAAC,CAAC,OAAO,CAAE,EAAE,CAAC,CAAC,EAC9kBG,MAAc,CAAC,GAAGqB,GAAUC,IAAO,YAAY,CAACT,EAAI,QAAQ,OAAO,IAAMU,EAAET,EAAK,QAAcU,EAAG,IAAI,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