{"version":3,"file":"Loading.Dc52A3Ml.mjs","names":["_Fragment","useRef","React.useCallback"],"sources":["https:/framerusercontent.com/modules/09Zrb2CLHFXSt8imyl6H/M7cfWyB9yrq91bBlRpUh/Cms_img.js","https:/framerusercontent.com/modules/oehTgSN0MBFjwRIHkF0v/wJRxZFPHUYhqpKnWfeVp/StructuredData_learn.js","https:/framerusercontent.com/modules/O2HTzZwoE7KPL6rfrTIp/ghhpGdmk8BjwSGf2ziVr/Loading.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";const generateClassName=()=>`unique-class-${Math.random().toString(36).substr(2,9)}`;export function withAlignCenter(Component){return props=>{const className=props.className||generateClassName();return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n          /* --------- Images: center @80% + rounded --------- */\n          .${className} img {\n            display: block !important;\n            margin: 40px auto 40px auto !important;\n            width: 80% !important;\n            border-radius: 10px !important;\n          }\n\n          /* --------- Video (Framer): center @80% + rounded --------- */\n          .${className} video.framer-image {\n            display: block !important;\n            margin: 40px auto 20px auto !important;\n            width: 80% !important;\n            border-radius: 10px !important;\n            height: auto !important;\n          }\n\n          /* --------- Iframe (YouTube): center + aspect ratio + rounded --------- */\n          .${className} iframe {\n            display: block !important;\n            margin: 0 auto !important;\n            width: 100% !important;\n            aspect-ratio: 16 / 9 !important;\n            border-radius: 10px !important;\n            height: auto !important;\n            border: none !important;\n          }\n\n          /* --------- Center Framer CMS article blocks --------- */\n          .${className} article {\n            margin: 40px auto !important;\n            width: 80% !important;\n            border-radius: 10px !important;\n            overflow: hidden !important;\n          }\n\n        `}),/*#__PURE__*/_jsx(Component,{...props,className:className})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAlignCenter\":{\"type\":\"reactHoc\",\"name\":\"withAlignCenter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cms_img.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function StructuredData_learn({Title,Description,Question,VideoURL,ImageURL,Uploaded}){React.useEffect(()=>{// Convert upload date to ISO format\nconst uploadDate=Uploaded?new Date(Uploaded).toISOString():\"\";const jsonLd={\"@context\":\"https://schema.org\",\"@type\":[\"VideoObject\",\"LearningResource\"],name:Title,description:Description,text:Question,learningResourceType:\"How-to\",educationalLevel:\"Beginner\",contentUrl:VideoURL||\"\",thumbnailUrl:ImageURL,uploadDate:uploadDate,mainEntityOfPage:\"https://elevate.io/\",about:{\"@type\":\"WebApplication\",name:\"elevate.io\",description:\"The online video editor that runs in your browser, no installation required. With real-time collaboration and powerful AI tools to create faster than ever before.\",url:\"https://editor.elevate.io/\",sameAs:\"https://elevate.io/\",browserRequirements:\"Desktop browsers only\",operatingSystem:[\"Windows\",\"MacOS\",\"ChromeOS\",\"Linux\"],applicationCategory:\"DesignApplication\",applicationSubCategory:\"Video Editor\",featureList:\"https://elevate.io/features\",offers:{\"@type\":\"Offer\",price:0,url:\"https://editor.elevate.io/registration/\",eligibleRegion:{\"@type\":\"Place\",name:\"Worldwide\"}}}};// Inject JSON-LD into <head>\nconst script=document.createElement(\"script\");script.type=\"application/ld+json\";script.text=JSON.stringify(jsonLd,null,2);document.head.appendChild(script);// Cleanup when unmounted\nreturn()=>document.head.removeChild(script);},[Title,Description,Question,VideoURL,ImageURL,Uploaded]);// Invisible element so it can be placed anywhere\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0}});}// Property controls for Framer UI or CMS bindings\naddPropertyControls(StructuredData_learn,{Title:{type:ControlType.String,title:\"Title\"},Description:{type:ControlType.String,title:\"Description\"},Question:{type:ControlType.String,title:\"Question\"},VideoURL:{type:ControlType.String,title:\"Video URL\"},ImageURL:{type:ControlType.String,title:\"Thumbnail URL\"},Uploaded:{type:ControlType.Date,title:\"Upload Date\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData_learn\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData_learn.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType,useAnimation,motion}from\"framer\";import{defaultEvents,useOnEnter,useOnExit}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";const Indicators={DotWave:\"Dots\",Material:\"Material\",IOS:\"iOS\"};const arc=(x,y,radius,startAngle,endAngle)=>{const angleInRadians=angleInDegrees=>(angleInDegrees-90)*(Math.PI/180);const polarToCartesian=(centerX,centerY,radius,angleInDegrees)=>{const a=angleInRadians(angleInDegrees);return{x:centerX+radius*Math.cos(a),y:centerY+radius*Math.sin(a)};};const fullCircle=endAngle-startAngle===360;const start=polarToCartesian(x,y,radius,endAngle-.01);const end=polarToCartesian(x,y,radius,startAngle);const arcFlag=endAngle-startAngle<=180?\"0\":\"1\";let d=[\"M\",start.x,start.y,\"A\",radius,radius,0,arcFlag,0,end.x,end.y].join(\" \");if(fullCircle)d+=\"z\";return d;};function Spinner({color}){return /*#__PURE__*/_jsx(motion.div,{style:{height:\"85%\",width:\"85%\",position:\"relative\"},animate:{rotate:360},transition:{repeat:Infinity,ease:\"linear\",duration:.5},children:/*#__PURE__*/_jsx(motion.svg,{style:{height:\"100%\",width:\"100%\",position:\"absolute\"},viewBox:\"0 0 100 100\",children:/*#__PURE__*/_jsx(\"g\",{transform:\"translate(0 0)\",children:/*#__PURE__*/_jsx(\"path\",{d:arc(50,50,45,0,360),fill:\"none\",stroke:color,strokeWidth:10,strokeLinecap:\"round\"})})})});}function DotWave({color,animation}){const circles=[0,1,2];return /*#__PURE__*/_jsx(motion.svg,{style:{height:\"85%\",width:\"85%\"},viewBox:\"0 0 30 30\",animate:\"show\",variants:{show:{transition:{delayChildren:.1,staggerChildren:.12}}},children:circles.map(circle=>/*#__PURE__*/_jsx(motion.circle,{cx:circle*10+5,cy:15,r:3,style:{fill:color},variants:{hidden:{y:0},show:{y:[0,-10,0]}},transition:{...animation,repeat:Infinity,ease:\"easeInOut\",duration:1.45}},circle))});}function Material({color,animation}){return /*#__PURE__*/_jsx(motion.svg,{style:{height:\"85%\",width:\"85%\",overflow:\"visible\"},animate:{rotate:360},transition:{ease:\"linear\",repeat:Infinity,duration:2},viewBox:\"25 25 50 50\",children:/*#__PURE__*/_jsx(motion.circle,{cx:\"50\",cy:\"50\",r:\"20\",fill:\"none\",stroke:color,strokeWidth:2,strokeLinecap:\"round\",strokeMiterlimit:\"10\",animate:{strokeDasharray:[\"1, 200\",\"89, 200\",\"89, 200\"],strokeDashoffset:[0,-35,-124]},transition:{...animation,repeat:Infinity,ease:\"easeInOut\"}})});}function IOS({color,animation}){const particles=12;const rotateArray=(arr,n)=>arr.slice(n).concat(arr.slice(0,n));const base=[...Array(particles)].map((_,i)=>.9/particles*i+.1).reverse();const opacities=base.map((_,i)=>rotateArray(base,i));return /*#__PURE__*/_jsx(motion.svg,{viewBox:\"-15 -15 30 30\",style:{width:\"100%\",height:\"100%\"},children:opacities.map((keyframes,i)=>/*#__PURE__*/_jsx(motion.g,{initial:{opacity:keyframes[0]},animate:{opacity:keyframes},transition:{...animation,repeat:Infinity,repeatDelay:5e-4,ease:\"linear\"},children:/*#__PURE__*/_jsx(\"rect\",{x:5,y:-1,rx:1,width:7,height:2,fill:color,style:{transform:`rotate(${(particles-i)/particles*360-90}deg)`}})},i))});}function getIndicator(indicator,props){switch(indicator){case Indicators.DotWave:return /*#__PURE__*/_jsx(DotWave,{...props});case Indicators.Material:return /*#__PURE__*/_jsx(Material,{...props});case Indicators.IOS:return /*#__PURE__*/_jsx(IOS,{...props});default:return /*#__PURE__*/_jsx(DotWave,{...props});}}export function Loading(props){const{duration,onTimeout,fadeOut,hasDuration,indicator,onClick,onMouseDown,onMouseUp,onMouseEnter,onMouseLeave,style}=props;const controls=useAnimation();const animDuration=fadeOut?Math.min(duration,.35):0;const animDelay=fadeOut?duration-animDuration:duration;const currentIndicator=getIndicator(indicator,props);const handlers=useRef([]);const onFadeOut=React.useCallback(()=>{if(hasDuration)controls.start({opacity:0,transition:{duration:animDuration,ease:\"easeIn\"}});},[hasDuration,animDuration]);const resetOpacity=async()=>controls.set({opacity:1});useOnEnter(()=>{resetOpacity();if(hasDuration){const timeout=setTimeout(onTimeout,duration*1e3);const fadeout=setTimeout(onFadeOut,animDelay*1e3);handlers.current=[()=>clearTimeout(timeout),()=>clearTimeout(fadeout)];}});useOnExit(()=>handlers.current.forEach(fn=>fn()));useEffect(()=>()=>handlers.current.forEach(fn=>fn()),[]);return /*#__PURE__*/_jsx(motion.div,{onClick,onMouseDown,onMouseUp,onMouseEnter,onMouseLeave,animate:controls,style:{position:\"relative\",overflow:\"visible\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",...style},children:currentIndicator});}Loading.defaultProps={height:40,width:40,duration:2,color:\"#888\",animation:{type:\"tween\",ease:\"linear\",duration:1.3},hasDuration:false};addPropertyControls(Loading,{indicator:{title:\"Indicator\",type:ControlType.Enum,options:Object.values(Indicators)},color:{type:ControlType.Color,defaultValue:\"#888\"},hasDuration:{title:\"Duration\",type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Timeout\",disabledTitle:\"Infinity\"},duration:{title:\"Time\",hidden:({hasDuration})=>!hasDuration,min:.1,max:10,defaultValue:2,type:ControlType.Number,step:.1},animation:{type:ControlType.Transition},fadeOut:{title:\"Fade Out\",hidden:({hasDuration})=>!hasDuration,type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},onTimeout:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"Loading\":{\"type\":\"reactComponent\",\"name\":\"Loading\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//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