1globalThis.process??={},globalThis.process.env??={};import{l as e,p as t}from"./auth.EL1jKlpi.js";import"./auth.BDV-ZMvl.js";var n=document.getElementById(`signup-modal`),r=document.getElementById(`signup-modal-close`),i=document.getElementById(`signup-form`),a=document.getElementById(`signup-firstname`),o=document.getElementById(`signup-lastname`),s=document.getElementById(`signup-email`),c=document.getElementById(`signup-password`),l=document.getElementById(`signup-gender`),u=document.getElementById(`signup-country`),d=document.getElementById(`signup-terms`),f=document.getElementById(`signup-submit-btn`),p=document.getElementById(`signup-btn-text`),m=document.getElementById(`signup-message`),h=document.getElementById(`signup-redirect`),g=document.getElementById(`signup-pw-toggle`),_=document.getElementById(`signup-pw-eye`),v=document.getElementById(`signup-pw-eye-off`),y=document.getElementById(`signup-login-link`),b=document.getElementById(`signup-facebook-btn`),x=document.getElementById(`signup-google-btn`),S=document.getElementById(`signup-coupon-code`),C=document.getElementById(`signup-ref`),w=document.getElementById(`signup-source`);function T(){let e=new URLSearchParams(window.location.search),t=e.get(`redirect`);t&&(h.value=t===`/dashboard`?`/english/dashboard`:t);let n=e.get(`c`)||e.get(`coupon_code`);n&&(S.value=n);let r=e.get(`ref`);r&&(C.value=r);let i=e.get(`source`);i&&(w.value=i)}function E(){if(e()){window.location.href=`/english/dashboard`;return}T(),n.classList.remove(`hidden`),n.classList.add(`flex`),document.body.style.overflow=`hidden`}function D(){n.classList.add(`hidden`),n.classList.remove(`flex`),document.body.style.overflow=``,m.classList.add(`hidden`)}document.querySelectorAll(`[data-signup-trigger]`).forEach(e=>{e.addEventListener(`click`,e=>{e.preventDefault(),E()})}),r.addEventListener(`click`,D),n.addEventListener(`click`,e=>{e.target===n&&D()}),document.addEventListener(`keydown`,e=>{e.key===`Escape`&&D()}),y.addEventListener(`click`,()=>{D();let e=document.getElementById(`login-modal`);e&&(e.classList.remove(`hidden`),e.classList.add(`flex`),document.body.style.overflow=`hidden`)}),g.addEventListener(`click`,()=>{let e=c.type===`password`;c.type=e?`text`:`password`,_.classList.toggle(`hidden`,e),v.classList.toggle(`hidden`,!e)}),b.addEventListener(`click`,()=>{let e=new URL(`/api/login_facebook`,window.location.origin);e.searchParams.set(`redirect`,h.value||`/english/dashboard`),window.location.assign(e.toString())}),x.addEventListener(`click`,()=>{let e=new URL(`/api/login_google`,window.location.origin);e.searchParams.set(`redirect`,h.value||`/english/dashboard`),window.location.assign(e.toString())}),i.addEventListener(`submit`,async e=>{e.preventDefault(),m.classList.add(`hidden`),f.setAttribute(`disabled`,``),p.textContent=`Signing up...`;let n=await t({firstName:a.value.trim(),lastName:o.value.trim(),email:s.value.trim(),password:c.value,confirmPassword:c.value,gender:l.value,country:u.value,terms:d.checked,redirect:h.value===`/english/dashboard`?void 0:h.value,lang:`en`});f.removeAttribute(`disabled`),p.textContent=`Sign Up`,n.message&&(m.textContent=n.message,m.className=`w-full mb-3 px-4 py-2 rounded text-base dm-sans-regular text-center ${n.success?`text-green-400`:`orange-text`}`,m.classList.remove(`hidden`)),n.success&&setTimeout(()=>{window.location.href=n.redirectUrl??h.value??`/english/dashboard`},600)});
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.