{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/p5bOxNocFHuuOB0Gd44x/T1qkw2mribjINkRSw3WD/RedirectDrop.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{ControlType,addPropertyControls}from\"framer\";import{motion}from\"framer-motion\";export default function RedirectDrop(props){const{video,delay=500,messageX=0,messageY=0,align=\"center\"}=props;const[shouldRedirect,setShouldRedirect]=useState(false);const redirectedRef=useRef(false);useEffect(()=>{const isFramerPreview=window.location.hostname.includes(\"framer.app\")||window.self!==window.top;if(isFramerPreview){console.log(\"\uD83D\uDFE1 In Framer preview \u2014 skip redirect\");return;}const timer=setTimeout(()=>setShouldRedirect(true),delay);return()=>clearTimeout(timer);},[delay]);useEffect(()=>{if(shouldRedirect&&!redirectedRef.current){redirectedRef.current=true;window.location.replace(\"https://vibyfy-gate-worker.vibyfy-chat.workers.dev/gate/drop\");}},[shouldRedirect]);// Map alignment keywords to flexbox\nconst positionStyle={position:\"absolute\",transform:`translate(${messageX}px, ${messageY}px)`};switch(align){case\"topLeft\":positionStyle.top=\"24px\";positionStyle.left=\"24px\";break;case\"topRight\":positionStyle.top=\"24px\";positionStyle.right=\"24px\";break;case\"bottomLeft\":positionStyle.bottom=\"24px\";positionStyle.left=\"24px\";break;case\"bottomRight\":positionStyle.bottom=\"24px\";positionStyle.right=\"24px\";break;default:positionStyle.top=\"50%\";positionStyle.left=\"50%\";positionStyle.transform+=\" translate(-50%, -50%)\";break;}return /*#__PURE__*/_jsxs(\"div\",{\"aria-label\":\"Redirecting to Drop experience\",style:{width:\"100%\",height:\"100%\",display:\"flex\",background:\"#000\",overflow:\"hidden\",position:\"relative\"},children:[video?/*#__PURE__*/_jsx(\"video\",{src:video,autoPlay:true,loop:true,muted:true,playsInline:true,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",zIndex:1}}):/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:\"#000\",zIndex:0}}),/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:\"easeOut\"},style:{...positionStyle,zIndex:999,color:\"#00ffff\",fontFamily:\"monospace\",fontSize:18,background:\"rgba(0,0,0,0.7)\",padding:\"16px 24px\",borderRadius:\"12px\",boxShadow:\"0 0 12px #0ff\"},children:\"\u26A1 Letting Go\u2026 Entering the Drop....\"})]});}addPropertyControls(RedirectDrop,{video:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"webm\"],title:\"Background MP4\"},delay:{type:ControlType.Number,title:\"Redirect Delay (ms)\",min:100,max:5e3,defaultValue:500},messageX:{type:ControlType.Number,title:\"Overlay X Offset\",defaultValue:0,min:-200,max:200},messageY:{type:ControlType.Number,title:\"Overlay Y Offset\",defaultValue:0,min:-200,max:200},align:{type:ControlType.Enum,options:[\"center\",\"topLeft\",\"topRight\",\"bottomLeft\",\"bottomRight\"],title:\"Overlay Position\",defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RedirectDrop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedirectDrop.map"],
  "mappings": "qKAA2M,SAARA,EAA8BC,EAAM,CAAC,GAAK,CAAC,MAAAC,EAAM,MAAAC,EAAM,IAAI,SAAAC,EAAS,EAAE,SAAAC,EAAS,EAAE,MAAAC,EAAM,QAAQ,EAAEL,EAAW,CAACM,EAAeC,CAAiB,EAAEC,EAAS,EAAK,EAAQC,EAAcC,EAAO,EAAK,EAAEC,EAAU,IAAI,CAAiG,GAA1EC,EAAO,SAAS,SAAS,SAAS,YAAY,GAAGA,EAAO,OAAOA,EAAO,IAAuB,CAAC,QAAQ,IAAI,kDAAsC,EAAE,MAAO,CAAC,IAA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E,CAAC,EAAE,WAAW,CAAC,SAAS,GAAG,KAAK,SAAS,EAAE,MAAM,CAAC,GAAGH,EAAc,OAAO,IAAI,MAAM,UAAU,WAAW,YAAY,SAAS,GAAG,WAAW,kBAAkB,QAAQ,YAAY,aAAa,OAAO,UAAU,eAAe,EAAE,SAAS,+CAAqC,CAAC,CAAC,CAAC,CAAC,CAAE,CAACI,EAAoBnB,EAAa,CAAC,MAAM,CAAC,KAAKoB,EAAY,KAAK,iBAAiB,CAAC,MAAM,MAAM,EAAE,MAAM,gBAAgB,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,sBAAsB,IAAI,IAAI,IAAI,IAAI,aAAa,GAAG,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,aAAa,EAAE,IAAI,KAAK,IAAI,GAAG,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,aAAa,EAAE,IAAI,KAAK,IAAI,GAAG,EAAE,MAAM,CAAC,KAAKA,EAAY,KAAK,QAAQ,CAAC,SAAS,UAAU,WAAW,aAAa,aAAa,EAAE,MAAM,mBAAmB,aAAa,QAAQ,CAAC,CAAC",
  "names": ["RedirectDrop", "props", "video", "delay", "messageX", "messageY", "align", "shouldRedirect", "setShouldRedirect", "ye", "redirectedRef", "pe", "ue", "window", "timer", "positionStyle", "u", "p", "motion", "addPropertyControls", "ControlType"]
}
