{"version":3,"file":"OptInScrollToForm.CJsROLzt.mjs","names":["useState","useRef","__esmMin","init_ssg_sandbox_shims","_e","de","c","init_jsx_runtime","init_npm_react_18_3_1","ce","window","init_framer_DxfB3JJo","RenderTarget","useIsStaticRenderer","injectCss","style","CSS","showBubble","bubble","video","text","vr","br","anchor","b","timers","HOLD_MS","gate","panel","input","card","cardRect","videoRect","below","pr","offscreen","NAV_OFFSET","y","MESSAGE_BELOW","MESSAGE_SIDE","EVENT","withScrollToForm","Component","props","withOptInFormCard","red","setRed","timer","on","variant","RED_VARIANT","gateKey","readGate","writeGate","scopeOf","scope","el","i","SCOPE_LEVELS","vimeoFrames","sel","playersOnly","addProgress","secs","d","w","step","MAX_STEP_S","subscribe","win","frame","value","VIMEO_EVENTS","VIMEO_ORIGIN","withVideoGateReveal","gateReveal","ref","editing","shown","setShown","instant","setInstant","pageWide","frames","talked","progressing","seen","watches","silent","done","tick","stop","t","onMessage","open","f","SILENT_FAIL_MS","ev","data","GATE_PERCENT","ease","transition","REVEAL_MS","withOptInSubmit","leaving","onSubmit","form","e","OPTIN_NEXT","OPTIN_DELAY_MS","RS_WHITE","RS_BLACK","SHADOW","init_OptInScrollToForm"],"sources":["https:/framerusercontent.com/modules/63rdhG24sQWdfQ3aHcPg/BqkSSKcxUpUJeFvw9XvI/OptInScrollToForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{RenderTarget,useIsStaticRenderer}from\"framer\";// Opt-in video gate. The training is only for people who opt in, so a click\n// (or Enter / Space) on the video never plays it. Instead:\n// - a message bubble pops up above the play button, pointing to the form;\n// - the \"Card - Opt-in Form\" instance switches to its Red variant (Red\n//   Desktop / Red Tablet / Red Phone) and back after a few seconds, so the\n//   component's own variant transition does the animation;\n// - its first field takes focus.\n// When the panel is not fully on screen (Tablet and Phone, where the form\n// stacks under the video) the page scrolls it into view first.\n//\n// withScrollToForm goes on the video frame, withOptInFormCard on the card\n// instance. They talk through a window event, so neither needs layer names.\nconst HOLD_MS=3200;const NAV_OFFSET=88;const MESSAGE_SIDE=\"Vul rechts je gegevens in om de training te bekijken\";const MESSAGE_BELOW=\"Vul eerst hieronder je gegevens in\";const RS_WHITE=\"var(--token-609507e7-7bcb-4e8a-848e-6eed86c5e1bb, rgb(255, 252, 250))\";const RS_BLACK=\"var(--token-385b0879-db3b-4e22-b1bc-fd60d510ff3c, rgb(17, 17, 17))\";const SHADOW=\"var(--token-b2759e2a-930a-4427-8fd9-81820274814f, rgba(0,0,0,0.2))\";const EVENT=\"optin-gate\";// Red counterpart per variant, by name and by id (the parent may pass either)\nconst RED_VARIANT={Desktop:\"Red Desktop\",Tablet:\"Red Tablet\",Phone:\"Red Phone\",FHkfnN4gx:\"pBVfjkBHX\",hdHBarRDY:\"nIqb_UuTE\",xY9gY95Z6:\"Qkm8eBfI7\"};const CSS=`\n.optin-bubble {\n    position: absolute; z-index: 5; left: 50%; max-width: calc(100% - 32px); width: max-content;\n    padding: 10px 16px; border-radius: 12px;\n    background: ${RS_WHITE}; color: ${RS_BLACK};\n    box-shadow: 0 4px 12px 0 ${SHADOW};\n    font: 400 15px/1.35 \"Season Sans-TRIAL Regular\", \"Season Sans\", sans-serif; text-align: center;\n    pointer-events: none; opacity: 0;\n    transform: translate(-50%, 6px) scale(0.96); transform-origin: 50% 100%;\n    transition: opacity 260ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);\n}\n.optin-bubble::after {\n    content: \"\"; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;\n    background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0;\n}\n.optin-bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }\n@media (max-width: 600px) { .optin-bubble { font-size: 13px; padding: 8px 12px; } }\n\n@media (prefers-reduced-motion: reduce) {\n    .optin-bubble { transition: none !important; }\n}\n`;function injectCss(){if(document.getElementById(\"optin-gate-css\"))return;const style=document.createElement(\"style\");style.id=\"optin-gate-css\";style.textContent=CSS;document.head.appendChild(style);}const timers=new WeakMap;function showBubble(video,text){let bubble=video.querySelector(\":scope > .optin-bubble\");if(!bubble){bubble=document.createElement(\"div\");bubble.className=\"optin-bubble\";bubble.setAttribute(\"role\",\"status\");video.appendChild(bubble);}bubble.textContent=text;const vr=video.getBoundingClientRect();const button=video.querySelector('[role=\"button\"]');const br=button?.getBoundingClientRect();const anchor=br?br.top-vr.top:vr.height/2;bubble.style.top=\"auto\";bubble.style.bottom=`${Math.round(vr.height-anchor+14)}px`;bubble.classList.remove(\"is-on\");void bubble.offsetWidth;bubble.classList.add(\"is-on\");const b=bubble;window.clearTimeout(timers.get(b));timers.set(b,window.setTimeout(()=>b.classList.remove(\"is-on\"),HOLD_MS));}function gate(video){let panel=video.parentElement;while(panel&&!panel.querySelector(\"input\"))panel=panel.parentElement;const input=panel?.querySelector(\"input\");if(!panel||!input)return;let card=input;while(card.parentElement&&card.parentElement!==panel&&!card.parentElement.contains(video))card=card.parentElement;injectCss();const cardRect=card.getBoundingClientRect();const videoRect=video.getBoundingClientRect();const below=cardRect.top>=videoRect.bottom-1;// Bring video and form into view together, below the fixed navbar\nconst pr=panel.getBoundingClientRect();const offscreen=pr.top<NAV_OFFSET||pr.bottom>window.innerHeight;if(offscreen){const fits=pr.height<=window.innerHeight-NAV_OFFSET;const y=fits?pr.top-NAV_OFFSET:cardRect.bottom-window.innerHeight+16;window.scrollTo({top:window.scrollY+y,behavior:\"smooth\"});}window.setTimeout(()=>{showBubble(video,below?MESSAGE_BELOW:MESSAGE_SIDE);window.dispatchEvent(new CustomEvent(EVENT));input.focus({preventScroll:true});},offscreen?450:0);}export function withScrollToForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\"},onClickCapture:e=>{e.preventDefault();e.stopPropagation();gate(e.currentTarget);},onKeyDownCapture:e=>{if(e.key!==\"Enter\"&&e.key!==\" \")return;e.preventDefault();e.stopPropagation();gate(e.currentTarget);}});}export function withOptInFormCard(Component){return props=>{const[red,setRed]=useState(false);useEffect(()=>{let timer=0;const on=()=>{setRed(true);window.clearTimeout(timer);timer=window.setTimeout(()=>setRed(false),HOLD_MS);};window.addEventListener(EVENT,on);return()=>{window.removeEventListener(EVENT,on);window.clearTimeout(timer);};},[]);const variant=red?RED_VARIANT[props.variant]??props.variant:props.variant;return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}// CTA reveal after a share of the video is watched (VSL Video Hero, CTA Row).\n// Put withVideoGateReveal on the frame that holds the CTA. At runtime it stays\n// hidden (opacity, visibility, pointer events; the space stays reserved, so\n// nothing jumps) until the visitor has really WATCHED 25% of the video, then it\n// fades and slides in. Watched time is summed from the Vimeo player's own\n// timeupdate messages (postMessage API): only small forward steps count, so a\n// seek or a jump to the end does not open it, and there is no page timer.\n// The only fallback is for a player that breaks after the visitor pressed\n// play: no message at all within 8s of the iframe appearing, or a Vimeo\n// \"error\" event, opens the CTA so the page is never a dead end.\n// The reveal is remembered per page in sessionStorage, so a reload shows it at once.\n// On the canvas and in static renders (canvas screenshots) it passes through,\n// so the CTA stays visible while editing.\n// \"Same section\" = the iframe sits inside the CTA's ancestor SCOPE_LEVELS up\n// (CTA Row > Video Block > Content > hero root > instance), so another video\n// further down the page cannot open it.\n// withVideoGateRevealPage is the same gate for a CTA in another section (the\n// bottom CTA Section on /vsl-ads): it listens to every click to play Vimeo\n// player on the page (VimeoPlayer and VimeoGatePlayer, marked data-vp-frame,\n// so an autoplaying background loop never counts) and shares the remembered\n// reveal with the hero CTA. Put it on a plain\n// wrapper frame around the CTA Section instance, since that instance does not\n// forward the ref and style an override passes.\nconst GATE_PERCENT=.25;const SCOPE_LEVELS=4;const REVEAL_MS=700;const VIMEO_ORIGIN=\"https://player.vimeo.com\";const VIMEO_EVENTS=[\"timeupdate\",\"playProgress\",\"error\"];// A player that has not said a word this long after its iframe appeared\n// (which only happens after a press on play) counts as broken.\nconst SILENT_FAIL_MS=8e3;// Largest step between two progress messages that still counts as watching\n// (they arrive about 4 times a second, also at 2x speed); bigger is a seek.\nconst MAX_STEP_S=2;function gateKey(){return\"cta-gate:\"+window.location.pathname;}function readGate(){try{return window.sessionStorage.getItem(gateKey())===\"1\";}catch{return false;}}function writeGate(){try{window.sessionStorage.setItem(gateKey(),\"1\");}catch{/* Blocked storage: the CTA simply waits for the video again next visit. */}}function scopeOf(el){let scope=el;for(let i=0;i<SCOPE_LEVELS&&scope?.parentElement;i++)scope=scope.parentElement;return scope??document;}function vimeoFrames(scope,playersOnly=false){const sel=playersOnly?'iframe[data-vp-frame][src*=\"player.vimeo.com\"]':'iframe[src*=\"player.vimeo.com\"]';return Array.from(scope.querySelectorAll(sel));}function addProgress(w,d){const secs=typeof d?.seconds===\"number\"?d.seconds:NaN;if(typeof d?.duration===\"number\"&&d.duration>0)w.duration=d.duration;else if(!w.duration&&typeof d?.percent===\"number\"&&d.percent>0&&secs>0)w.duration=secs/d.percent;if(isNaN(secs))return;if(w.last>=0){const step=secs-w.last;if(step>0&&step<=MAX_STEP_S)w.watched+=step;}w.last=secs;}function subscribe(frame){const win=frame.contentWindow;if(!win)return;for(const value of VIMEO_EVENTS){try{win.postMessage(JSON.stringify({method:\"addEventListener\",value}),VIMEO_ORIGIN);}catch{/* Not loaded yet; the next tick or the \"ready\" message retries. */}}}export function withVideoGateReveal(Component){return gateReveal(Component,false);}export function withVideoGateRevealPage(Component){return gateReveal(Component,true);}function gateReveal(Component,pageWide){return props=>{const ref=useRef(null);// Canvas and canvas screenshots are static renders: show the CTA there.\nconst isStatic=useIsStaticRenderer();const editing=isStatic||RenderTarget.current()===RenderTarget.canvas;// Server HTML and first client render are hidden; a remembered reveal\n// is restored in the effect without animation.\nconst[shown,setShown]=useState(false);const[instant,setInstant]=useState(false);useEffect(()=>{if(editing)return;if(readGate()){setInstant(true);setShown(true);return;}const scope=pageWide?document:scopeOf(ref.current);const frames=()=>vimeoFrames(scope,pageWide);// talked: any message from that player; progressing: it sends progress.\nconst talked=new WeakSet;const progressing=new WeakSet;const seen=new WeakSet;const watches=new WeakMap;const silent=[];let done=false;let tick=0;const stop=()=>{done=true;window.clearInterval(tick);for(const t of silent)window.clearTimeout(t);window.removeEventListener(\"message\",onMessage);};const open=()=>{if(done)return;stop();writeGate();if(window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches)setInstant(true);setShown(true);};// The player iframe only mounts after the visitor presses play, so\n// look for it on a cheap tick and keep subscribing until it sends\n// progress. A new iframe = a press on play, which arms the one\n// fallback: a player that stays silent for 8s is broken.\ntick=window.setInterval(()=>{for(const f of frames()){if(!seen.has(f)){seen.add(f);silent.push(window.setTimeout(()=>{const w=f.contentWindow;if(!w||!talked.has(w))open();},SILENT_FAIL_MS));}if(f.contentWindow&&!progressing.has(f.contentWindow))subscribe(f);}},600);function onMessage(ev){if(ev.origin!==VIMEO_ORIGIN)return;const frame=frames().find(f=>f.contentWindow===ev.source);if(!frame)return;const win=ev.source;talked.add(win);let data=ev.data;if(typeof data===\"string\"){try{data=JSON.parse(data);}catch{return;}}if(!data||typeof data!==\"object\")return;if(data.event===\"ready\"){subscribe(frame);return;}// The player could not load or play the video after the press on play.\n// A blocked autoplay (NotAllowedError) is not broken: the\n// visitor just presses play inside the player.\nif(data.event===\"error\"){if(data.data?.name!==\"NotAllowedError\")open();return;}if(data.event===\"timeupdate\"||data.event===\"playProgress\"){progressing.add(win);let w=watches.get(win);if(!w){w={last:-1,watched:0,duration:0};watches.set(win,w);}addProgress(w,data.data);if(w.duration>0&&w.watched>=GATE_PERCENT*w.duration-.05)open();}}window.addEventListener(\"message\",onMessage);return stop;},[editing]);if(editing)return /*#__PURE__*/_jsx(Component,{...props});const ease=\"cubic-bezier(0.16, 1, 0.3, 1)\";const transition=instant?\"none\":shown?`opacity ${REVEAL_MS}ms ${ease}, transform ${REVEAL_MS}ms ${ease}, visibility 0s linear 0s`:`opacity ${REVEAL_MS}ms ${ease}, transform ${REVEAL_MS}ms ${ease}, visibility 0s linear ${REVEAL_MS}ms`;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,\"aria-hidden\":shown?undefined:true,style:{...props.style,opacity:shown?1:0,visibility:shown?\"visible\":\"hidden\",pointerEvents:shown?undefined:\"none\",transform:shown?\"none\":\"translateY(12px)\",transition}});};}// Opt-in submit (funnel /gt-gratistraining). The RelatieSucces tracking script\n// (site head) listens for the submit on document in the capture phase, fires\n// RS_OptIn, stores the lead and posts it to Zapier. This override runs right\n// after it (same node, same phase, registered later), stops Framer's own form\n// handling, so the form needs no Framer \"Send to\" destination, and moves the\n// visitor to the training video once the pixel call has had time to leave.\n// The browser only fires submit when the required fields are valid.\nconst OPTIN_NEXT=\"/gt-trainingvideo\";const OPTIN_DELAY_MS=300;export function withOptInSubmit(Component){return props=>{const editing=useIsStaticRenderer()||RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(editing)return;let leaving=false;const onSubmit=e=>{const form=e.target;if(!form||form.tagName!==\"FORM\"||!form.querySelector('input[name=\"email\"]'))return;e.preventDefault();e.stopPropagation();if(leaving)return;leaving=true;window.setTimeout(()=>window.location.assign(OPTIN_NEXT),OPTIN_DELAY_MS);};document.addEventListener(\"submit\",onSubmit,true);return()=>document.removeEventListener(\"submit\",onSubmit,true);},[editing]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withVideoGateRevealPage\":{\"type\":\"reactHoc\",\"name\":\"withVideoGateRevealPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideoGateReveal\":{\"type\":\"reactHoc\",\"name\":\"withVideoGateReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOptInSubmit\":{\"type\":\"reactHoc\",\"name\":\"withOptInSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOptInFormCard\":{\"type\":\"reactHoc\",\"name\":\"withOptInFormCard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollToForm\":{\"type\":\"reactHoc\",\"name\":\"withScrollToForm\",\"annotations\":{\"framerContract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