"use strict";(self.webpackChunkfunblocks=self.webpackChunkfunblocks||[]).push([[9791],{29791:(e,i,n)=>{n.r(i),n.d(i,{default:()=>f});var o=n(17966),t=n(65834),a=n(96540),l=n(6442),s=n(61225),d=n(24180),r=n(29970),c=n(74848);const f=()=>{const e=(0,l.A)(),i=(0,s.useDispatch)(),n=(0,d.zy)(),f=new Proxy(new URLSearchParams(n.search),{get:(e,i)=>e.get(i)||""});if((0,a.useEffect)(()=>{["flow","markdown","mindmax"].includes(f?.app)&&f.inviteCode&&(i({type:o.kHf,value:f.inviteCode}),setTimeout(()=>window.location.href=`/#/${"flow"===f.app?"aiflow":f.app}`,200))},[f?.app,f?.inviteCode]),(0,a.useEffect)(()=>{r.Ay.send({hitType:"pageview",page:"/invitation-landing",title:"Invitation Message Landing"})},[]),!["flow","markdown","mindmax"].includes(f?.app))return(0,c.jsx)("div",{className:"fill-available full-height",style:{columnGap:"10px",backgroundColor:"#f3f3f3",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:600,padding:48,paddingTop:48,rowGap:20,backgroundColor:"white",borderRadius:20},children:[(0,c.jsx)("div",{style:{fontSize:24,width:"-webkit-fill-available",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:e.formatMessage({id:"welcome_to_funblocks"})}),(0,c.jsx)("div",{children:e.formatMessage({id:"intro_extension"})}),(0,c.jsx)("img",{className:"highlighted-image",width:420,src:"https://www.funblocks.net/assets/img/portfolio/fullsize/extension_rw.png",draggable:!1}),(0,c.jsx)(t.A,{variant:"contained",style:{marginTop:10,alignSelf:"center",textTransform:"none"},onClick:()=>{f.inviteCode&&i({type:o.kHf,value:f?.inviteCode});const e=navigator.userAgent;e.includes("Edg")?window.open("https://microsoftedge.microsoft.com/addons/detail/funblocks-ai-your-ultim/lmmlojdklhcdiefaniakpkhhdmamnigk","_blank"):e.includes("Chrome")&&window.open("https://chromewebstore.google.com/detail/funblocks-ai-your-ultimat/coodnehmocjfaandkbeknihiagfccoid","_blank")},children:e.formatMessage({id:"download_extension_to_participate"})}),(0,c.jsx)("div",{style:{alignSelf:"center"},children:f?.freeTokens&&e.formatMessage({id:"free_coins_awarded"},{coins:f?.freeTokens})})]})})}}}]);
//# sourceMappingURL=index.js.map