{"version":3,"file":"AudioWave.DUm691MA.mjs","names":["useRef","useState","useCallback","useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/dPG8BYNU6cOs0uZyDNiy/97nJSFW3dYjSwDUyaUXT/AudioWave.js"],"sourcesContent":["// AudioWave — Framer Marketplace Component\n// Ambient audio player with SVG wave / bars animation\n// Supports both audio files and YouTube playlists with random playback\n// Tap to toggle · Persists across Framer page navigation · Pauses on tab/app hide\n//\n// USAGE NOTES:\n//   • Audio File: MP3, 128 kbps or lower recommended\n//   • YouTube Playlist: Paste full playlist URL (e.g., https://www.youtube.com/playlist?list=...)\n//   • Autoplay is blocked by browsers until the user has interacted with the page.\n//   • YouTube playlists will play in random order automatically.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// ─── Safe unique-ID hook ──────────────────────────────────────────────────────\n// useId is React 18+; fall back to a stable counter for React 17 environments.\n// Counter is seeded from a random base to survive HMR reloads in dev without\n// producing confusing sequential IDs in the Framer canvas.\nlet _idCounter=Math.floor(Math.random()*1e4);function useSafeId(){const ref=useRef(null);if(ref.current===null){ref.current=`aw-${++_idCounter}`;}return ref.current;}const _audioMap=new Map;function acquireAudio(url){if(typeof window===\"undefined\")return null;let entry=_audioMap.get(url);if(!entry){const audio=new Audio;audio.loop=true;audio.preload=\"auto\";audio.src=url;entry={audio,mounts:0,wasPlaying:false,resumeImmediate:false,globalPhase:0,releaseTimer:null};_audioMap.set(url,entry);}// Cancel any pending debounced pause\nif(entry.releaseTimer!==null){window.clearTimeout(entry.releaseTimer);entry.releaseTimer=null;}entry.mounts++;// Resume playback across remounts\nif(entry.wasPlaying&&entry.audio.paused){entry.audio.play().catch(()=>{});entry.wasPlaying=false;entry.resumeImmediate=true;}return entry;}function releaseAudio(url){const entry=_audioMap.get(url);if(!entry)return;entry.mounts=Math.max(0,entry.mounts-1);if(entry.mounts===0){entry.wasPlaying=!entry.audio.paused;if(typeof window!==\"undefined\"){if(entry.releaseTimer!==null)window.clearTimeout(entry.releaseTimer);// Debounced pause — avoids micro-pauses during Framer page transitions\nentry.releaseTimer=window.setTimeout(()=>{entry.releaseTimer=null;if(entry.mounts===0)entry.audio.pause();},250);}else{entry.audio.pause();}}}// ─── YouTube helpers ──────────────────────────────────────────────────────────\nfunction extractPlaylistId(url){if(!url)return null;const match=url.match(/[?&]list=([^&]+)/);return match?match[1]:null;}// Global flag to track if YouTube API is loaded\nlet _ytApiLoaded=false;let _ytApiCallbacks=[];function loadYouTubeAPI(){if(typeof window===\"undefined\")return Promise.resolve();if(_ytApiLoaded&&window.YT?.Player){return Promise.resolve();}return new Promise(resolve=>{if(window.YT?.Player){_ytApiLoaded=true;resolve();return;}_ytApiCallbacks.push(resolve);if(_ytApiCallbacks.length===1){window.onYouTubeIframeAPIReady=()=>{_ytApiLoaded=true;_ytApiCallbacks.forEach(cb=>cb());_ytApiCallbacks=[];};const tag=document.createElement(\"script\");tag.src=\"https://www.youtube.com/iframe_api\";const firstScriptTag=document.getElementsByTagName(\"script\")[0];firstScriptTag.parentNode?.insertBefore(tag,firstScriptTag);}});}// ─── useRaf ───────────────────────────────────────────────────────────────────\n// RAF loop that runs while `active` is true. Callback always reads the latest\n// closure values via a ref — no need to restart the loop on prop changes.\nfunction useRaf(active,cb){const cbRef=useRef(cb);cbRef.current=cb;const rafRef=useRef(null);const lastRef=useRef(null);useEffect(()=>{if(!active){if(rafRef.current!==null)cancelAnimationFrame(rafRef.current);rafRef.current=null;lastRef.current=null;return;}const tick=t=>{const dt=lastRef.current===null?0:(t-lastRef.current)/1e3;lastRef.current=t;cbRef.current(dt);rafRef.current=requestAnimationFrame(tick);};rafRef.current=requestAnimationFrame(tick);return()=>{if(rafRef.current!==null)cancelAnimationFrame(rafRef.current);rafRef.current=null;lastRef.current=null;};},[active]);}// ─── Helpers ──────────────────────────────────────────────────────────────────\nconst easeInOutCubic=x=>x<.5?4*x*x*x:1-Math.pow(-2*x+2,3)/2;const env=x=>Math.sin(x*Math.PI);// ─── charClipStyle — module-level constant ────────────────────────────────────\n// Defined once at module scope so it is never re-created inside a .map() call\n// on every animation frame.\nconst CHAR_CLIP_STYLE={display:\"inline-block\",overflow:\"hidden\",paddingTop:\"0.35em\",paddingBottom:\"0.35em\",marginTop:\"-0.35em\",marginBottom:\"-0.35em\",verticalAlign:\"middle\"};function charInnerStyle(active,fromBelow,i,speed){const dur=Math.max(.1,speed)*.75;const delay=i*.028;return{display:\"inline-block\",transform:active?\"translateY(0%)\":`translateY(${fromBelow?\"110%\":\"-110%\"})`,opacity:active?1:0,transition:[`transform ${dur}s cubic-bezier(0.22,1,0.36,1) ${delay}s`,`opacity ${dur*.55}s ease ${delay}s`].join(\", \"),willChange:\"transform, opacity\"};}// ─── Safe font prop subset ────────────────────────────────────────────────────\n// Framer's font object can contain non-CSS props that trigger console warnings\n// when spread directly onto a DOM element. Extract only valid CSS properties.\nfunction safeFontStyle(font){if(!font||typeof font!==\"object\")return{};const{fontSize,fontFamily,fontWeight,fontStyle,letterSpacing,lineHeight,textTransform,textDecoration}=font;return Object.fromEntries(Object.entries({fontSize,fontFamily,fontWeight,fontStyle,letterSpacing,lineHeight,textTransform,textDecoration}).filter(([,v])=>v!==undefined));}// ─── Focus ring style ─────────────────────────────────────────────────────────\n// Injected once as a module-level constant — never re-evaluated during RAF.\n// Each instance uses its own unique class (from useSafeId) to avoid conflicts.\nconst FOCUS_STYLE_BASE=`\n    :focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.2); border-radius: 6px; }\n    :focus:not(:focus-visible) { outline: none; box-shadow: none; }\n`;function buildFocusStyle(cls){return FOCUS_STYLE_BASE.replace(/:focus-visible/g,`.${cls}:focus-visible`).replace(/:focus:not\\(:focus-visible\\)/g,`.${cls}:focus:not(:focus-visible)`);}// ─── Component ────────────────────────────────────────────────────────────────\n/**\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 80\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AudioWave(props){const{audioUrl=\"\",youtubePlaylistUrl=\"\",useYouTube=false,volume=80,loop=true,animation=\"wave\",animationSpeed=1,intensity=1,barCount=26,color=\"#0099FF\",restingColor=\"#CCCCCC\",strokeWidth=3,endCap=\"round\",svgWidth=240,svgHeight=80,transitionSpeed=.8,restingLevel=.35,showLabel=true,labelOnText=\"Sound On\",labelOffText=\"Sound Off\",labelFont,labelOnColor=\"#000000\",labelOffColor=\"#888888\",labelPosition=\"right\",labelGap=12,style}=props;const isStatic=useIsStaticRenderer();// Unique class per instance — scopes the focus ring CSS\nconst focusClass=useSafeId();const strokeLinecap=endCap===\"round\"?\"round\":\"butt\";const w=Math.max(16,svgWidth);const h=Math.max(16,svgHeight);// Minimum 44×44px tap target — WCAG 2.5.5\nconst tapW=Math.max(w,44);const tapH=Math.max(h,44);// Allow full 0–1 range for restingLevel\nconst resting=Math.max(0,Math.min(1,restingLevel));// ── State ────────────────────────────────────────────────────────────────\nconst[isPlaying,setIsPlaying]=useState(false);const[playAmount,setPlayAmount]=useState(resting);const[phase,setPhase]=useState(0);const audioRef=useRef(null);const entryRef=useRef(null);const playAmountRef=useRef(resting);const phaseRef=useRef(0);const rafTransRef=useRef(null);const resumeWasPlayingRef=useRef(false);const desiredPlayingRef=useRef(false);const lastPointerWasTouchRef=useRef(false);const ytPlayerRef=useRef(null);const ytContainerRef=useRef(null);const ytCheckIntervalRef=useRef(null);// ── YouTube Player lifecycle ─────────────────────────────────────────────\nuseEffect(()=>{if(isStatic||!useYouTube||!youtubePlaylistUrl)return;const playlistId=extractPlaylistId(youtubePlaylistUrl);if(!playlistId)return;let mounted=true;loadYouTubeAPI().then(()=>{if(!mounted||!ytContainerRef.current)return;const YT=window.YT;if(!YT?.Player)return;// Create YouTube player\nconst player=new YT.Player(ytContainerRef.current,{height:\"0\",width:\"0\",playerVars:{listType:\"playlist\",list:playlistId,autoplay:0,controls:0,disablekb:1,fs:0,modestbranding:1,playsinline:1,rel:0,showinfo:0,iv_load_policy:3,loop:loop?1:0},events:{onReady:event=>{if(!mounted)return;ytPlayerRef.current=event.target;// Enable shuffle FIRST for random playback on every load\nevent.target.setShuffle(true);// Set volume\nevent.target.setVolume(Math.max(0,Math.min(100,volume)));// Set initial playing state\nsetIsPlaying(false);playAmountRef.current=resting;setPlayAmount(resting);},onStateChange:event=>{if(!mounted)return;const playing=event.data===YT.PlayerState.PLAYING;setIsPlaying(playing);// Ensure shuffle stays enabled\nif(event.target&&typeof event.target.setShuffle===\"function\"){event.target.setShuffle(true);}// Handle end of video - go to next in shuffled playlist\nif(event.data===YT.PlayerState.ENDED&&loop){event.target.nextVideo();}}}});});// Poll YouTube player state for smoother animation sync\nytCheckIntervalRef.current=window.setInterval(()=>{if(ytPlayerRef.current&&typeof ytPlayerRef.current.getPlayerState===\"function\"){const YT=window.YT;if(YT?.PlayerState){const state=ytPlayerRef.current.getPlayerState();const playing=state===YT.PlayerState.PLAYING;setIsPlaying(playing);}}},100);return()=>{mounted=false;if(ytCheckIntervalRef.current!==null){window.clearInterval(ytCheckIntervalRef.current);ytCheckIntervalRef.current=null;}if(ytPlayerRef.current&&typeof ytPlayerRef.current.destroy===\"function\"){ytPlayerRef.current.destroy();ytPlayerRef.current=null;}};},[youtubePlaylistUrl,useYouTube,isStatic,loop,volume,resting]);// ── Audio lifecycle ──────────────────────────────────────────────────────\nuseEffect(()=>{if(isStatic||useYouTube||!audioUrl)return;const entry=acquireAudio(audioUrl);if(!entry)return;entryRef.current=entry;const audio=entry.audio;audioRef.current=audio;// Sync loop prop\naudio.loop=loop;// Apply volume immediately\naudio.volume=Math.max(0,Math.min(1,volume/100));// Restore continuous phase from the entry\nphaseRef.current=entry.globalPhase;setPhase(entry.globalPhase);// Re-read resting from the current render so stale values never stick\nconst currentResting=Math.max(0,Math.min(1,restingLevel));const onPlay=()=>setIsPlaying(true);const onPause=()=>setIsPlaying(false);audio.addEventListener(\"play\",onPlay);audio.addEventListener(\"pause\",onPause);if(!audio.paused){setIsPlaying(true);playAmountRef.current=1;setPlayAmount(1);}else if(entry.resumeImmediate){entry.resumeImmediate=false;playAmountRef.current=1;setPlayAmount(1);}else{playAmountRef.current=currentResting;setPlayAmount(currentResting);}return()=>{audio.removeEventListener(\"play\",onPlay);audio.removeEventListener(\"pause\",onPause);// Persist phase before unmount\nif(entryRef.current){entryRef.current.globalPhase=phaseRef.current;}releaseAudio(audioUrl);};// restingLevel intentionally included so a prop change on remount is caught\n// eslint-disable-next-line react-hooks/exhaustive-deps\n},[audioUrl,isStatic,restingLevel]);// ── Volume ───────────────────────────────────────────────────────────────\nuseEffect(()=>{if(useYouTube){if(ytPlayerRef.current&&typeof ytPlayerRef.current.setVolume===\"function\"){ytPlayerRef.current.setVolume(Math.max(0,Math.min(100,volume)));}}else if(audioRef.current){audioRef.current.volume=Math.max(0,Math.min(1,volume/100));}},[volume,useYouTube]);// ── Loop ─────────────────────────────────────────────────────────────────\nuseEffect(()=>{if(useYouTube){if(ytPlayerRef.current&&typeof ytPlayerRef.current.setLoop===\"function\"){ytPlayerRef.current.setLoop(loop);}}else if(audioRef.current){audioRef.current.loop=loop;}},[loop,useYouTube]);// ── Pause on tab / app hide ───────────────────────────────────────────────\n// Covers: visibilitychange, blur/focus, pagehide/pageshow,\n// Page Lifecycle API freeze/resume (Chromium), iOS Safari bfcache.\nuseEffect(()=>{if(isStatic||typeof document===\"undefined\")return;const pause=()=>{if(useYouTube){const yt=ytPlayerRef.current;if(!yt||typeof yt.getPlayerState!==\"function\")return;const YT=window.YT;if(YT?.PlayerState&&yt.getPlayerState()===YT.PlayerState.PLAYING){resumeWasPlayingRef.current=desiredPlayingRef.current;yt.pauseVideo();}}else{const a=audioRef.current;if(!a||a.paused)return;resumeWasPlayingRef.current=desiredPlayingRef.current;a.pause();}};const resume=()=>{if(!desiredPlayingRef.current&&!resumeWasPlayingRef.current)return;if(document.hidden)return;if(useYouTube){const yt=ytPlayerRef.current;if(!yt||typeof yt.playVideo!==\"function\")return;resumeWasPlayingRef.current=false;yt.playVideo();}else{const a=audioRef.current;if(!a)return;resumeWasPlayingRef.current=false;a.play().catch(()=>{resumeWasPlayingRef.current=true;});}};const onVisibility=()=>document.hidden?pause():setTimeout(resume,0);const onFocus=()=>setTimeout(resume,0);const onPageShow=()=>setTimeout(resume,0);document.addEventListener(\"visibilitychange\",onVisibility);window.addEventListener(\"blur\",pause);window.addEventListener(\"focus\",onFocus);window.addEventListener(\"pagehide\",pause);window.addEventListener(\"pageshow\",onPageShow);window.addEventListener(\"freeze\",pause);window.addEventListener(\"resume\",resume);return()=>{document.removeEventListener(\"visibilitychange\",onVisibility);window.removeEventListener(\"blur\",pause);window.removeEventListener(\"focus\",onFocus);window.removeEventListener(\"pagehide\",pause);window.removeEventListener(\"pageshow\",onPageShow);window.removeEventListener(\"freeze\",pause);window.removeEventListener(\"resume\",resume);};},[isStatic,useYouTube]);// ── Click handler ────────────────────────────────────────────────────────\nconst handleClick=useCallback(()=>{if(isStatic)return;if(useYouTube){const yt=ytPlayerRef.current;if(!yt||typeof yt.getPlayerState!==\"function\")return;const YT=window.YT;if(!YT?.PlayerState)return;const state=yt.getPlayerState();if(state===YT.PlayerState.PLAYING){desiredPlayingRef.current=false;yt.pauseVideo();}else{desiredPlayingRef.current=true;yt.playVideo();}}else{const a=audioRef.current;if(!a)return;if(a.paused){desiredPlayingRef.current=true;a.play().catch(()=>{});}else{desiredPlayingRef.current=false;a.pause();}}},[isStatic,useYouTube]);// ── playAmount transition ─────────────────────────────────────────────────\nuseEffect(()=>{if(typeof window===\"undefined\"){const v=isPlaying?1:resting;playAmountRef.current=v;setPlayAmount(v);return;}const from=playAmountRef.current;const to=isPlaying?1:resting;if(from===to)return;const dur=Math.max(60,transitionSpeed*1e3);const t0=performance.now();const tick=t=>{const p=Math.min(1,(t-t0)/dur);const v=from+(to-from)*easeInOutCubic(p);playAmountRef.current=v;setPlayAmount(v);if(p<1)rafTransRef.current=requestAnimationFrame(tick);};if(rafTransRef.current!==null)cancelAnimationFrame(rafTransRef.current);rafTransRef.current=requestAnimationFrame(tick);return()=>{if(rafTransRef.current!==null){cancelAnimationFrame(rafTransRef.current);rafTransRef.current=null;}};},[isPlaying,transitionSpeed,resting]);// ── Phase loop ───────────────────────────────────────────────────────────\nuseRaf(!isStatic&&isPlaying,dt=>{phaseRef.current+=dt*Math.PI*2*Math.max(.01,animationSpeed)*.6;if(entryRef.current){entryRef.current.globalPhase=phaseRef.current;}setPhase(phaseRef.current);});// ── SVG geometry ─────────────────────────────────────────────────────────\nconst computed=useMemo(()=>{const a=Math.max(0,Math.min(1,playAmount));const ph=phase;const upx=100/w;const upy=100/h;const capPx=endCap===\"round\"?Math.max(1,strokeWidth/2):0;const px=Math.min(12,capPx*upx);const py=Math.min(12,capPx*upy);const cy=y=>Math.max(py,Math.min(100-py,y));const path=fn=>{const pts=[];for(let i=0;i<=120;i++){const x01=i/120;pts.push(`${(px+x01*(100-px*2)).toFixed(2)},${fn(x01).toFixed(2)}`);}return`M ${pts.join(\" L \")}`;};if(animation===\"wave\"){return{kind:\"path\",d:a<=1e-4?path(()=>50):path(x=>cy(50+Math.sin(x*Math.PI*6+ph*1.05)*env(x)*18*intensity*a))};}// Bars\nconst count=Math.max(2,Math.round(barCount));const restHalf=endCap===\"round\"?0:strokeWidth*upy/2;const barPad=Math.min(6,Math.max(.5,strokeWidth/2*upx));const bars=Array.from({length:count},(_,i)=>{const x01=count<=1?.5:i/(count-1);const edgeEnv=.3+.7*Math.pow(Math.sin(x01*Math.PI),.5);const lfo=.35+.65*(.5+.5*Math.sin(ph*(1.15+i*.015)+i*.9+Math.sin(ph*.4+i*.2)*.6));const target=(6+38*lfo)*edgeEnv*intensity;return Math.max(0,restHalf+(Math.min(46,target)-restHalf)*a);});return{kind:\"bars\",bars,count,barPad};},[animation,intensity,playAmount,phase,barCount,strokeWidth,endCap,w,h]);// ── Derived ──────────────────────────────────────────────────────────────\nconst flexDir=labelPosition===\"top\"?\"column-reverse\":labelPosition===\"bottom\"?\"column\":labelPosition===\"left\"?\"row-reverse\":\"row\";const onChars=useMemo(()=>labelOnText.split(\"\"),[labelOnText]);const offChars=useMemo(()=>labelOffText.split(\"\"),[labelOffText]);const fontStyle=useMemo(()=>safeFontStyle(labelFont),[labelFont]);// Only build + inject focus style in non-static renders\nconst focusStyle=useMemo(()=>!isStatic?buildFocusStyle(focusClass):\"\",[focusClass,isStatic]);// ── Canvas empty-state ───────────────────────────────────────────────────\n// Show a helpful placeholder when no audio file has been selected yet.\nif(isStatic&&!audioUrl&&!youtubePlaylistUrl){return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,opacity:.4,userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 100 40\",style:{width:80,height:32},\"aria-hidden\":true,children:/*#__PURE__*/_jsx(\"path\",{d:\"M5,20 Q10,10 15,20 Q20,30 25,20 Q30,10 35,20 Q40,30 45,20 Q50,10 55,20 Q60,30 65,20 Q70,10 75,20 Q80,30 85,20 Q90,10 95,20\",stroke:restingColor,strokeWidth:strokeWidth,fill:\"none\",strokeLinecap:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:restingColor,fontFamily:\"sans-serif\"},children:useYouTube?\"No playlist URL\":\"No audio file\"})]});}// ── Render ───────────────────────────────────────────────────────────────\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[useYouTube&&/*#__PURE__*/_jsx(\"div\",{ref:ytContainerRef,style:{display:\"none\"}}),!isStatic&&/*#__PURE__*/_jsx(\"style\",{children:focusStyle}),/*#__PURE__*/_jsx(\"div\",{className:isStatic?undefined:focusClass,style:{...style,width:\"100%\",height:\"100%\",minWidth:tapW,minHeight:tapH,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:isStatic?\"default\":\"pointer\",touchAction:\"manipulation\",WebkitTapHighlightColor:\"transparent\",userSelect:\"none\",WebkitUserSelect:\"none\",outline:\"none\"},role:\"button\",\"aria-label\":isPlaying?\"Pause ambient audio\":\"Play ambient audio\",\"aria-pressed\":isPlaying,tabIndex:isStatic?-1:0,onClick:isStatic?undefined:()=>{if(lastPointerWasTouchRef.current){lastPointerWasTouchRef.current=false;return;}handleClick();},onPointerUp:isStatic?undefined:e=>{if(e.pointerType!==\"mouse\"){e.preventDefault();lastPointerWasTouchRef.current=true;handleClick();}},onKeyDown:isStatic?undefined:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();handleClick();}},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:flexDir,alignItems:\"center\",justifyContent:\"center\",gap:labelGap},children:[/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 100 100\",preserveAspectRatio:\"none\",style:{display:\"block\",overflow:\"visible\",flexShrink:0,alignSelf:\"center\",width:w,height:h},focusable:\"false\",\"aria-hidden\":true,children:computed.kind===\"path\"?/*#__PURE__*/_jsx(\"path\",{d:computed.d,stroke:isPlaying?color:restingColor,strokeWidth:strokeWidth,fill:\"none\",strokeLinecap:strokeLinecap,strokeLinejoin:\"round\",vectorEffect:\"non-scaling-stroke\"}):/*#__PURE__*/_jsx(\"g\",{children:computed.bars.map((half,i)=>{const x=computed.count<=1?50:computed.barPad+i/(computed.count-1)*(100-computed.barPad*2);return /*#__PURE__*/_jsx(\"line\",{x1:x,y1:50-half,x2:x,y2:50+half,stroke:isPlaying?color:restingColor,strokeWidth:strokeWidth,strokeLinecap:strokeLinecap,vectorEffect:\"non-scaling-stroke\"},i);})})}),showLabel&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",alignSelf:\"center\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":!isPlaying,style:{...fontStyle,color:labelOnColor,whiteSpace:\"nowrap\",display:\"inline-flex\",alignItems:\"center\",position:\"absolute\",top:0,bottom:0,left:0,pointerEvents:\"none\"},children:onChars.map((c,i)=>/*#__PURE__*/_jsx(\"span\",{style:CHAR_CLIP_STYLE,children:/*#__PURE__*/_jsx(\"span\",{style:charInnerStyle(isPlaying,true,i,transitionSpeed),children:c===\" \"?\"\\xa0\":c})},i))}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":isPlaying,style:{...fontStyle,color:labelOffColor,whiteSpace:\"nowrap\",display:\"inline-flex\",alignItems:\"center\",pointerEvents:\"none\",visibility:isPlaying?\"hidden\":\"visible\"},children:offChars.map((c,i)=>/*#__PURE__*/_jsx(\"span\",{style:CHAR_CLIP_STYLE,children:/*#__PURE__*/_jsx(\"span\",{style:charInnerStyle(!isPlaying,false,i,transitionSpeed),children:c===\" \"?\"\\xa0\":c})},i))})]})]})})]});}// ─── Property Controls ────────────────────────────────────────────────────────\naddPropertyControls(AudioWave,{// ── Source ───────────────────────────────────────────────────────────────\nuseYouTube:{type:ControlType.Boolean,title:\"Source\",defaultValue:false,enabledTitle:\"YouTube\",disabledTitle:\"Audio File\"},youtubePlaylistUrl:{type:ControlType.String,title:\"Playlist URL\",placeholder:\"https://www.youtube.com/playlist?list=...\",description:\"Paste YouTube playlist URL. Videos will play in random order.\",hidden:p=>!p.useYouTube},audioUrl:{type:ControlType.File,title:\"Audio File\",allowedFileTypes:[\"mp3\",\"wav\",\"ogg\",\"m4a\"],hidden:p=>p.useYouTube},// ── Audio ────────────────────────────────────────────────────────────────\nvolume:{type:ControlType.Number,title:\"Volume\",defaultValue:80,min:0,max:100,step:5,unit:\"%\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},// ── Animation ────────────────────────────────────────────────────────────\nanimation:{type:ControlType.Enum,title:\"Style\",options:[\"wave\",\"bars\"],optionTitles:[\"Wave\",\"Bars\"],defaultValue:\"wave\",displaySegmentedControl:true},barCount:{type:ControlType.Number,title:\"Bar Count\",defaultValue:26,min:4,max:80,step:1,hidden:p=>p.animation!==\"bars\"},animationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.2,max:4,step:.1},intensity:{type:ControlType.Number,title:\"Intensity\",defaultValue:1,min:.2,max:2.5,step:.1,description:\"Peak amplitude of the animation. Higher = more dramatic.\"},transitionSpeed:{type:ControlType.Number,title:\"Transition Speed\",defaultValue:.8,min:.1,max:3,step:.1,unit:\"s\",description:\"How long the play/pause animation transition takes.\"},restingLevel:{type:ControlType.Number,title:\"Paused Height\",defaultValue:.35,min:0,max:1,step:.05,description:\"Animation height when paused. 0 = flat line, 1 = full height.\"},// ── Appearance ───────────────────────────────────────────────────────────\ncolor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"#0099FF\"},restingColor:{type:ControlType.Color,title:\"Inactive Color\",defaultValue:\"#CCCCCC\"},strokeWidth:{type:ControlType.Number,title:\"Line Weight\",defaultValue:3,min:1,max:10,step:.5,unit:\"px\"},endCap:{type:ControlType.Enum,title:\"Line Cap\",options:[\"round\",\"square\"],optionTitles:[\"Rounded\",\"Square\"],defaultValue:\"round\",displaySegmentedControl:true},svgWidth:{type:ControlType.Number,title:\"Waveform Width\",defaultValue:240,min:16,max:800,step:4,unit:\"px\"},svgHeight:{type:ControlType.Number,title:\"Waveform Height\",defaultValue:80,min:16,max:400,step:4,unit:\"px\"},// ── Label ────────────────────────────────────────────────────────────────\nshowLabel:{type:ControlType.Boolean,title:\"Label\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},labelOnText:{type:ControlType.String,title:\"Playing Text\",defaultValue:\"Sound On\",hidden:p=>p.showLabel===false},labelOffText:{type:ControlType.String,title:\"Paused Text\",defaultValue:\"Sound Off\",hidden:p=>p.showLabel===false},labelPosition:{type:ControlType.Enum,title:\"Position\",options:[\"left\",\"right\",\"top\",\"bottom\"],optionTitles:[\"Left\",\"Right\",\"Top\",\"Bottom\"],defaultValue:\"right\",hidden:p=>p.showLabel===false},labelGap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:48,step:2,unit:\"px\",hidden:p=>p.showLabel===false},labelFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:1},hidden:p=>p.showLabel===false},labelOnColor:{type:ControlType.Color,title:\"Playing Text Color\",defaultValue:\"#000000\",hidden:p=>p.showLabel===false},labelOffColor:{type:ControlType.Color,title:\"Paused Text Color\",defaultValue:\"#888888\",hidden:p=>p.showLabel===false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AudioWave\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"80\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AudioWave.map"],"mappings":"uOAc6C,SAAS,IAAW,CAAC,IAAM,EAAIA,EAAO,IAAI,EAA2D,OAAtD,EAAI,UAAU,OAAM,EAAI,QAAQ,MAAM,EAAE,KAAqB,EAAI,OAAQ,CAAyB,SAAS,GAAa,EAAI,CAAC,GAAU,IAAS,OAAY,OAAO,KAAK,IAAI,EAAM,EAAU,IAAI,CAAG,EAAE,GAAG,CAAC,EAAM,CAAC,IAAM,EAAM,IAAI,MAAM,EAAM,KAAK,GAAK,EAAM,QAAQ,OAAO,EAAM,IAAI,EAAI,EAAM,CAAC,QAAM,OAAO,EAAE,WAAW,GAAM,gBAAgB,GAAM,YAAY,EAAE,aAAa,IAAI,EAAE,EAAU,IAAI,EAAI,CAAK,CAAE,CAE/W,OAD1H,EAAM,eAAe,OAAM,EAAO,aAAa,EAAM,YAAY,EAAE,EAAM,aAAa,MAAM,EAAM,SAClG,EAAM,YAAY,EAAM,MAAM,SAAQ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