import{r as t,h as e,c as s}from"./p-083180bf.js";import{f as r,n as a}from"./p-a7fc1e02.js";import{J as i,k as o,j as n,i as c}from"./p-d0993bb9.js";const l=class{constructor(e){t(this,e),this.ignored=!0,this.redirectTo="/",this.requireEmailVerification=!1,this.redirectToUnverified="/emailVerification",a(this)}disconnectedCallback(){}render(){const t=!!c()||function({requireEmailVerification:t,redirectTo:e,redirectToUnverified:s}){var a;const c=i(),l=!!(null==c?void 0:c.jwt),h=null===(a=null==c?void 0:c.managedIdentity)||void 0===a?void 0:a.emailVerified,{pathname:d,search:m}=o(),p=new URLSearchParams;return p.append("nextPage",`${d}${m}`),r((()=>l?t&&!h?n.push({pathname:s||e,search:"?"+p.toString()}):void 0:n.push({pathname:e,search:"?"+p.toString()})),[]),!!c}(this);return e(s,{style:{display:t?"contents":"none"}},e("slot",null))}};export{l as sqm_portal_protected_route}