PageSourceSearch

https://songer.co/build/assets/register-DQhYUUII.js

js songer.co collected 2026-10-03 22:09:18 UTC 1,813 bytes, 1 lines download raw bytes

1import{r,a7 as w,u as h,a8 as E,j as g,a9 as S}from"./app-CuPgLqcu.js";import{A as x,R as C}from"./auth-forms-DNmT2MxH.js";import{v as R}from"./auth-email-validation-D2XD5PY1.js";import"./iconBase-C5nPOaFB.js";import"./index-hKORkSIz.js";import"./trk-tracker-l8EGv0PO.js";import"./label-Btuavich.js";import"./divider-b0kxIQrM.js";import"./input-CrFBzPX3.js";import"./form-error-BYAfiyJD.js";function u(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function c(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var P=typeof window<"u",d=function(e,n){return new URLSearchParams(e).get(n)},k=function(e){var n=window.location,t=r.useState(function(){return d(n.search,e)}),i=t[0],s=t[1];return r.useEffect(function(){var a=function(){s(d(n.search,e))};return u(window,"popstate",a),u(window,"pushstate",a),u(window,"replacestate",a),function(){c(window,"popstate",a),c(window,"pushstate",a),c(window,"replacestate",a)}},[]),i},L=function(){return null};const y=P?k:L;function z({errors:e}){const n=w(),t=h(),i=t.props.has_referral,[s,a]=r.useState(!1),f=y("em"),o=E({name:"",email:"",password:"",password_confirmation:"",terms:!1,is_unlocking:""});r.useEffect(()=>{e!=null&&e.google_auth&&a(!1)},[e]),r.useEffect(()=>{f==="1"&&a(!0)},[f]);function p(){R(o)&&o.post(n("register"),{onSuccess:()=>{var m,l;S((m=t.props.cookieConsent)==null?void 0:m.existingConsent,(l=t.props.cookieConsent)==null?void 0:l.required)}})}const v=()=>{s?p():a(!0)};return g.jsx(x,{handleEmailButtonClick:v,handleCloseModal:()=>{},isUsingEmail:s,errors:e,action:"register",title:"Signup for an account",isProcessing:o.processing,children:s&&!i&&g.jsx(C,{form:o,onSubmit:p})})}export{z as default};

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.