1import{importShared as L}from"./__federation_fn_import-CEP4bGph.js";import{G as m,a as S}from"./popupConfig-BpKA2D3Q.js";import"./brandProvider-0hDUM1C1.js";import{u as A}from"./useGTM-6CiILgP4.js";import"./makeLangUrl-BfLIF9Nj.js";import{g as c,s as o,r as I}from"./index3-Cnxw2M5F.js";const{useEffect:f}=await L("react"),{createSearchParams:h,useLocation:D,useNavigate:v}=await L("react-router-dom"),E="firstLoginTimeAfterRegistration",d="secondLoginTimeAfterRegistration",_="thirdLoginTimeAfterRegistration",P=["sportsbook","game","deposit","slots"],R=5*60*1e3,w=24*60*60*1e3,C=()=>{const e=D(),T=v(),{user:n,isAuthenticated:u}=A(),N=c("phoneTriggerStatus");f(()=>{c("phoneTriggerStatus")||o("phoneTriggerStatus","1")},[u]),f(()=>{const t=c("phoneTriggerStatus");if(t!=="finished"){if(n?.phoneNumber){console.log("У полÑзоваÑÐµÐ»Ñ ÐµÑÑÑ Ð½Ð¾Ð¼ÐµÑ ÑелеÑона:",n.phoneNumber),o("phoneTriggerStatus","finished");return}if(!(n?.phoneNumber&&!u)&&n?.firstDeposit){if(t==="1"){console.log("==== ÐÐÐÐ 1 ====",t);const r=(Date.now()+R).toString();o(E,r);const s=setInterval(()=>{const g=Date.now(),i=parseInt(r,10);if(g>=i){if(P.some(a=>e.search.includes(a)||e.pathname.includes(a)))return;T({search:`?${h({[S.POPUP]:m.popup.collectPhone})}`},{replace:!0}),I(E),clearInterval(s)}},2e4);return()=>{clearInterval(s)}}if(t==="2"){console.log("==== ÐÐÐÐ 2 ====",t);const r=c(d);r||o(d,(Date.now()+w).toString());const s=Date.now(),g=parseInt(r,10);if(s>=g){const i=(Date.now()+R).toString();o(_,i);const p=setInterval(()=>{const a=Date.now(),O=parseInt(i,10);if(a>=O){if(P.some(l=>e.search.includes(l)||e.pathname.includes(l)))return;T({search:`?${h({[S.POPUP]:m.popup.collectPhone})}`},{replace:!0}),I(_),o("phoneTriggerStatus","finished")}},2e4);return()=>{clearInterval(p)}}}}}},[n,u,N,e?.search,e?.pathname])};export{E as F,d as S,w as T,C as u};
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.