{"version":3,"file":"RedirectView.DT4h51Tv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/y3UwrFjbUaIJNRMWJ65X/VR2s7tYlZfarvtDZCgoY/RedirectView.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,forwardRef}from\"react\";/**\n * Framer Override: YouTube Redirect with Token Tracking\n *\n * 1. Reads token from URL (?u=xxxx)\n * 2. Stores it in localStorage as \"md_token\"\n * 3. Pushes event to GTM dataLayer\n * 4. Redirects to YouTube\n */export function withYouTubeRedirect(Component){return /*#__PURE__*/forwardRef(function WithYouTubeRedirect(props,ref){useEffect(()=>{const params=new URLSearchParams(window.location.search);const token=params.get(\"u\");if(token){localStorage.setItem(\"md_token\",token);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:\"youtube_redirect\",token:token,page_path:window.location.pathname,page_location:window.location.href});}setTimeout(()=>{window.location.href=\"https://www.youtube.com/@UserInsightHub\";},300);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withYouTubeRedirect\":{\"type\":\"reactHoc\",\"name\":\"withYouTubeRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedirectView.map"],"mappings":"uIAOG,SAAgB,EAAoB,EAAU,CAAC,OAAoB,EAAW,SAA6B,EAAM,EAAI,CAA6Z,OAA5Z,MAAc,CAA0D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAoB,IAAI,IAAI,CAAI,IAAO,aAAa,QAAQ,WAAW,EAAM,CAAC,EAAO,UAAU,EAAO,WAAW,EAAE,CAAC,EAAO,UAAU,KAAK,CAAC,MAAM,mBAAyB,QAAM,UAAU,EAAO,SAAS,SAAS,cAAc,EAAO,SAAS,KAAK,CAAC,EAAE,eAAe,CAAC,EAAO,SAAS,KAAK,2CAA4C,IAAI,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,CAAC,EAAG,sBAPniB,IAAwC"}