{"version":3,"file":"SpotlightrAdvancedEmbed.CjnbBXTc.mjs","names":["useState","useRef","useMemo","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/yowUfgJf46ni9Ktb3Fnc/gIRJUNMDmyUWubgeDS2i/SpotlightrAdvancedEmbed.js"],"sourcesContent":["/**\n * SpotlightrAdvancedEmbed — Movement Wisdom Yoga\n *\n * Standalone Spotlightr embed carrying the exact markup Spotlightr's JS API\n * needs to find and control a player: the spotlightr.js script tag, plus an\n * iframe with class=\"video-player-container spotlightr\" and a matching\n * data-playerid. The shared VideoEmbed component's iframe doesn't carry\n * those two attributes, so spotlightrAPI() can't target it — that's why\n * chapter-seeking didn't work against it. Built separately so VideoEmbed\n * (used elsewhere on the site) stays untouched.\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 (and Spotlightr's own autoplay-with-sound default\n * for this video) only mounts once 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 * spotlightrAPI, 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 Spotlightr id — the base64\n * slug in the /watch/<id> URL (e.g. \"MTg0ODYyNQ==\"). Advanced Embed Code\n * must be enabled for the video in Spotlightr's Publish settings. The\n * chapter components call window.__mwSeekVideo[videoId](seconds), which\n * this component registers — activating itself first if still idle, then\n * seeking once the API is ready.\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 * Spotlightr draws its own scrubber INSIDE the iframe. We cannot intercept a\n * drag on it, so a viewer could simply pull the playhead past the wall. The\n * obvious fix — turning seeking off in Spotlightr's player settings — is\n * WRONG: it is a per-video setting, so it would still be off after they hand\n * over the email. The person who paid with their address is exactly the\n * person who should be able to jump around.\n *\n * So the restriction is temporary and lives here. While gated, a shield\n * covers the iframe, swallows every pointer event, and replaces Spotlightr'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 Spotlightr'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 the `getDuration` call on ready. If it never answers,\n * the bar falls back to spanning the preview only — still draggable, just\n * without the \"how much is locked\" signal.\n *\n * Dragging commits the seek on POINTER UP, not on every move: each API call\n * carries a hardcoded 500ms delay inside spotlightr.js, so per-move seeking\n * would flood the player and feel broken.\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 * ── The JS API, as actually verified ─────────────────────────────────────\n * Methods: play · pause · currentTime([s]) · getDuration · getTime([s]).\n * `spotlightrAPI(id, method, params, cb)` registers cb under\n * `<decodedId>-<method>` in window.vooJsApiCallbacks, and every call is\n * delayed 500ms internally. `getTime` is a ONE-SHOT TRIGGER that fires when\n * playback reaches that second — one callback slot per method per player, so\n * one wall only. Callback routing depends on Spotlightr's own listener having\n * attached to this iframe, so we register a plain window \"message\" listener\n * as well; whichever arrives first wins and fireGate is idempotent.\n *\n * ⚠️ Never set window.DomContentLoadedExists = true. Spotlightr re-scans and\n *    wires up late-mounted iframes (ours is mounted on click, long after\n *    DOMContentLoaded) on the player's \"iframeRender\" message, and only while\n *    that flag is false.\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 *\n * ── FIX 2026-08-14 ────────────────────────────────────────────────────────\n * `onReady` (in the \"arm the wall\" effect below) used to treat a\n * `vooPlayerReady` event with NO `detail.video` as a match for every\n * instance (\"!e?.detail?.video || e.detail.video === videoId\"), instead of\n * ignoring it. Spotlightr fires this event globally for the whole page, and\n * an unlabeled/untracked player readiness ping (e.g. from the plain\n * VideoEmbed iframe elsewhere on the page, which doesn't carry the\n * data-playerid Spotlightr needs to identify it) was being treated as \"ready\"\n * by every gated SpotlightrAdvancedEmbed on the page, regardless of its own\n * Video ID. Narrowed to require an exact id match.\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   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 · SpotlightrAdvancedEmbed.tsx (this file) · 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;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\");}/** Spotlightr answers getDuration in a few different shapes. */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 SpotlightrAdvancedEmbed({videoId=\"\",aspectRatio=\"Vertical\",cornerRadius=16,thumbnail,playButtonColor=\"#FFAB3D\",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;},[]);// ── 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]);// Callbacks come back keyed on the DECODED id: \"<decoded>-<method>\".\nconst decodedVideoId=useMemo(()=>{if(!videoId||typeof window===\"undefined\")return null;try{return window.atob(videoId);}catch(e){return videoId;}},[videoId]);// Reset when the video itself changes.\nuseEffect(()=>{elapsedRef.current=0;setElapsed(0);setDuration(0);gateFiredRef.current=false;},[videoId]);/** Call the Spotlightr API, waiting for the script if it is still loading. */const api=useCallback((method,params,cb)=>{if(typeof window===\"undefined\"||!videoId)return;const w=window;let attempts=0;const run=()=>{attempts++;if(typeof w.spotlightrAPI===\"function\"){w.spotlightrAPI(videoId,method,params??null,cb);}else if(attempts<20){setTimeout(run,150);}};run();},[videoId]);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;gateFiredRef.current=true;wasGatedRef.current=true;stopTimer();setPreviewPlaying(false);if(wallRef.current){elapsedRef.current=wallRef.current;setElapsed(wallRef.current);}api(\"pause\");setGateOpen(true);if(onGate)onGate();},[gateOnce,api,stopTimer,onGate]);const startTimer=useCallback(()=>{if(tickRef.current)return;let last=Date.now();tickRef.current=setInterval(()=>{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]);// Load Spotlightr's JS API script once (idempotent).\nuseEffect(()=>{if(typeof document===\"undefined\"||!videoId)return;const scriptSrc=\"https://videos.cdn.spotlightr.com/assets/spotlightr.js\";if(!document.querySelector(`script[src=\"${scriptSrc}\"]`)){const script=document.createElement(\"script\");script.src=scriptSrc;script.async=true;document.head.appendChild(script);}},[videoId]);// ── Arm the wall, and ask for the duration, once the player is ready ──────\nuseEffect(()=>{if(isCanvas||!wall||!isPlaying||!videoId)return;if(typeof document===\"undefined\")return;let armed=false;const arm=()=>{if(armed)return;armed=true;api(\"getTime\",[String(wall)],()=>fireGate());api(\"getDuration\",null,v=>{const d=toSeconds(v);if(d>0)setDuration(d);});startTimer();};// Only arm on a readiness ping for THIS player. A missing/empty\n// e.detail.video (e.g. from an untracked iframe elsewhere on the\n// page) must never be treated as a match for every instance.\nconst onReady=e=>{if(e?.detail?.video===videoId)arm();};document.addEventListener(\"vooPlayerReady\",onReady,false);startFallbackRef.current=setTimeout(arm,2500);return()=>{document.removeEventListener(\"vooPlayerReady\",onReady,false);};},[isCanvas,wall,isPlaying,videoId,api,fireGate,startTimer]);// Re-arm the one-shot trigger after the visitor dismisses the popup, so\n// pushing at the wall 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;api(\"getTime\",[String(wall)],()=>fireGate());},[isCanvas,gateOpen,gateOnce,wall,isPlaying,unlocked,api,fireGate]);// Backstop for the wall trigger and the duration answer: Spotlightr only\n// routes API callbacks if its own listener attached to this iframe, which\n// depends on its re-scan having run. This listener does not.\nuseEffect(()=>{if(isCanvas||typeof window===\"undefined\"||!decodedVideoId)return;const onMessage=e=>{const d=e.data&&e.data.data;if(!d||typeof d!==\"object\")return;if(!d.api||!d.callbackId)return;if(d.callbackId===decodedVideoId+\"-getTime\")fireGate();if(d.callbackId===decodedVideoId+\"-getDuration\"){const secs=toSeconds(d.returnValue??d);if(secs>0)setDuration(secs);}};window.addEventListener(\"message\",onMessage);return()=>window.removeEventListener(\"message\",onMessage);},[isCanvas,decodedVideoId,fireGate]);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);setGateOpen(false);gateFiredRef.current=false;wasGatedRef.current=false;stopTimer();setPreviewPlaying(false);if(resume){if(!isPlayingRef.current)activate();else api(\"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,api,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){api(\"currentTime\",[wallRef.current]);elapsedRef.current=wallRef.current;setElapsed(wallRef.current);fireGate();return;}api(\"currentTime\",[t]);elapsedRef.current=t;setElapsed(t);},[api,fireGate]);// ── Chapter-seek bridge for a paired LessonChapters / ChapterMarkerItem ───\nuseEffect(()=>{if(typeof window===\"undefined\"||!videoId)return;const w=window;w.__mwSeekVideo=w.__mwSeekVideo||{};w.__mwSeekVideo[videoId]=seconds=>{if(lockedModeRef.current){wasGatedRef.current=true;setGateOpen(true);return;}if(wallRef.current&&seconds>wallRef.current){if(!isPlayingRef.current)activate();fireGate();return;}const seek=()=>goTo(seconds);if(isPlayingRef.current){seek();return;}activate();// Poll for the API instead of guessing a fixed delay.\nlet attempts=0;const poll=()=>{attempts++;if(typeof w.spotlightrAPI===\"function\"){seek();}else if(attempts<20){setTimeout(poll,150);}};setTimeout(poll,150);};return()=>{if(w.__mwSeekVideo)delete w.__mwSeekVideo[videoId];};},[videoId,activate,goTo,fireGate]);// ── 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;// ── 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 Spotlightr 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){api(\"pause\");stopTimer();setPreviewPlaying(false);return;}if(wall&&elapsedRef.current>=wall){fireGate();return;}api(\"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: every spotlightrAPI call carries a hardcoded\n// 500ms delay, so seeking on each move would flood the player.\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__*/_jsx(\"button\",{onClick:togglePreview,\"aria-label\":previewPlaying?\"Pause\":\"Play\",style:{width:playButtonSize(ratio),aspectRatio:\"1\",backgroundColor:playButtonColor,borderRadius:\"50%\",border:\"none\",padding:0,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 4px 24px rgba(0,0,0,0.35)\",opacity:previewPlaying?0:1,transition:\"opacity 0.18s ease\"},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",style:{width:\"42%\",height:\"42%\",marginLeft:\"8%\"},fill:\"white\",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:playButtonColor,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\":\"Play video\",style:{position:\"relative\",width:\"100%\",aspectRatio:String(ratio),overflow:\"hidden\",borderRadius:cornerRadius,cursor:isPlaying&&!shielded?\"default\":\"pointer\",outline:\"none\",userSelect:\"none\",...style},children:[!isPlaying&&/*#__PURE__*/_jsxs(_Fragment,{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&&/*#__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__*/_jsx(\"div\",{style:{width:playButtonSize(ratio),aspectRatio:\"1\",backgroundColor:playButtonColor,borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 4px 24px rgba(0,0,0,0.35)\"},children:lockedMode?/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",style:{width:\"44%\",height:\"44%\"},fill:\"white\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:LOCK_PATH})}):/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",style:{width:\"42%\",height:\"42%\",marginLeft:\"8%\"},fill:\"white\",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\",{allow:\"autoplay; fullscreen; picture-in-picture\",className:\"video-player-container spotlightr\",\"data-playerid\":videoId,allowFullScreen:true,name:\"videoPlayerframe\",src:`https://videos.cdn.spotlightr.com/watch/${videoId}?autoplay=1`,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(SpotlightrAdvancedEmbed,{videoId:{type:ControlType.String,title:\"Video ID\",placeholder:\"e.g. MTg0ODYyNQ==\",description:\"Bind to the Video ID field. Must match the paired chapter component. Empty = renders nothing on the live site.\"},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.\"},playButtonColor:{type:ControlType.Color,title:\"Play Button\",defaultValue:\"#FFAB3D\"},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 Spotlightr's 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\":\"SpotlightrAdvancedEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SpotlightrAdvancedEmbed.map"],"mappings":"4QAgLkS,SAAS,IAAY,CAAC,GAAU,IAAS,OAAY,MAAM,CAAC,EAAE,GAAG,CAAC,IAAM,EAAE,KAAK,MAAM,EAAO,aAAa,QAAQ,CAAK,GAAG,IAAI,EAAE,OAAO,MAAM,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,GAAI,QAAQ,EAAE,CAAC,CAAE,MAAS,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC,SAAS,GAAY,EAAE,CAAuG,OAAnG,MAAM,QAAQ,CAAC,EAAS,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAK,OAAO,GAAI,SAAyB,EAAE,MAAM,GA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