{"version":3,"file":"AdvancedVideoEmbed.d2_E__tr.mjs","names":["useState","useRef","useMemo","useCallback","_Fragment","__esmMin","z","init_ssg_sandbox_shims","pe","init_npm_react_18_3_1","_e","Ha","de","init_jsx_runtime","K","ne","init_npm_react_dom_18_3_1","p","ce","window","init_framer_BpuvUAiZ","addPropertyControls","ControlType","RenderTarget","resolveBunny","raw","videoId","m","libraryId","DEFAULT_LIBRARY_ID","readGrants","v","STORE","x","splitTokens","s","hasAccess","a","tokens","t","fmt","sec","h","mm","toSeconds","n","normalizePopup","popup","node","prev","fixedW","fixedH","AdvancedVideoEmbed","isCanvas","isPlaying","setIsPlaying","isPlayingRef","isTouchDevice","prefersReducedMotion","started","setStarted","coverGone","setCoverGone","START_TIMEOUT_MS","COVER_FADE_MS","hoverClipUrl","hoverClip","showHoverClip","setShowHoverClip","hoverClipRef","magnet","magnetKey","alsoAccepts","tokenList","unlocked","setUnlocked","gateOpen","setGateOpen","previewPlaying","setPreviewPlaying","elapsed","setElapsed","duration","setDuration","scrubPos","setScrubPos","gateActive","gateEnabled","lockedMode","gateMode","wall","gateSeconds","shielded","unlockedRef","gateOpenRef","wallRef","lockedModeRef","gateFiredRef","wasGatedRef","elapsedRef","tickRef","startFallbackRef","unlockTimerRef","trackRef","bunny","embedSrc","BUNNY_ORIGIN","iframeRef","readyRef","queueRef","gotTimeRef","listenerSeq","post","win","PJS_CONTEXT","PJS_VERSION","msg","send","value","flushQueue","q","activate","stopTimer","fireGate","gateOnce","onGate","startTimer","last","now","LOCAL_GRACE","subscribe","ev","becomeReady","onMessage","d","secs","dur","READY_TIMEOUT_MS","sync","resume","finish","onUnlock","unlockDelay","EVT","goTo","target","w","key","seconds","lockScroll","dismissible","onKey","ratio","RATIOS","aspectRatio","thumbSrc","thumbnail","posterUrl","handleMouseEnter","playOnHover","handleMouseLeave","handleClick","handleKeyDown","togglePreview","scrubMax","shownPos","posPct","gatePct","timeFromEvent","el","r","clientX","onTrackDown","onTrackMove","onTrackUp","shield","shieldColor","playButtonSize","playFill","DiscRing","playRing","playIcon","showLockHint","LOCK_PATH","showPreviewScrubber","popupWidth","popupHeight","popupChild","popupNode","popupRadius","showClose","closeInset","closeSize","closeBackground","closeColor","gateBackdrop","backdropColor","backdropBlur","gateOverlay","l","previewPopup","cornerRadius","style","canvasNote","loadingFill","DiscSpinner","noGate","noWall","init_AdvancedVideoEmbed","color","still"],"sources":["https:/framerusercontent.com/modules/odb4o1GSk0Y9hQpjwZR1/uqbQ9z14arYLIOlFsg34/AdvancedVideoEmbed.js"],"sourcesContent":["/**\n * AdvancedVideoEmbed — Movement Wisdom Yoga\n * (formerly SpotlightrAdvancedEmbed; renamed 2026-10-26)\n *\n * ── v2.0 (2026-10-26): NOW A bunny.net STREAM PLAYER ─────────────────────\n * Renamed from SpotlightrAdvancedEmbed so nobody thinks Spotlightr is still\n * in use. Same code file (id htQnUSB), so every instance, CMS binding and\n * chapter pairing survived the rename. Since the Spotlightr → bunny\n * migration it embeds https://iframe.mediadelivery.net/embed/<Library ID>/<Video ID> and\n * drives it through bunny's Player.js API (postMessage, no script to load).\n * Spotlightr ids no longer play here: an instance holding one shows a bunny\n * \"not found\" player. Spotlightr → bunny id map: Admin/Tools/Bunny Stream/\n * video-map.csv. Backup of the Spotlightr\n * version: Admin/Platforms/Website/backups/SpotlightrAdvancedEmbed_backup_2026-10-26.tsx\n *\n * ── v2.1 (2026-11-13): LOADING STATE ─────────────────────────────────────\n * After the click (or hover) the real iframe mounts and bunny needs a moment\n * to paint. Before: thumbnail and play button vanished at once and the frame\n * sat empty. Now the thumbnail stays on top, the play button turns into a\n * spinner, and a solid \"Loading Fill\" (Chocolate) sits behind the iframe so\n * the box is never empty. The cover leaves (250 ms fade) on the player's\n * first `timeupdate` with seconds > 0 = playback really started. If that\n * never comes (autoplay blocked, offline) it leaves after START_TIMEOUT_MS so\n * bunny's own play button stays reachable. Gate shield sits below the cover.\n *\n * Because this component CAN command the player, it is also the one that\n * owns email gating. VideoEmbed does not gate, and must not be made to.\n *\n * Idle until hover (desktop) or click/tap — same as VideoEmbed's\n * \"Play on Hover\" behavior — so it does NOT autoplay with sound on page\n * load. The real iframe (with bunny's `autoplay=true`) only mounts once\n * activated.\n *\n * \"Hover Clip\" (added Aug 2026) mirrors VideoEmbed's \"Preview Clip\": a short\n * muted local mp4 that loops over the poster on desktop hover instead of\n * starting the real player. It is the hover behaviour whenever the real\n * player cannot start — Play on Hover off, a gate wall armed, or Locked mode\n * — so a gated video can still tease without burning its free preview. The\n * clip is a plain <video> mounted only while hovering; it never touches\n * the player, so it cannot interfere with gating or chapter seeking.\n * Clips live in Pictures → Images Website → Web Video Previews.\n *\n * Pair with LessonChapters (CMS pages) or ChapterMarkerItem (static pages):\n * set both components' \"Video ID\" to the same value — the bunny video GUID\n * (e.g. \"5be10071-1a56-4a3d-9bb7-58fa87f7baf5\"). The chapter components call\n * window.__mwSeekVideo[videoId](seconds), which this component registers —\n * activating itself first if still idle; the seek is queued and sent once\n * the player says \"ready\". The key is the Video ID exactly as typed, so the\n * pairing works whatever the id looks like.\n *\n * ── Empty Video ID ───────────────────────────────────────────────────────\n * On the published site an empty Video ID renders NOTHING — no box, no gap.\n * This is what lets a single instance sit on the /lessons/:slug template\n * with Video ID bound to the CMS: the 17 lessons with no video simply have\n * no player. On the canvas it still draws a \"Set a Video ID\" placeholder so\n * the layer stays selectable while you build.\n *\n * ── THE PLAYER OWNS MEDIA GATING. LessonGate does not. ───────────────────\n * Same rule and the same unlock contract as AudioPlayer (`s_vEepL`) — read\n * that file's header too. Only the player can stop playback part-way\n * through, and \"watch the first few minutes, then hit a wall\" is the whole\n * point: a visitor shown a locked box has been given no reason to hand over\n * an email. LessonGate's role Video is obsolete.\n *\n * ── WHY THERE IS A SHIELD OVER THE PLAYER WHILE GATED ────────────────────\n * Decided 2026-08-12. Read before touching the gate.\n *\n * The player (bunny now, Spotlightr before) draws its own scrubber INSIDE\n * the iframe. We cannot intercept a drag on it, so a viewer could simply\n * pull the playhead past the wall. The obvious fix — turning seeking off in\n * the player settings — is WRONG: it is a library/video setting, so it\n * would still be off after they hand over the email. The person who paid\n * with their address is exactly the person who should be able to jump\n * around. (Since v2.0 the `timeupdate` check below would also catch a jump\n * past the wall, but the shield stays: it is what keeps the preview honest.)\n *\n * So the restriction is temporary and lives here. While gated, a shield\n * covers the iframe, swallows every pointer event, and replaces the player's\n * transport with our own. The instant the token lands the shield unmounts and\n * the native player is fully back — scrub anywhere, volume, fullscreen.\n *\n * ⚠️ The shield's bottom bar is DELIBERATELY OPAQUE at its lower edge. The\n * shield is transparent, so the player's own control bar is still VISIBLE\n * underneath it — just dead. Visible-but-unclickable controls are worse than\n * either option, and with our own scrubber added there would be two timelines\n * on screen at once. The bar masks theirs. Do not thin it out or make it a\n * soft gradient without checking what shows through.\n *\n * ── OUR SCRUBBER SHOWS THE WHOLE VIDEO, NOT JUST THE PREVIEW ─────────────\n * Same decision as AudioPlayer, and for the same reason: the full duration on\n * the bar with the free stretch shaded and a marker at the wall is what\n * creates \"there is so much more here\", which is what motivates the email.\n * Clamping the bar to the preview hides exactly that.\n *\n * The rule: move freely inside the preview; any attempt to go past the wall\n * parks you AT the wall and opens the gate. Nothing ever yanks the playhead\n * backwards, so dismissing the popup leaves you where you got to and you can\n * drag back and replay. The gate re-arms after a dismissal (unless Ask once).\n *\n * Duration comes from `getDuration` on ready and from every `timeupdate`\n * (it carries {seconds, duration}). If neither answers, the bar falls back\n * to spanning the preview only — still draggable, just without the \"how\n * much is locked\" signal.\n *\n * Dragging commits the seek on POINTER UP, not on every move, so a drag\n * sends one setCurrentTime instead of dozens (kept from the Spotlightr\n * version, where every call also carried a 500ms delay).\n *\n * ── TWO GATE MODES ───────────────────────────────────────────────────────\n *   Preview → free until `gateSeconds`, then the wall. `gateSeconds = 0`\n *             means NO WALL, exactly as in AudioPlayer. Same number, same\n *             meaning in both players — do not overload it.\n *   Locked  → nothing plays. Lock on the thumbnail, click opens the popup.\n *\n * The preview always starts at 0. A configurable start offset was considered\n * on 2026-08-12 and deliberately deferred — it would need a second CMS field,\n * and the simple case has to work first.\n *\n * ── bunny's Player.js API, as actually verified (2026-10-26) ─────────────\n * Plain postMessage, JSON STRINGS both ways, context \"player.js\", version\n * \"0.0.11\". The player posts {event:\"ready\", value:{events, methods}} once\n * it has loaded. Events: ready · play · pause · ended · timeupdate ·\n * progress · seeked · error. Methods: play · pause · getPaused · mute ·\n * unmute · getMuted · setVolume · getVolume · getDuration · setCurrentTime ·\n * getCurrentTime · setLoop · getLoop · addEventListener · removeEventListener.\n *   send     {context, version, method, value?, listener?}\n *   getter   reply {event:<method>, value, listener}\n *   events   only after {method:\"addEventListener\", value:<event>,\n *            listener:<id>}; timeupdate value = {seconds, duration}, ~4/s.\n * Commands sent before \"ready\" are queued here and flushed on ready (or\n * after READY_TIMEOUT_MS if ready never arrives). Replies are matched on\n * `e.source === this iframe's window`, so several players on one page never\n * answer for each other (the old Spotlightr id-matching bug, fixed\n * 2026-08-14, cannot recur).\n *\n * The wall is checked on every `timeupdate` (seconds >= Gate at → pause,\n * park at the wall, open the gate). A local 250ms counter runs only until\n * the first `timeupdate` arrives, as a backstop, and may fire at most\n * LOCAL_GRACE seconds late.\n *\n * ⚠️ The popup slot arrives ABSOLUTELY POSITIONED with canvas coords baked in;\n *    it is cloneElement'd with position:relative and inset cleared. Set Popup\n *    width — leaving width and height both at 0 is the collapse case.\n * ⚠️ Overlays use createPortal, never a DOM hoist. React 18 attaches listeners\n *    to the root container, so a hand-moved node never fires an event — the\n *    gate would look functional and capture nothing.\n * ⚠️ Framer Preview caches the old module. Hard-reload before debugging.\n * ⚠️ MCP typecheck responses are STALE. Verify by fetching the built module\n *    from framer.com/m/<Name>.js and reading __FramerMetadata__ at the bottom.\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useCallback,useMemo,cloneElement,isValidElement}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const RATIOS={Landscape:16/9,\"4by5\":4/5,Square:1/1,Vertical:9/16};/**\n * Play button diameter, sized off the SHORT side of the player box.\n *\n * The old value was a flat `clamp(40px, 15%, 96px)`. A CSS percentage width\n * resolves against the container's WIDTH only, and the container is\n * `width: 100%` + `aspect-ratio: ratio` — so a 16:9 player is wide and\n * saturates the 96px cap, while a 9:16 player is narrow and collapses to the\n * 40px floor even though it is visually the TALLER box. Same markup, wildly\n * different perceived size.\n *\n * Multiplying by min(1, 1 / ratio) converts a short-side percentage into the\n * equivalent width percentage (height = width / ratio), so the button reads\n * the same size at every aspect ratio. 16:9 lands at ~14% of width, which is\n * within a hair of the old 15% — landscape is deliberately left looking\n * unchanged. 48px floor keeps the in-player pause button clear of the 44px\n * minimum touch target.\n */const playButtonSize=ratio=>`clamp(48px, ${(25*Math.min(1,1/ratio)).toFixed(2)}%, 96px)`;/**\n * Play / lock disc ring (2026-10-23, warm design system).\n *\n * Same look as VideoEmbed and LessonCard: Shell fill, Chocolate glyph and a\n * thin Chocolate ring. The ring is an SVG circle (4/100 of the diameter) so it\n * scales with the button, which is 48-96px depending on the player. Place it\n * first inside a `position: relative` disc that already has the fill colour.\n * Replaces the old single colour prop (white glyph on a coloured disc).\n * Keep in sync with VideoEmbed.tsx.\n */const DiscRing=({color})=>/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 100 100\",focusable:\"false\",\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"},xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"circle\",{cx:\"50\",cy:\"50\",r:\"48\",fill:\"none\",stroke:color,strokeWidth:\"4\"})});/**\n * Loading spinner (2026-11-13). Replaces the play triangle inside the disc\n * between the click and the first frame. SMIL rotation, so no injected\n * <style> and no keyframes; with reduced motion it is a still arc. Square\n * line ends (radius 0 system).\n */const DiscSpinner=({color,still})=>/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",role:\"img\",\"aria-label\":\"Loading video\",style:{position:\"relative\",width:\"44%\",height:\"44%\"},xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",fill:\"none\",stroke:color,strokeOpacity:\"0.18\",strokeWidth:\"2.5\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",fill:\"none\",stroke:color,strokeWidth:\"2.5\",strokeLinecap:\"butt\",strokeDasharray:\"14 42.55\",children:still?null:/*#__PURE__*/_jsx(\"animateTransform\",{attributeName:\"transform\",type:\"rotate\",from:\"0 12 12\",to:\"360 12 12\",dur:\"0.9s\",repeatCount:\"indefinite\"})})]});/* ─────────────────────────────────────────────────────────────────────────\n   mw-gate-store v1 — SHARED LOGIC, ONE OF 6 COPIES. CHANGE ALL SIX TOGETHER.\n\n   Framer code files in this project cannot import one another (checked\n   2026-08-18: zero relative imports across all code files), so this block is\n   duplicated rather than shared. If you change the storage key, the event\n   name, or the shape of the stored value here, make the identical change in:\n\n     LessonGate.tsx · MagnetGrant.tsx · YogaArchetypeQuiz.tsx\n     AudioPlayer.tsx · AdvancedVideoEmbed.tsx (this file, formerly SpotlightrAdvancedEmbed.tsx) · PodcastUnlock.tsx\n\n   Miss one and content unlocks in one component and stays locked in another,\n   on the same page, for the same visitor — no error, just inconsistency.\n\n   Contract as of v1. THIS FILE IS A READER: it reads the key and listens for\n   the event. It never writes the key and never fires the event.\n     localStorage key  \"mw_lessons_unlocked\"  → JSON array of magnet-key strings\n     window event      \"mw-gate-unlocked\"     → listened for here, fired elsewhere\n     reserved token    \"all\"                  → opens every gate (honoured by\n                                                hasAccess below)\n\n   Magnet keys themselves are NOT defined here. They live on the Lessons CMS\n   item (\"Magnet Key\" field) and must match the row keys in Make data store\n   175799 (Lead Magnet Config).\n   ───────────────────────────────────────────────────────────────────────── */// ─── Shared unlock contract (mirrored in AudioPlayer / MagnetGrant) ───────────\nconst STORE=\"mw_lessons_unlocked\";const EVT=\"mw-gate-unlocked\";/** The local counter may only fire the wall this far past it. */const LOCAL_GRACE=5;// ─── bunny.net Stream ─────────────────────────────────────────────────────────\n/** \"Movement Wisdom Library\". */const DEFAULT_LIBRARY_ID=\"790276\";const BUNNY_ORIGIN=\"https://iframe.mediadelivery.net\";const PJS_CONTEXT=\"player.js\";const PJS_VERSION=\"0.0.11\";/** Flush queued commands anyway if the player never says \"ready\". */const READY_TIMEOUT_MS=4e3;/** Take the loading cover away anyway if playback never reports as started. */const START_TIMEOUT_MS=8e3;/** Fade-out of the loading cover once playback has started. */const COVER_FADE_MS=250;/**\n * Library + video from the two props. Video ID is normally the bare GUID;\n * a pasted full embed URL (…/embed/<lib>/<id>) is accepted too and its\n * library wins over the Library ID prop.\n */function resolveBunny(libraryId,videoId){const raw=(videoId||\"\").trim();const m=raw.match(/\\/(?:embed|play)\\/([^/?#]+)\\/([^/?#]+)/);if(m)return{lib:m[1],id:m[2]};return{lib:(libraryId||DEFAULT_LIBRARY_ID).trim(),id:raw};}const LOCK_PATH=\"M12 1a5 5 0 00-5 5v3H6a2 2 0 00-2 2v9a2 2 0 002 2h12a2 2 0 002-2v-9a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm-3 8V6a3 3 0 016 0v3H9z\";function readGrants(){if(typeof window===\"undefined\")return[];try{const v=JSON.parse(window.localStorage.getItem(STORE)||\"[]\");return Array.isArray(v)?v.filter(x=>typeof x===\"string\"):[];}catch(e){return[];}}function splitTokens(v){if(Array.isArray(v))return v.map(s=>String(s).trim()).filter(Boolean);if(typeof v!==\"string\")return[];return v.split(\",\").map(s=>s.trim()).filter(Boolean);}function hasAccess(tokens){const a=readGrants();if(a.includes(\"all\"))return true;return tokens.some(t=>!!t&&a.includes(String(t).trim()));}function fmt(sec){if(!isFinite(sec)||sec<0)sec=0;const h=Math.floor(sec/3600);const m=Math.floor(sec%3600/60);const s=Math.floor(sec%60);const mm=h>0?String(m).padStart(2,\"0\"):String(m);return(h>0?h+\":\":\"\")+mm+\":\"+String(s).padStart(2,\"0\");}/** Player replies can be a number, a numeric string or an object. */function toSeconds(v){if(typeof v===\"number\")return isFinite(v)?v:0;if(typeof v===\"string\"){const n=parseFloat(v);return isFinite(n)?n:0;}if(v&&typeof v===\"object\"){return toSeconds(v.returnValue??v.duration??v.value);}return 0;}/** Strip Framer's baked-in canvas positioning off slot content. */function normalizePopup(popup,fixedW,fixedH){if(!popup)return null;const node=Array.isArray(popup)?popup[0]:popup;if(!/*#__PURE__*/isValidElement(node))return node;const prev=node.props.style||{};return /*#__PURE__*/cloneElement(node,{style:{...prev,position:\"relative\",top:\"auto\",left:\"auto\",right:\"auto\",bottom:\"auto\",inset:\"auto\",transform:\"none\",margin:0,width:fixedW?\"100%\":prev.width||\"auto\",height:fixedH?\"100%\":prev.height||\"auto\",maxWidth:\"100%\",flexShrink:0}});}export default function AdvancedVideoEmbed({videoId=\"\",libraryId=DEFAULT_LIBRARY_ID,aspectRatio=\"Vertical\",cornerRadius=16,thumbnail,posterUrl=\"\",playFill=\"#FBF5F0\",playIcon=\"#3A1B14\",playRing=\"#3A1B14\",loadingFill=\"#3A1B14\",playOnHover=true,hoverClip=\"\",gateEnabled=false,gateMode=\"Preview\",magnetKey=\"\",alsoAccepts=\"\",gateSeconds=300,gateOnce=false,showLockHint=true,showPreviewScrubber=true,unlockDelay=1200,shieldColor=\"rgba(0,0,0,0.001)\",popup,popupWidth=600,popupHeight=0,popupRadius=20,backdropColor=\"rgba(55, 35, 94, 0.85)\",backdropBlur=4,dismissible=true,lockScroll=false,showClose=true,closeSize=34,closeInset=-14,closeColor=\"#4A2F80\",closeBackground=\"rgba(255,255,255,0.94)\",previewPopup=false,onGate,onUnlock,style}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[isPlaying,setIsPlaying]=useState(false);const isPlayingRef=useRef(false);useEffect(()=>{isPlayingRef.current=isPlaying;},[isPlaying]);const isTouchDevice=useRef(false);const prefersReducedMotion=useRef(false);useEffect(()=>{if(typeof window===\"undefined\")return;isTouchDevice.current=window.matchMedia(\"(hover: none) and (pointer: coarse)\").matches;prefersReducedMotion.current=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;},[]);// ── Loading cover (2026-11-13) ────────────────────────────────────────────\n// `started` = the player reported real playback; `coverGone` = the fade-out\n// after that has finished. Until then the thumbnail + spinner sit on top.\nconst[started,setStarted]=useState(false);const[coverGone,setCoverGone]=useState(false);useEffect(()=>{if(!isPlaying||started)return;// Never trap the viewer: bunny's own play button must stay reachable.\nconst t=setTimeout(()=>setStarted(true),START_TIMEOUT_MS);return()=>clearTimeout(t);},[isPlaying,started]);useEffect(()=>{if(!started||coverGone)return;const t=setTimeout(()=>setCoverGone(true),prefersReducedMotion.current?0:COVER_FADE_MS);return()=>clearTimeout(t);},[started,coverGone]);// ── Hover clip ────────────────────────────────────────────────────────────\n// Short muted loop that plays over the poster on desktop hover. Mirrors\n// VideoEmbed's \"Preview Clip\", but named \"hover clip\" here because this\n// file already uses \"preview\" for the free stretch before the gate wall.\n// Mounted only while hovering, so nothing downloads until then.\nconst hoverClipUrl=typeof hoverClip===\"string\"?hoverClip.trim():\"\";const[showHoverClip,setShowHoverClip]=useState(false);const hoverClipRef=useRef(null);useEffect(()=>{if(!showHoverClip)return;const v=hoverClipRef.current;if(!v)return;try{v.currentTime=0;}catch(_){/* ignore */}const p=v.play();if(p&&typeof p.catch===\"function\"){p.catch(()=>{});}},[showHoverClip]);// The real player takes over — never leave a clip running underneath it.\nuseEffect(()=>{if(isPlaying)setShowHoverClip(false);},[isPlaying]);// ── Gate state ────────────────────────────────────────────────────────────\nconst magnet=(magnetKey||\"\").trim();const tokens=[magnet].concat(splitTokens(alsoAccepts)).filter(Boolean);const tokenList=tokens.join(\"|\");const[unlocked,setUnlocked]=useState(false);const[gateOpen,setGateOpen]=useState(false);const[previewPlaying,setPreviewPlaying]=useState(false);const[elapsed,setElapsed]=useState(0);const[duration,setDuration]=useState(0);const[scrubPos,setScrubPos]=useState(null);const gateActive=!isCanvas&&!!gateEnabled&&!!videoId&&tokens.length>0&&!unlocked;const lockedMode=gateActive&&gateMode===\"Locked\";// 0 means \"no wall\", same as AudioPlayer.\nconst wall=gateActive&&gateMode===\"Preview\"&&gateSeconds>0?gateSeconds:0;const shielded=!!wall;const unlockedRef=useRef(false);const gateOpenRef=useRef(false);const wallRef=useRef(0);const lockedModeRef=useRef(false);const gateFiredRef=useRef(false);const wasGatedRef=useRef(false);const elapsedRef=useRef(0);const tickRef=useRef(null);const startFallbackRef=useRef(null);const unlockTimerRef=useRef(null);const trackRef=useRef(null);useEffect(()=>{unlockedRef.current=unlocked;},[unlocked]);useEffect(()=>{gateOpenRef.current=gateOpen;},[gateOpen]);useEffect(()=>{wallRef.current=wall;},[wall]);useEffect(()=>{lockedModeRef.current=lockedMode;},[lockedMode]);// ── Player.js bridge ──────────────────────────────────────────────────────\nconst bunny=useMemo(()=>resolveBunny(libraryId,videoId),[libraryId,videoId]);const embedSrc=bunny.id?`${BUNNY_ORIGIN}/embed/${encodeURIComponent(bunny.lib)}/${encodeURIComponent(bunny.id)}?autoplay=true`:\"\";const iframeRef=useRef(null);const readyRef=useRef(false);const queueRef=useRef([]);const gotTimeRef=useRef(false);const listenerSeq=useRef(0);// Reset when the video itself changes.\nuseEffect(()=>{elapsedRef.current=0;setElapsed(0);setDuration(0);gateFiredRef.current=false;},[videoId,libraryId]);// A fresh iframe means a fresh player: forget readiness and queue.\nuseEffect(()=>{readyRef.current=false;gotTimeRef.current=false;if(!isPlaying)queueRef.current=[];setStarted(false);setCoverGone(false);},[isPlaying,embedSrc]);const post=useCallback(msg=>{const win=iframeRef.current?.contentWindow;if(!win)return false;try{win.postMessage(JSON.stringify({context:PJS_CONTEXT,version:PJS_VERSION,...msg}),BUNNY_ORIGIN);return true;}catch(e){return false;}},[]);/**\n     * Send a Player.js command. Queued until the player says \"ready\" (or\n     * READY_TIMEOUT_MS passes), so callers never have to wait themselves.\n     */const send=useCallback((method,value)=>{if(typeof window===\"undefined\"||!videoId)return;const msg={method};if(value!==undefined)msg.value=value;if(readyRef.current&&post(msg))return;queueRef.current.push(msg);},[videoId,post]);const flushQueue=useCallback(()=>{const q=queueRef.current;queueRef.current=[];q.forEach(m=>post(m));},[post]);const activate=useCallback(()=>{setIsPlaying(true);if(wallRef.current)setPreviewPlaying(true);},[]);const stopTimer=useCallback(()=>{if(tickRef.current){clearInterval(tickRef.current);tickRef.current=null;}if(startFallbackRef.current){clearTimeout(startFallbackRef.current);startFallbackRef.current=null;}},[]);const fireGate=useCallback(()=>{if(!wallRef.current&&!lockedModeRef.current)return;if(unlockedRef.current)return;if(gateFiredRef.current&&gateOnce)return;if(gateOpenRef.current)return;gateFiredRef.current=true;wasGatedRef.current=true;stopTimer();setPreviewPlaying(false);send(\"pause\");if(wallRef.current){// Park AT the wall (timeupdate can land a fraction past it).\nsend(\"setCurrentTime\",wallRef.current);elapsedRef.current=wallRef.current;setElapsed(wallRef.current);}gateOpenRef.current=true;setGateOpen(true);if(onGate)onGate();},[gateOnce,send,stopTimer,onGate]);/** Backstop counter — only until the player's own timeupdate arrives. */const startTimer=useCallback(()=>{if(tickRef.current||gotTimeRef.current)return;let last=Date.now();tickRef.current=setInterval(()=>{if(gotTimeRef.current){stopTimer();return;}const now=Date.now();elapsedRef.current+=(now-last)/1e3;last=now;setElapsed(elapsedRef.current);if(wallRef.current&&elapsedRef.current>=wallRef.current+LOCAL_GRACE){fireGate();}},250);},[fireGate,stopTimer]);// ── Listen to this player (and only this player) ──────────────────────────\nuseEffect(()=>{if(isCanvas||typeof window===\"undefined\"||!isPlaying)return;const subscribe=()=>{[\"timeupdate\",\"play\",\"pause\",\"ended\"].forEach(ev=>{listenerSeq.current+=1;post({method:\"addEventListener\",value:ev,listener:\"mw-\"+ev+\"-\"+listenerSeq.current});});post({method:\"getDuration\",listener:\"mw-duration\"});};const becomeReady=()=>{if(readyRef.current)return;readyRef.current=true;subscribe();flushQueue();};const onMessage=e=>{const win=iframeRef.current?.contentWindow;if(!win||e.source!==win)return;let d=e.data;if(typeof d===\"string\"){try{d=JSON.parse(d);}catch(_){return;}}if(!d||d.context!==PJS_CONTEXT)return;switch(d.event){case\"ready\":becomeReady();break;case\"getDuration\":{const secs=toSeconds(d.value);if(secs>0)setDuration(secs);break;}case\"timeupdate\":{const v=d.value||{};const secs=toSeconds(v.seconds);const dur=toSeconds(v.duration);if(secs>0)setStarted(true);if(dur>0)setDuration(dur);if(!gotTimeRef.current){gotTimeRef.current=true;stopTimer();}elapsedRef.current=secs;if(wallRef.current)setElapsed(secs);if(wallRef.current&&!unlockedRef.current&&secs>=wallRef.current){fireGate();}break;}case\"play\":if(wallRef.current&&!unlockedRef.current){setPreviewPlaying(true);}break;case\"pause\":case\"ended\":setPreviewPlaying(false);if(d.event===\"ended\")stopTimer();break;}};window.addEventListener(\"message\",onMessage);// If \"ready\" never arrives (or arrived before we listened), carry on.\nconst t=setTimeout(becomeReady,READY_TIMEOUT_MS);return()=>{clearTimeout(t);window.removeEventListener(\"message\",onMessage);};},[isCanvas,isPlaying,embedSrc,post,flushQueue,fireGate,stopTimer]);// ── Start the backstop counter when a gated preview starts ────────────────\nuseEffect(()=>{if(isCanvas||!wall||!isPlaying||!videoId)return;startFallbackRef.current=setTimeout(startTimer,2500);return()=>{if(startFallbackRef.current){clearTimeout(startFallbackRef.current);startFallbackRef.current=null;}};},[isCanvas,wall,isPlaying,videoId,startTimer]);// Re-arm the wall after the visitor dismisses the popup, so pushing at\n// it a second time asks again instead of sailing past it.\nuseEffect(()=>{if(isCanvas||gateOpen||gateOnce)return;if(!wall||!isPlaying||unlocked)return;if(!gateFiredRef.current)return;gateFiredRef.current=false;},[isCanvas,gateOpen,gateOnce,wall,isPlaying,unlocked]);useEffect(()=>{return()=>{stopTimer();if(unlockTimerRef.current)clearTimeout(unlockTimerRef.current);};},[stopTimer]);// ── Subscribe to the shared unlock store ──────────────────────────────────\n// Also the path a MagnetGrant inside the popup form takes.\nuseEffect(()=>{if(isCanvas||typeof window===\"undefined\")return;const sync=()=>{if(unlockedRef.current)return;if(!hasAccess(tokens))return;const resume=gateOpenRef.current||wasGatedRef.current;const finish=()=>{unlockedRef.current=true;setUnlocked(true);gateOpenRef.current=false;setGateOpen(false);gateFiredRef.current=false;wasGatedRef.current=false;stopTimer();setPreviewPlaying(false);if(resume){if(!isPlayingRef.current)activate();else send(\"play\");if(onUnlock)onUnlock();}};// Hold the popup open long enough for the form's success state to\n// be read, then close and carry on.\nif(resume&&unlockDelay>0){if(unlockTimerRef.current)clearTimeout(unlockTimerRef.current);unlockTimerRef.current=setTimeout(finish,unlockDelay);}else{finish();}};sync();window.addEventListener(EVT,sync);window.addEventListener(\"storage\",sync);return()=>{window.removeEventListener(EVT,sync);window.removeEventListener(\"storage\",sync);};},[isCanvas,tokenList,unlockDelay,activate,send,stopTimer,onUnlock]);/**\n     * Move the playhead. Anything past the wall parks AT the wall and opens the\n     * gate — never further back than that, so dismissing the popup leaves the\n     * viewer where they got to.\n     */const goTo=useCallback(target=>{let t=target<0?0:target;if(wallRef.current&&t>wallRef.current){send(\"setCurrentTime\",wallRef.current);elapsedRef.current=wallRef.current;setElapsed(wallRef.current);fireGate();return;}send(\"setCurrentTime\",t);elapsedRef.current=t;setElapsed(t);},[send,fireGate]);// ── Chapter-seek bridge for a paired LessonChapters / ChapterMarkerItem ───\n// Keyed on the Video ID exactly as typed. If the player is idle it is\n// activated first; the seek waits in the send queue until \"ready\".\nuseEffect(()=>{if(typeof window===\"undefined\"||!videoId)return;const w=window;const key=videoId;w.__mwSeekVideo=w.__mwSeekVideo||{};w.__mwSeekVideo[key]=seconds=>{if(lockedModeRef.current){wasGatedRef.current=true;setGateOpen(true);return;}if(wallRef.current&&seconds>wallRef.current){if(!isPlayingRef.current)activate();fireGate();return;}if(!isPlayingRef.current)activate();goTo(seconds);send(\"play\");};return()=>{if(w.__mwSeekVideo&&w.__mwSeekVideo[key])delete w.__mwSeekVideo[key];};},[videoId,activate,goTo,fireGate,send]);// ── Gate popup: scroll lock + Escape ──────────────────────────────────────\nuseEffect(()=>{if(isCanvas||typeof document===\"undefined\"||!lockScroll)return;if(gateOpen){const prev=document.body.style.overflow;document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=prev;};}},[gateOpen,lockScroll,isCanvas]);useEffect(()=>{if(isCanvas||!gateOpen||!dismissible)return;if(typeof window===\"undefined\")return;const onKey=e=>{if(e.key===\"Escape\")setGateOpen(false);};window.addEventListener(\"keydown\",onKey);return()=>window.removeEventListener(\"keydown\",onKey);},[isCanvas,gateOpen,dismissible]);const ratio=RATIOS[aspectRatio]??9/16;const thumbSrc=(typeof thumbnail===\"string\"?thumbnail:thumbnail?.src)||posterUrl||undefined;// ── Interaction ───────────────────────────────────────────────────────────\nconst handleMouseEnter=()=>{if(isTouchDevice.current||isPlaying)return;// Start the REAL player on hover only when nothing is holding it back:\n// Locked mode has nothing to show, and a gated wall must not burn its\n// countdown on a stray hover.\nif(playOnHover&&!lockedMode&&!wall){activate();return;}// Otherwise fall back to the muted hover clip. Safe in every state —\n// it is a separate local file and never touches the video player,\n// so it costs the visitor nothing against the gate.\nif(hoverClipUrl&&!prefersReducedMotion.current){setShowHoverClip(true);}};const handleMouseLeave=()=>{if(showHoverClip)setShowHoverClip(false);};const handleClick=()=>{if(lockedMode){wasGatedRef.current=true;setGateOpen(true);if(onGate)onGate();return;}if(!isPlaying)activate();};const handleKeyDown=e=>{if(!isPlaying&&(e.key===\"Enter\"||e.key===\" \")){e.preventDefault();handleClick();}};/** Pressing play while parked at the wall is a deliberate push against it,\n     *  so it opens the gate — same rule as the audio player. */const togglePreview=e=>{e.stopPropagation();if(previewPlaying){send(\"pause\");stopTimer();setPreviewPlaying(false);return;}if(wall&&elapsedRef.current>=wall){fireGate();return;}send(\"play\");startTimer();setPreviewPlaying(true);};// ── The shield ────────────────────────────────────────────────────────────\n// The bar spans the WHOLE video when the duration is known, with the free\n// stretch shaded and a marker at the wall. Falls back to the preview span.\nconst scrubMax=duration>0?duration:wall;const shownPos=scrubPos??Math.min(elapsed,scrubMax||elapsed);const posPct=scrubMax?Math.min(100,shownPos/scrubMax*100):0;const gatePct=wall&&duration>0?Math.min(100,wall/duration*100):100;const timeFromEvent=clientX=>{const el=trackRef.current;if(!el||!scrubMax)return null;const r=el.getBoundingClientRect();if(!r.width)return null;const ratioX=Math.min(1,Math.max(0,(clientX-r.left)/r.width));return ratioX*scrubMax;};// Seeks commit on pointer UP: one setCurrentTime per drag instead of a\n// flood of them on every move.\nconst onTrackDown=e=>{e.stopPropagation();const t=timeFromEvent(e.clientX);if(t==null)return;try{e.currentTarget.setPointerCapture(e.pointerId);}catch(_){}setScrubPos(t);};const onTrackMove=e=>{if(scrubPos==null)return;e.stopPropagation();const t=timeFromEvent(e.clientX);if(t!=null)setScrubPos(t);};const onTrackUp=e=>{if(scrubPos==null)return;e.stopPropagation();const t=timeFromEvent(e.clientX)??scrubPos;setScrubPos(null);goTo(t);};const shield=shielded&&isPlaying?/*#__PURE__*/_jsxs(\"div\",{onClick:e=>e.stopPropagation(),style:{position:\"absolute\",inset:0,zIndex:6,background:shieldColor,display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-end\",cursor:\"default\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:togglePreview,style:{position:\"absolute\",inset:0,zIndex:0,cursor:\"pointer\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,zIndex:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:previewPlaying?\"none\":\"auto\"},children:/*#__PURE__*/_jsxs(\"button\",{onClick:togglePreview,\"aria-label\":previewPlaying?\"Pause\":\"Play\",style:{width:playButtonSize(ratio),aspectRatio:\"1\",position:\"relative\",backgroundColor:playFill,borderRadius:\"50%\",border:\"none\",padding:0,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 4px 24px rgba(58,27,20,0.35)\",opacity:previewPlaying?0:1,transition:\"opacity 0.18s ease\"},children:[/*#__PURE__*/_jsx(DiscRing,{color:playRing}),/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",style:{position:\"relative\",width:\"40%\",height:\"40%\",marginLeft:\"8%\"},fill:playIcon,xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"polygon\",{points:\"4,2 18,10 4,18\"})})]})}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:2,padding:\"28px 16px 12px\",background:\"linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.88) 55%, rgba(0,0,0,0) 100%)\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:10,fontFamily:\"Satoshi, sans-serif\",fontSize:12,color:\"rgba(255,255,255,0.9)\",marginBottom:8},children:[showLockHint?/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:6,whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:11,height:11,viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:LOCK_PATH})}),\"Free preview \\xb7 \",fmt(wall)]}):/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsxs(\"span\",{style:{fontVariantNumeric:\"tabular-nums\",opacity:.85,whiteSpace:\"nowrap\"},children:[fmt(shownPos),duration>0?\" / \"+fmt(duration):\"\"]})]}),showPreviewScrubber&&scrubMax>0?/*#__PURE__*/_jsx(\"div\",{ref:trackRef,onPointerDown:onTrackDown,onPointerMove:onTrackMove,onPointerUp:onTrackUp,onPointerCancel:onTrackUp,onClick:e=>e.stopPropagation(),role:\"slider\",\"aria-label\":\"Seek within the free preview\",\"aria-valuemin\":0,\"aria-valuemax\":Math.round(scrubMax),\"aria-valuenow\":Math.round(shownPos),style:{pointerEvents:\"auto\",cursor:\"pointer\",paddingTop:8,paddingBottom:8,touchAction:\"none\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:4,borderRadius:999,background:\"rgba(255,255,255,0.26)\",overflow:\"hidden\"},children:[gatePct>0&&gatePct<100?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,left:0,width:gatePct+\"%\",background:\"#fff\",opacity:.22}}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,left:0,width:posPct+\"%\",background:playFill,borderRadius:999}}),gatePct>0&&gatePct<100?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,left:gatePct+\"%\",width:2,background:\"#fff\",opacity:.75}}):null]})}):null]})]}):null;// ── Gate popup ────────────────────────────────────────────────────────────\nconst fixedW=popupWidth>0;const fixedH=popupHeight>0;const popupChild=normalizePopup(popup,fixedW,fixedH);const popupNode=popupChild?/*#__PURE__*/_jsxs(\"div\",{onClick:e=>e.stopPropagation(),style:{position:\"relative\",width:fixedW?popupWidth:\"auto\",height:fixedH?popupHeight:\"auto\",maxWidth:\"100%\",flex:\"0 0 auto\",display:\"flex\",flexDirection:\"column\",borderRadius:popupRadius},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",borderRadius:popupRadius,overflow:popupRadius>0?\"hidden\":\"visible\"},children:popupChild}),showClose?/*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();setGateOpen(false);},\"aria-label\":\"Close\",style:{position:\"absolute\",top:closeInset,right:closeInset,width:closeSize,height:closeSize,borderRadius:999,border:\"none\",cursor:\"pointer\",background:closeBackground,color:closeColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0,zIndex:2},children:/*#__PURE__*/_jsx(\"svg\",{width:Math.round(closeSize*.4),height:Math.round(closeSize*.4),viewBox:\"0 0 14 14\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 1l12 12M13 1L1 13\"})})}):null]}):null;const gateBackdrop=!isCanvas&&gateOpen&&popupNode?/*#__PURE__*/_jsx(\"div\",{onClick:()=>{if(dismissible)setGateOpen(false);},style:{position:\"fixed\",inset:0,zIndex:2147483100,background:backdropColor,backdropFilter:backdropBlur>0?\"blur(\"+backdropBlur+\"px)\":undefined,WebkitBackdropFilter:backdropBlur>0?\"blur(\"+backdropBlur+\"px)\":undefined,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:24,boxSizing:\"border-box\",overflowY:\"auto\"},children:popupNode}):null;const gateOverlay=/*#__PURE__*/_jsxs(_Fragment,{children:[isCanvas&&previewPopup&&popupNode?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"100%\",left:0,right:0,marginTop:12,display:\"flex\",justifyContent:\"center\",pointerEvents:\"none\",zIndex:10},children:popupNode}):null,gateBackdrop&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(gateBackdrop,document.body):gateBackdrop]});// ── Empty Video ID ────────────────────────────────────────────────────────\nif(!videoId){// Published: collapse entirely so lessons without video show no gap.\nif(!isCanvas)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:String(ratio),borderRadius:cornerRadius,background:\"#111\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"rgba(255,255,255,0.5)\",fontSize:\"0.875em\",textAlign:\"center\",padding:20,...style},children:\"Set a Video ID — renders nothing on the live site while empty\"});}// ── Canvas note ───────────────────────────────────────────────────────────\nlet canvasNote=\"\";if(isCanvas&&gateEnabled){if(!magnet)canvasNote=\"Gate is on but no magnet key\";else if(!popup)canvasNote=\"Gate is on but no popup form connected\";else if(gateMode===\"Locked\")canvasNote=\"Locked — no free preview\";else if(!gateSeconds)canvasNote=\"Gate at is 0 — no wall\";else canvasNote=\"Free until \"+fmt(gateSeconds);}return /*#__PURE__*/_jsxs(\"div\",{onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick:handleClick,onKeyDown:handleKeyDown,role:\"button\",tabIndex:isPlaying?-1:0,\"aria-label\":lockedMode?\"Unlock video\":isPlaying&&!started?\"Loading video\":\"Play video\",\"aria-busy\":isPlaying&&!started,style:{position:\"relative\",width:\"100%\",aspectRatio:String(ratio),overflow:\"hidden\",borderRadius:cornerRadius,background:isPlaying?loadingFill:undefined,cursor:isPlaying&&!shielded?\"default\":\"pointer\",outline:\"none\",userSelect:\"none\",// Own stacking context: cover (z 7) and shield (z 6) must not\n// outrank the sticky nav (z 5) in the page stacking context.\nisolation:\"isolate\",...style},children:[(!isPlaying||!coverGone)&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,zIndex:7,opacity:isPlaying&&started?0:1,transition:prefersReducedMotion.current?\"none\":`opacity ${COVER_FADE_MS}ms ease`,pointerEvents:isPlaying&&started?\"none\":\"auto\",cursor:isPlaying?\"progress\":undefined},children:[thumbSrc?/*#__PURE__*/_jsx(\"img\",{src:thumbSrc,alt:\"Video thumbnail\",draggable:false,loading:\"lazy\",decoding:\"async\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"#1a1a1a\"}}),showHoverClip&&hoverClipUrl&&!isPlaying&&/*#__PURE__*/_jsx(\"video\",{ref:hoverClipRef,src:hoverClipUrl,muted:true,loop:true,playsInline:true,autoPlay:true,preload:\"none\",\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:playButtonSize(ratio),aspectRatio:\"1\",position:\"relative\",backgroundColor:playFill,borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 4px 24px rgba(58,27,20,0.35)\"},children:[/*#__PURE__*/_jsx(DiscRing,{color:playRing}),isPlaying?/*#__PURE__*/_jsx(DiscSpinner,{color:playIcon,still:prefersReducedMotion.current}):lockedMode?/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",style:{position:\"relative\",width:\"44%\",height:\"44%\"},fill:playIcon,xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:LOCK_PATH})}):/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",style:{position:\"relative\",width:\"40%\",height:\"40%\",marginLeft:\"8%\"},fill:playIcon,xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"polygon\",{points:\"4,2 18,10 4,18\"})})]})})]}),isPlaying&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,title:\"Video\",allow:\"autoplay; fullscreen; picture-in-picture; encrypted-media\",allowFullScreen:true,name:\"videoPlayerframe\",src:embedSrc,frameBorder:0,scrolling:\"no\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"}}),shield]}),isCanvas&&canvasNote?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:12,bottom:12,zIndex:9,padding:\"4px 10px\",borderRadius:999,background:\"rgba(0,0,0,0.6)\",color:\"#fff\",fontFamily:\"Satoshi, sans-serif\",fontSize:12},children:canvasNote}):null,gateOverlay]});}const noGate=p=>!p.gateEnabled;const noWall=p=>!p.gateEnabled||p.gateMode===\"Locked\";addPropertyControls(AdvancedVideoEmbed,{videoId:{type:ControlType.String,title:\"Video ID\",placeholder:\"bunny GUID, e.g. 5be10071-1a56-…\",description:\"bunny.net Stream video ID (bunny_id in video-map.csv). Bind to the Video ID field. Must match the paired chapter component. Empty = renders nothing on the live site.\"},libraryId:{type:ControlType.String,title:\"Library ID\",defaultValue:DEFAULT_LIBRARY_ID,placeholder:DEFAULT_LIBRARY_ID,description:\"bunny library. 790276 = Movement Wisdom Library.\"},aspectRatio:{type:ControlType.Enum,title:\"Aspect Ratio\",defaultValue:\"Vertical\",options:[\"Landscape\",\"4by5\",\"Square\",\"Vertical\"],optionTitles:[\"Landscape (16:9)\",\"Portrait (4:5)\",\"Square (1:1)\",\"Vertical (9:16)\"]},thumbnail:{type:ControlType.ResponsiveImage,title:\"Thumbnail\",description:\"Bind to Video Thumbnail.\"},posterUrl:{type:ControlType.String,title:\"Poster URL\",defaultValue:\"\",description:\"Fallback image URL, used only when Thumbnail is empty.\"},playFill:{type:ControlType.Color,title:\"Play Fill\",defaultValue:\"#FBF5F0\",description:\"Shell. Same as VideoEmbed and LessonCard. Also colours the preview progress fill.\"},playIcon:{type:ControlType.Color,title:\"Play Icon\",defaultValue:\"#3A1B14\",description:\"Chocolate. Also the lock icon in Locked mode.\"},playRing:{type:ControlType.Color,title:\"Play Ring\",defaultValue:\"#3A1B14\",description:\"Chocolate. Keeps the button visible on pale thumbnails where the Shell fill disappears.\"},loadingFill:{type:ControlType.Color,title:\"Loading Fill\",defaultValue:\"#3A1B14\",description:\"Solid box behind the player while it loads, so the frame is never empty. Chocolate: the player is dark, a light box would flash before it.\"},playOnHover:{type:ControlType.Boolean,title:\"Play on Hover\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Desktop only. Off means click/tap-to-play only. Ignored while a gate wall is armed, so a stray hover cannot burn the free preview.\"},hoverClip:{type:ControlType.File,title:\"Hover Clip\",description:\"Short muted loop shown over the thumbnail on desktop hover. Used whenever the real player can't start on hover — Play on Hover off, gate wall armed, or Locked. Optional.\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\",\"m4v\"]},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:16,min:0,max:200,step:1,displayStepper:true},// ── Gate ──────────────────────────────────────────────────────────────────\ngateEnabled:{type:ControlType.Boolean,title:\"Gate\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"While gated, our transport replaces the player's own so the wall cannot be scrubbed past. It disappears the moment they unlock, and the native player is fully back.\"},gateMode:{type:ControlType.Enum,title:\"Mode\",defaultValue:\"Preview\",options:[\"Preview\",\"Locked\"],optionTitles:[\"Preview then wall\",\"Locked from the start\"],description:\"Locked shows a lock on the thumbnail and asks before anything plays.\",hidden:noGate},magnetKey:{type:ControlType.String,title:\"Magnet key\",placeholder:\"200-ytt-mistakes-podcast\",description:\"Bind to the lesson's Magnet Key field. Also needs a row in Make data store 175799. With no key the gate stays down rather than trapping anyone.\",hidden:noGate},alsoAccepts:{type:ControlType.String,title:\"Also accepts\",placeholder:\"legacy-token\",description:\"Extra tokens that also open this video. Rarely needed — the CMS is the mapping.\",hidden:noGate},gateSeconds:{type:ControlType.Number,title:\"Gate at\",defaultValue:300,min:0,max:3600,step:15,unit:\"s\",displayStepper:true,description:\"How much they get for free, counted from the start. 0 means no wall at all.\",hidden:noWall},showPreviewScrubber:{type:ControlType.Boolean,title:\"Preview scrubber\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Draggable bar spanning the whole video, with the free stretch shaded and a marker at the wall. Dragging past the wall parks at it and asks.\",hidden:noWall},showLockHint:{type:ControlType.Boolean,title:\"Preview hint\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Small 'Free preview \\xb7 5:00' label over the player.\",hidden:noWall},shieldColor:{type:ControlType.Color,title:\"Cover tint\",defaultValue:\"rgba(0,0,0,0.001)\",description:\"The layer over the video during the preview. Near-invisible by default; darken it if you want the preview to read as restricted.\",hidden:noWall},gateOnce:{type:ControlType.Boolean,title:\"Ask once\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Off means the wall asks again every time they push at it. On means one ask per visit.\",hidden:noGate},unlockDelay:{type:ControlType.Number,title:\"Hold on success\",defaultValue:1200,min:0,max:5e3,step:100,unit:\"ms\",description:\"How long the popup stays open after the form succeeds, so the success message can be read. Then it closes and the video carries on.\",hidden:noGate},popup:{type:ControlType.ComponentInstance,title:\"Popup\",description:\"Your form. Put a MagnetGrant in its success state — that is what tells this player to unlock and carry on. Place the form directly on the page if you need CMS bindings.\",hidden:noGate},popupWidth:{type:ControlType.Number,title:\"Width\",defaultValue:600,min:0,max:1400,step:10,unit:\"px\",hidden:noGate},popupHeight:{type:ControlType.Number,title:\"Height\",defaultValue:0,min:0,max:1400,step:10,unit:\"px\",description:\"0 = auto. Set a value if the popup collapses.\",hidden:noGate},popupRadius:{type:ControlType.Number,title:\"Corner\",defaultValue:20,min:0,max:60,unit:\"px\",hidden:noGate},backdropColor:{type:ControlType.Color,title:\"Backdrop\",defaultValue:\"rgba(55, 35, 94, 0.85)\",hidden:noGate},backdropBlur:{type:ControlType.Number,title:\"Blur\",defaultValue:4,min:0,max:30,unit:\"px\",hidden:noGate},dismissible:{type:ControlType.Boolean,title:\"Dismissible\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Backdrop click and Esc close it. The video stays paused at the wall, so pressing play simply asks again.\",hidden:noGate},lockScroll:{type:ControlType.Boolean,title:\"Lock scroll\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:noGate},showClose:{type:ControlType.Boolean,title:\"Close button\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:noGate},closeSize:{type:ControlType.Number,title:\"Size\",defaultValue:34,min:20,max:64,unit:\"px\",hidden:p=>noGate(p)||!p.showClose},closeInset:{type:ControlType.Number,title:\"Offset\",defaultValue:-14,min:-40,max:40,unit:\"px\",hidden:p=>noGate(p)||!p.showClose},closeColor:{type:ControlType.Color,title:\"Icon\",defaultValue:\"#4A2F80\",hidden:p=>noGate(p)||!p.showClose},closeBackground:{type:ControlType.Color,title:\"Button bg\",defaultValue:\"rgba(255,255,255,0.94)\",hidden:p=>noGate(p)||!p.showClose},previewPopup:{type:ControlType.Boolean,title:\"Preview popup\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Canvas only — shows the popup below the player.\",hidden:noGate},onGate:{type:ControlType.EventHandler,title:\"On gate\"},onUnlock:{type:ControlType.EventHandler,title:\"On unlock\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AdvancedVideoEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AdvancedVideoEmbed.map"],"mappings":"A,6QAiNG,SAASwB,GAAa,EAAU,EAAQ,CAAC,IAAMC,GAAKC,GAAS,GAAA,CAAI,KAAK,EAAQC,EAAEF,EAAI,MAAM,wCAAwC,EAAgC,OAA3BE,EAAQ,CAAC,IAAIA,EAAE,GAAG,GAAGA,EAAE,EAAE,EAAQ,CAAC,KAAKC,GAAWC,EAAA,CAAoB,KAAK,EAAE,GAAGJ,CAAG,CAAE,CAA+I,SAASK,IAAY,CAAC,GAAUX,IAAS,OAAY,MAAM,CAAC,EAAE,GAAG,CAAC,IAAMY,EAAE,KAAK,MAAMZ,EAAO,aAAa,QAAQa,CAAK,GAAG,IAAI,EAAE,OAAO,MAAM,QAAQD,CAAC,EAAEA,EAAE,OAAO,GAAG,OAAOE,GAAI,QAAQ,EAAE,CAAC,CAAE,MAAS,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC,SAASC,GAAY,EAAE,CAAuG,OAAnG,MAAM,QAAQH,CAAC,EAASA,EAAE,IAAI,GAAG,OAAOI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAK,OAAOJ,GAAI,SAAyBA,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,GAAGI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAtD,CAAC,CAAuD,CAAC,SAASC,GAAU,EAAO,C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