{"version":3,"file":"SoundVideo.zCphiy_n.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useRef","useState"],"sources":["https:/framerusercontent.com/modules/uOFBnkNfADM8hrcaX1AM/njJOtn57NSVantnoUxyH/vMALjyRNh.js","https:/framerusercontent.com/modules/P6ePoR8lDpHz79pCR48H/Oj1aNiyWOmDnb9XZKlIB/SoundVideo.js"],"sourcesContent":["// Generated by Framer (9801af1)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/rnSdSfmg96tZT0wkJczq/Eru27sNoJWbbyl7EIj3d/h9IsrTTPJ.js\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={bBdfx0taH:{hover:true,pressed:true}};const cycleOrder=[\"bBdfx0taH\",\"o4Hlgn8uv\",\"nNUt4NQL_\",\"WyCS0xXHO\",\"XzDnZ_lkq\"];const serializationHash=\"framer-kkjvg\";const variantClassNames={bBdfx0taH:\"framer-v-p10d14\",nNUt4NQL_:\"framer-v-12oa1v5\",o4Hlgn8uv:\"framer-v-18pn7o4\",WyCS0xXHO:\"framer-v-nekh5t\",XzDnZ_lkq:\"framer-v-11x1adj\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-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 humanReadableVariantMap={Default:\"bBdfx0taH\",Disabled:\"nNUt4NQL_\",Error:\"XzDnZ_lkq\",Loading:\"o4Hlgn8uv\",Success:\"WyCS0xXHO\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"bBdfx0taH\"};};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({cycleOrder,defaultVariant:\"bBdfx0taH\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"o4Hlgn8uv\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"o4Hlgn8uv\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-p10d14\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"bBdfx0taH\",ref:refBinding,style:{backgroundColor:\"var(--token-1ee62bd9-4a7a-422e-896d-fe2211dd84b6, rgb(0, 0, 0))\",borderBottomLeftRadius:1e3,borderBottomRightRadius:1e3,borderTopLeftRadius:1e3,borderTopRightRadius:1e3,opacity:1,...style},variants:{\"bBdfx0taH-hover\":{opacity:.8},\"bBdfx0taH-pressed\":{backgroundColor:\"rgb(51, 51, 51)\",opacity:1},nNUt4NQL_:{opacity:.9},WyCS0xXHO:{opacity:1},XzDnZ_lkq:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1}},...addPropertyOverrides({\"bBdfx0taH-hover\":{\"data-framer-name\":undefined},\"bBdfx0taH-pressed\":{\"data-framer-name\":undefined},nNUt4NQL_:{\"data-framer-name\":\"Disabled\"},o4Hlgn8uv:{\"data-framer-name\":\"Loading\"},WyCS0xXHO:{\"data-framer-name\":\"Success\"},XzDnZ_lkq:{\"data-framer-name\":\"Error\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1ik28me\",\"data-styles-preset\":\"h9IsrTTPJ\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-b2d29157-9637-407c-9baa-e35860696e99, rgb(255, 255, 255)))\"},children:\"Send your enquiry\"})}),className:\"framer-18c3oe2\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"iyoR6692v\",style:{\"--extracted-r6o4lv\":\"var(--token-b2d29157-9637-407c-9baa-e35860696e99, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{WyCS0xXHO:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},XzDnZ_lkq:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({WyCS0xXHO:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Thank you\"})}),fonts:[\"Inter-SemiBold\"]},XzDnZ_lkq:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),fonts:[\"Inter-SemiBold\"]}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1il3jep\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"ufbk9I8_j\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-83zake\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"iEVuyShVt\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{o4Hlgn8uv:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1fq2p61\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"rTXepyYXC\",style:{backgroundColor:\"var(--token-b2d29157-9637-407c-9baa-e35860696e99, rgb(255, 255, 255))\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\".framer-kkjvg.framer-3ohtwt, .framer-kkjvg .framer-3ohtwt { display: block; }\",\".framer-kkjvg.framer-p10d14 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 48px; justify-content: center; overflow: visible; padding: 0px 24px 0px 24px; position: relative; width: min-content; }\",\".framer-kkjvg .framer-18c3oe2 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-kkjvg .framer-1il3jep { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: auto; overflow: hidden; position: relative; width: 20px; }\",\".framer-kkjvg .framer-83zake { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-kkjvg .framer-1fq2p61 { aspect-ratio: 1 / 1; flex: none; height: auto; left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-kkjvg.framer-v-18pn7o4.framer-p10d14, .framer-kkjvg.framer-v-12oa1v5.framer-p10d14, .framer-kkjvg.framer-v-nekh5t.framer-p10d14, .framer-kkjvg.framer-v-11x1adj.framer-p10d14 { cursor: unset; }\",\".framer-kkjvg.framer-v-18pn7o4 .framer-83zake { overflow: hidden; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 48\n * @framerIntrinsicWidth 180\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"fixed\"]},\"o4Hlgn8uv\":{\"layout\":[\"auto\",\"fixed\"]},\"nNUt4NQL_\":{\"layout\":[\"auto\",\"fixed\"]},\"WyCS0xXHO\":{\"layout\":[\"auto\",\"fixed\"]},\"XzDnZ_lkq\":{\"layout\":[\"auto\",\"fixed\"]},\"VRHmlO62K\":{\"layout\":[\"auto\",\"fixed\"]},\"tJU6gKwNJ\":{\"layout\":[\"auto\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramervMALjyRNh=withCSS(Component,css,\"framer-kkjvg\");export default FramervMALjyRNh;FramervMALjyRNh.displayName=\"Form Button\";FramervMALjyRNh.defaultProps={height:48,width:180};addPropertyControls(FramervMALjyRNh,{variant:{options:[\"bBdfx0taH\",\"o4Hlgn8uv\",\"nNUt4NQL_\",\"WyCS0xXHO\",\"XzDnZ_lkq\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramervMALjyRNh,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramervMALjyRNh\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"o4Hlgn8uv\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"nNUt4NQL_\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"WyCS0xXHO\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"XzDnZ_lkq\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"VRHmlO62K\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"tJU6gKwNJ\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"48\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"180\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useEffect,useRef,useState,startTransition}from\"react\";const DEFAULT_VIDEO=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";/**\n * Sound Video\n *\n * Loops silently as a preview. \"Play with sound\" restarts it from the top with audio;\n * when it finishes it drops back to the silent loop.\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 315\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SoundVideo(props){const{video=DEFAULT_VIDEO,poster,radius=22,playLabel=\"Play with sound\",pillFont}=props;const isStatic=useIsStaticRenderer();const videoRef=useRef(null);const[mode,setMode]=useState(\"preview\");const[reducedMotion,setReducedMotion]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");startTransition(()=>setReducedMotion(mq.matches));},[]);// Only run the silent preview while the video is on screen\nuseEffect(()=>{const el=videoRef.current;if(isStatic||!el||typeof IntersectionObserver===\"undefined\")return;const io=new IntersectionObserver(([entry])=>{if(mode!==\"preview\"||reducedMotion)return;if(entry.isIntersecting)el.play().catch(()=>{});else el.pause();});io.observe(el);return()=>io.disconnect();},[isStatic,mode,reducedMotion]);function playWithSound(){const el=videoRef.current;if(!el)return;el.currentTime=0;el.muted=false;el.loop=false;el.play().catch(()=>{});startTransition(()=>setMode(\"playing\"));}function togglePause(){const el=videoRef.current;if(!el)return;if(el.paused){el.play().catch(()=>{});startTransition(()=>setMode(\"playing\"));}else{el.pause();startTransition(()=>setMode(\"paused\"));}}function backToPreview(){const el=videoRef.current;if(!el)return;el.muted=true;el.loop=true;el.currentTime=0;if(!reducedMotion)el.play().catch(()=>{});startTransition(()=>setMode(\"preview\"));}const pill={all:\"unset\",boxSizing:\"border-box\",position:\"absolute\",left:20,bottom:20,display:\"flex\",alignItems:\"center\",gap:6,padding:\"7px 15px 7px 10px\",borderRadius:1e3,background:\"rgba(23, 23, 23, 0.45)\",backdropFilter:\"blur(12px)\",WebkitBackdropFilter:\"blur(12px)\",color:\"#FFFFFF\",cursor:\"pointer\",fontSize:13,lineHeight:\"1.2em\",...pillFont};const icon=path=>/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:path})});return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",background:\"#171717\",transform:\"translateZ(0)\"},children:[/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:video,poster:poster?.src,muted:true,loop:true,playsInline:true,autoPlay:!isStatic,preload:\"metadata\",onEnded:backToPreview,onClick:mode===\"preview\"?playWithSound:togglePause,\"aria-label\":poster?.alt||\"Video\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:\"cover\",cursor:\"pointer\"}}),mode===\"preview\"?/*#__PURE__*/_jsxs(\"button\",{type:\"button\",style:pill,onClick:playWithSound,children:[icon(\"M8 5.14v13.72a1 1 0 0 0 1.5.86l11.04-6.86a1 1 0 0 0 0-1.72L9.5 4.28A1 1 0 0 0 8 5.14z\"),playLabel]}):/*#__PURE__*/_jsxs(\"button\",{type:\"button\",style:pill,onClick:togglePause,children:[mode===\"playing\"?icon(\"M7 4h3.5v16H7zM13.5 4H17v16h-3.5z\"):icon(\"M8 5.14v13.72a1 1 0 0 0 1.5.86l11.04-6.86a1 1 0 0 0 0-1.72L9.5 4.28A1 1 0 0 0 8 5.14z\"),mode===\"playing\"?\"Pause\":\"Play\"]})]});}addPropertyControls(SoundVideo,{video:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},poster:{type:ControlType.ResponsiveImage,title:\"Poster\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:22,min:0,max:64,unit:\"px\"},playLabel:{type:ControlType.String,title:\"Button\",defaultValue:\"Play with sound\"},pillFont:{type:ControlType.Font,title:\"Button font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Medium\",lineHeight:\"1.2em\",letterSpacing:\"0em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SoundVideo\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"315\",\"framerIntrinsicWidth\":\"560\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SoundVideo.map"],"mappings":"gcACi1B,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,gDAA/8B,IAAmK,IAAkE,IAA4B,IAAmJ,EAAO,EAAgB,EAAO,EAAO,GAAG,EAAQ,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,EAAI,CAAC,EAAQ,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,EAA+L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,OAAO,EAAQ,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,OAAO,EAAQ,EAAU,CAAC,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,EAAQ,GAAoB,EAAE,IAAI,oBAAoB,IAAU,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAA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