{"version":3,"file":"QuietParticles.BDoVy3In.mjs","names":["useRef","useState","React.useState","__toESM","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","p","_e","de","RenderTarget","addPropertyControls","useIsStaticRenderer","ControlType","init_framer_DKtAEkcX","DotLottie","OptimizationFriendly","LottiePlayer","props","isCanvas","lottieInstanceRef","shouldPlay","src","placeholderUrl","isReady","setIsReady","lastVariant","isLoading","setLoading","m","loading","loaded","init_DotLottie","QuietParticles","isStatic","count","size","init_QuietParticles"],"sources":["https:/framerusercontent.com/modules/jfK7C7JmdHGaVBsvt1V7/G0lF2a2mezep3QZSQZwm/DotLottie.js","https:/framerusercontent.com/modules/w40C8pzmnzAr44NyJAU5/9MmaWdl1IWCphcEhX8B9/QuietParticles.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,useState}from\"react\";const placeholderUrl=\"https://lottie.host/d826e0a7-b7e8-4072-8afe-c943ed2dd2ca/DpX3m5yT5Z.lottie\";/**\n * DOT LOTTIE\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */ export default function DotLottie(props){return /*#__PURE__*/ _jsx(OptimizationFriendly,{loading:/*#__PURE__*/ _jsx(\"div\",{}),loaded:/*#__PURE__*/ _jsx(LottiePlayer,{...props})});};function LottiePlayer(props){/* Checks */ const isCanvas=RenderTarget.current()===RenderTarget.canvas;const lottieInstanceRef=useRef(null);const shouldPlay=isCanvas||props.hover===true||props.autoplay===false?null:true;/* File or URL */ let src;switch(props.srcType){case\"url\":src=props.srcUrl;break;case\"file\":src=props.srcFile;break;default:src=placeholderUrl;break;}/* Progress */ const[isReady,setIsReady]=useState(false);/* For canvas states */ useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.addEventListener(\"ready\",()=>setIsReady(true));},[]);useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.seek(`${props.progress}%`);},[isReady,props.progress]);const lastVariant=useRef();/* For component variant support */ useEffect(()=>{if(isCanvas)return;if(lastVariant.current!==props.autoplay){if(!lottieInstanceRef.current)return;if(props.autoplay===true){lottieInstanceRef.current.play();}if(props.autoplay===false){lottieInstanceRef.current.pause();}}lastVariant.current=props.autoplay;},[props.autoplay]);return(// @ts-ignore\n/*#__PURE__*/ _jsx(\"dotlottie-player\",{src:src,ref:lottieInstanceRef,autoplay:shouldPlay,loop:props.loop?true:null,hover:props.hover?true:null,controls:props.controls?true:null,background:props.background?props.background:null,speed:props.speed,direction:props.direction,style:{...props.style,width:\"100%\",height:\"100%\"}},src));}DotLottie.defaultProps={srcUrl:placeholderUrl,autoplay:true,background:\"#05F\",controls:false,direction:1,hover:false,loop:true,speed:1};DotLottie.displayName=\"Dot Lottie\";addPropertyControls(DotLottie,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"url\",\"file\"],optionTitles:[\"URL\",\"File\"]},srcUrl:{type:ControlType.String,title:\"Link\",placeholder:\"../example.lottie\",hidden:props=>props.srcType===\"file\"},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"lottie\",\"json\"],hidden:props=>props.srcType===\"url\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:true},background:{type:ControlType.Color,title:\"Backdrop\",defaultValue:\"#05F\"},controls:{type:ControlType.Boolean,title:\"Controls\"},direction:{type:ControlType.Enum,title:\"Direction\",defaultValue:\"1\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"1\",\"-1\"],optionTitles:[\"Normal\",\"Reverse\"]},hover:{type:ControlType.Boolean,title:\"Hover Play\"},loop:{type:ControlType.Boolean,title:\"Loop\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:1,max:10,unit:\"x\",step:.5,displayStepper:true},progress:{type:ControlType.Number,title:\"Progress\",defaultValue:0,min:0,max:100,step:1,description:\"This component is made for Lottie files. [Learn more here](https://dotlottie.io/).\"}});/* For SSG */ function OptimizationFriendly({loading,loaded}){const[isLoading,setLoading]=React.useState(true);// We can't load web-components in ssg on the server,\n// so we defer rendering until we hit the client.\nReact.useEffect(()=>{import(\"https://unpkg.com/@dotlottie/player-component@1.3.2/dist/dotlottie-player.js\").then(()=>{setLoading(false);});},[]);return isLoading?loading:loaded;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DotLottie\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DotLottie.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 313\n * @framerIntrinsicHeight 170\n */export default function QuietParticles(props){const isStatic=useIsStaticRenderer();const count=Math.min(24,Math.max(0,Math.round(props.number??7)));const size=Math.max(1,Math.min(4,props.sizeOptions?.size??1));return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:props.background||\"transparent\",...props.style,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:\"@keyframes mpQuietParticleRise{0%{transform:translate3d(0,40px,0);opacity:0}20%{opacity:.7}75%{opacity:.4}100%{transform:translate3d(3px,-80px,0);opacity:0}}@media(prefers-reduced-motion:reduce){.mp-quiet-particle{animation:none!important}}\"}),Array.from({length:count},(_,i)=>/*#__PURE__*/_jsx(\"span\",{className:\"mp-quiet-particle\",style:{position:\"absolute\",left:`${9+i*37%84}%`,top:`${15+i*23%76}%`,width:size,height:size,borderRadius:\"50%\",background:props.color||\"rgb(112,112,112)\",opacity:.55,animation:isStatic||props.moveOptions?.moveEnabled===false?\"none\":`mpQuietParticleRise ${20+i*2}s linear infinite`,animationDelay:`-${i*3.7}s`}},i))]});}QuietParticles.defaultProps={number:7,color:\"rgb(112,112,112)\",background:\"transparent\",sizeOptions:{size:1},moveOptions:{moveEnabled:true}};addPropertyControls(QuietParticles,{number:{type:ControlType.Number,title:\"Dots\",defaultValue:7,min:0,max:24,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"rgb(112,112,112)\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},sizeOptions:{type:ControlType.Object,title:\"Size\",controls:{size:{type:ControlType.Number,title:\"Size\",defaultValue:1,min:1,max:4}}},moveOptions:{type:ControlType.Object,title:\"Motion\",controls:{moveEnabled:{type:ControlType.Boolean,title:\"Animate\",defaultValue:true}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"QuietParticles\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"170\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"313\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QuietParticles.map"],"mappings":"A,uNASI,SAAwBiB,EAAU,EAAM,CAAC,MAAqB,gBAAKC,EAAqB,CAAC,QAAsB,gBAAK,MAAM,CAAC,CAAC,EAAE,OAAqB,gBAAKC,EAAa,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,SAASD,EAAa,EAAM,CAAc,IAAME,EAAST,EAAa,QAAQ,IAAIA,EAAa,OAAaU,EAAkBtB,EAAO,IAAI,EAAQuB,EAAWF,GAAUD,EAAM,QAAQ,IAAMA,EAAM,WA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