import{g as i,t as o,b as a,i as n}from"./web.Bb1N--5L.js";import{f as H,o as O,a as c,g as w,b as $}from"./solid.C2pQeiPA.js";import{g as R}from"./getUserConnectionData.CONs02oP.js";import{s as g}from"./sendEvent.DTgjAu1e.js";import{s as q}from"./sendTracyEvent.ypwlhgc5.js";import{L as A}from"./Link.CO5dYxnV.js";import{T as x}from"./Text.CwGaC8Mn.js";import{T as F}from"./Tooltip._6PWsc5b.js";import"./countdown.Cgcjk_tU.js";import"./extractGAExtraParams.CC5kY18g.js";import"./getSectionInfo.D5UdhNIq.js";import"./getCookieValue.FmDZvggo.js";import"./getExperiments.B3A35r5T.js";import"./constants.BasPOSZ9.js";import"./buildGAExtraAttributes.C4x7a-ry.js";import"./_commonjsHelpers.1rBs7ZY3.js";import"./utils.L6p_jou8.js";import"./throttle.ChPZFoXc.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="1e02d613-83fb-428e-8a5d-7c48399fe24c",t._sentryDebugIdIdentifier="sentry-dbid-1e02d613-83fb-428e-8a5d-7c48399fe24c")}catch{}})();var G=o(""),y=o(""),J=o(""),K=o(" "),Q=o('
'),V=o(""),W=o(""),X=o('');let d;const xe=t=>{const[l,b]=H();return O(async()=>{const r=await R(t.endpoint);b(r);const u=r?.protected;let p=!1;g({event:"status_bar_loaded",status:u?"protected":"unprotected"}),q("show",{elementName:"status_bar",placement:"top",protectionStatus:u?"protected":"unprotected"}),u===!1&&(d?.addEventListener("mouseover",()=>{p||(g({event:"hover",element:d,status:"unprotected"}),p=!0)}),d?.addEventListener("click",()=>{g({event:"click",element:d,extra:{status:"unprotected"}})}))}),(()=>{var r=i(Q),u=r.firstChild,[p,k]=a(u.nextSibling),I=p.nextSibling,[v,D]=a(I.nextSibling),E=v.nextSibling,[S,L]=a(E.nextSibling),C=S.nextSibling,[T,P]=a(C.nextSibling),M=T.nextSibling,[N,U]=a(M.nextSibling);return n(r,c(x,{class:"flex gap-1",get children(){return[(()=>{var e=i(G);return e._$owner=w(),n(e,()=>t.IPText),e})(),(()=>{var e=i(y);return n(e,(()=>{var s=$(()=>!!l()?.ip);return()=>s()?l().ip:t.unknownText})()),e})()]}}),p,k),n(r,c(x,{children:"·"}),v,D),n(r,c(x,{class:"hidden sm:flex gap-1",get children(){return[(()=>{var e=i(J);return e._$owner=w(),n(e,()=>t.ISPText),e})(),(()=>{var e=i(y);return n(e,(()=>{var s=$(()=>!!l()?.isp);return()=>s()?l().isp:t.unknownText})()),e})()]}}),S,L),n(r,c(x,{class:"hidden sm:block",children:"·"}),T,P),n(r,c(x,{class:"flex gap-1",get children(){return[(()=>{var e=i(K),s=e.firstChild,[m,f]=a(s.nextSibling);return m.nextSibling,n(e,()=>t.statusText,m,f),e})(),$(()=>$(()=>!!l())()?$(()=>!!l().protected)()?(()=>{var e=i(V);return n(e,()=>t.protectedText),e})():(()=>{var e=i(X),s=e.firstChild,[m,f]=a(s.nextSibling),j=m.nextSibling,[z,B]=a(j.nextSibling);return n(e,c(A,{get href(){return t.unprotectedLink},ref(_){var h=d;typeof h=="function"?h(_):d=_},gaSlug:"Unprotected",get children(){var _=i(W);return n(_,()=>t.unprotectedText),_}}),m,f),n(e,c(F,{class:"absolute top-[28px] max-w-[288px] group-hover/link:visible z-50 invisible",arrowPlacement:"top",slot:"tooltipText",get children(){return t.tooltipText}}),z,B),e})():t.unknownText)]}}),N,U),r})()};export{xe as StatusBar}; //# sourceMappingURL=StatusBar.B4Agl376.js.map