PageSourceSearch

https://cdn4.schoolism.com/build/assets/Register-hA9KRasq.js

js schoolism.com collected 2026-09-25 21:29:27 UTC 5,654 bytes, 1 lines download raw bytes

1import{r as V,i as b,T as $,l as q,m as _,c as A,o as f,w as l,b as s,a as i,h as U,d as L,e as T,u as t,j as x,f as w,t as y,n as S}from"./app-DDSQZi8b.js";import{A as C}from"./AuthenticationCard-qSrf5NCf.js";/* empty css                                                                        */import{_ as P}from"./Checkbox-CtsFXOQ7.js";import{_ as m}from"./InputError-D8hO71hd.js";import{_ as d}from"./InputLabel-C8_IfeyK.js";import{_ as R}from"./PrimaryButton-BZDb06ez.js";import{_ as c}from"./TextInput-DBP7fcbj.js";import{_ as D}from"./HomeLayout-wT-69tzw.js";import{k as N}from"./vue-turnstile-CShMob7K.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ApplicationMark-yyuu9Yf4.js";import"./Footer-CX0OMs6l.js";/* empty css                                                                         *//* empty css                                                               */import"./SaleBanner-B6JFvOJG.js";import"./Banner-C8OtZYy7.js";const j={class:"mt-4"},B={class:"mt-4"},E={class:"mt-4"},M={key:0,class:"mt-4"},z={class:"flex items-center"},F=["innerHTML"],H={class:"flex flex-col pt-6 sm:justify-center items-center"},K={class:"flex items-center justify-end mt-4"},me={__name:"Register",setup(O){const n=V(""),g="0x4AAAAAAEz2vhgKbq36R5ti",u=b({}),p=window.location.pathname.split("/"),e=$({name:"",email:"",password:"",password_confirmation:"",terms:!1,plan:p[p.length-1],"cloudflare-turnstile":""}),v=()=>{fbq("track","CompleteRegistration",{name:e.name,email:e.email,content_name:"User Registered",content_ids:[],transaction_id:"",value:0,tax:0,currency:"USD",id:"",content_type:"",quantity:0,item_price:0,course_id:0,course_code:"",instructor_name:""}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"sign_up",name:e.name,email:e.email,ecommerce:{transaction_id:"",value:0,tax:0,shipping:0,currency:"USD",coupon:"",items:[{item_id:"",item_name:"",index:0,item_brand:"",item_category:"",item_category2:"",item_variant:"",item_list_name:"",price:0,quantity:0,coupon:"",course_id:0,course_code:"",instructor_name:""}]}})},h=()=>{fbq("track","ViewContent",{content_name:"Register Page",content_ids:[],transaction_id:"",value:0,tax:0,currency:"USD",id:"",content_type:"",quantity:0,item_price:0,course_id:0,course_code:"",instructor_name:""}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"page_view",ecommerce:{transaction_id:"",value:0,tax:0,shipping:0,currency:"USD",coupon:"",items:[{item_id:"",item_name:"",index:0,item_brand:"",item_category:"",item_category2:"",item_variant:"",item_list_name:"",price:0,quantity:0,coupon:"",course_id:0,course_code:"",instructor_name:""}]}})},k=async()=>{if(!n.value){u["cloudflare-turnstile"].value="Please complete the verification challenge.";return}e["cloudflare-turnstile"]=n.value,e.post(route("register"),{replace:!0,onSuccess:()=>{n.value="",_().then(()=>{v()}),window.location.reload()},onError:a=>{if(a)for(const o in a)a.hasOwnProperty(o)&&(u[o]=a[o]);else console.error("An unexpected error occurred:",a)},onFinish:()=>e.reset("password","password_confirmation")})};return q(()=>{_(()=>{h()})}),(a,o)=>(f(),A(D,null,{default:l(()=>[s(C,null,{default:l(()=>[i("form",{onSubmit:U(k,["prevent"])},[i("div",null,[s(d,{for:"name",value:a.$t("Name")},null,8,["value"]),s(c,{id:"name",modelValue:t(e).name,"onUpdate:modelValue":o[0]||(o[0]=r=>t(e).name=r),type:"text",class:"mt-1 block w-full",required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),s(m,{class:"mt-2",message:t(e).errors.name},null,8,["message"])]),i("div",j,[s(d,{for:"email",value:a.$t("Email")},null,8,["value"]),s(c,{id:"email",modelValue:t(e).email,"onUpdate:modelValue":o[1]||(o[1]=r=>t(e).email=r),type:"email",class:"mt-1 block w-full",required:"",autocomplete:"username"},null,8,["modelValue"]),s(m,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),i("div",B,[s(d,{for:"password",value:a.$t("Password")},null,8,["value"]),s(c,{id:"password",modelValue:t(e).password,"onUpdate:modelValue":o[2]||(o[2]=r=>t(e).password=r),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"new-password"},null,8,["modelValue"]),s(m,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),i("div",E,[s(d,{for:"password_confirmation",value:a.$t("Confirm Password")},null,8,["value"]),s(c,{id:"password_confirmation",modelValue:t(e).password_confirmation,"onUpdate:modelValue":o[3]||(o[3]=r=>t(e).password_confirmation=r),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"new-password"},null,8,["modelValue"]),s(m,{class:"mt-2",message:t(e).errors.password_confirmation},null,8,["message"])]),a.$page.props.jetstream.hasTermsAndPrivacyPolicyFeature?(f(),L("div",M,[s(d,{for:"terms"},{default:l(()=>[i("div",z,[s(P,{id:"terms",checked:t(e).terms,"onUpdate:checked":o[4]||(o[4]=r=>t(e).terms=r),name:"terms",required:""},null,8,["checked"]),i("div",{class:"ms-2",innerHTML:a.$t("checkbox.terms",{terms:a.route("terms.show"),policy:a.route("policy.show")})},null,8,F)]),s(m,{class:"mt-2",message:t(e).errors.terms},null,8,["message"])]),_:1})])):T("",!0),i("div",H,[s(t(N),{"site-key":t(g),modelValue:n.value,"onUpdate:modelValue":o[5]||(o[5]=r=>n.value=r)},null,8,["site-key","modelValue"])]),i("div",K,[s(t(x),{href:a.route("login"),class:"link text-green-sch
1oolism"},{default:l(()=>[w(y(a.$t("Already registered?")),1)]),_:1},8,["href"]),s(R,{class:S(["ms-4",{"opacity-75":t(e).processing}]),disabled:t(e).processing},{default:l(()=>[w(y(a.$t("Register")),1)]),_:1},8,["class","disabled"])])],32)]),_:1})]),_:1}))}};export{me 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.