PageSourceSearch

https://www.aifire.co/assets/useSignupRedirects-CLiwBByh.js

js aifire.co collected 2026-10-04 00:14:11 UTC 2,049 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f86d9ee2-5e36-556a-9232-9204fd5ec997")}catch(e){}}();
3import{a as e}from"./jsx-runtime-CMgEUHpv.js";import{V as t,g as n,m as r}from"./dist-CAHjj65Z.js";import{O as i}from"./components-B8bHjdou.js";import{t as a}from"./local_storage-CooKze2L.js";var o=e(t(),1),s=e=>{let t=n(),s=r(),[c,l]=(0,o.useState)(),[u]=i(),d=c?c?.redirects?.length:0,f=(c?c?.currentIndex+1:0)/d*100,p=()=>{localStorage.removeItem(a.SIGNUP_REDIRECTS)};return(0,o.useEffect)(()=>{let e=localStorage?.getItem(a.SIGNUP_REDIRECTS);if(e){let t=JSON.parse(e).startedAt,n=new Date(t).getTime();new Date().getTime()-n>1e3*60*3?p():l(JSON.parse(e))}else c&&l(void 0)},[s]),(0,o.useEffect)(()=>{if(c){let e=c.redirects.map(e=>e.href),t=s.pathname,n=!e.includes(t),r=u.get(`recommendations`)===`true`;n&&!r&&(p(),l(void 0))}},[c]),{currentStep:c?.redirects?.[c?.currentIndex],nextStep:c?.redirects?.[c?.nextIndex],isInProgress:!!c,redirects:c?.redirects,progress:Number(f.toFixed(1)),nextPage:()=>{if(!c)return t(`/`);let n=c?.redirects?.[c?.currentIndex+1]?.managed_type===`upgrade`,r=e.web_template.external_upgrade_page_href;if(n&&r)return window.open(r,`_blank`),p(),t(`/`);let i=c.redirects.length-1;if(c.nextIndex>i)p(),t(`/`);else{let n=localStorage.getItem(a.EMAIL),r=n&&JSON.parse(n),i=c.redirects[c.nextIndex],o=i.managed_type===`custom`,s=!i.full_url.startsWith(e.url);if(o&&s)try{let e=i.href,n=new URL(e);n.searchParams.set(`email`,r),window.open(n.href,`_blank`),p(),t(`/`)}catch{p(),t(`/`)}else if(o)p(),t(i.href);else{let e=`${i.href}?email=${r}`,n={currentIndex:c.currentIndex+1,nextIndex:c.nextIndex+1,redirects:c.redirects};localStorage.setItem(a.SIGNUP_REDIRECTS,JSON.stringify(n)),t(e)}}}}};export{s as t};
4//# sourceMappingURL=useSignupRedirects-CLiwBByh.js.map
5//# debugId=f86d9ee2-5e36-556a-9232-9204fd5ec997

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.