PageSourceSearch

https://www.hachmolog.com/assets/index-Rxu9sIVz.js

js hachmolog.com collected 2026-10-02 00:51:51 UTC 70,849 bytes, 1 lines download raw bytes

1import{m as z}from"./vendor-vuex-DawOPd79.js";import{F as H}from"./FormPageTemplate-BOmenisv.js";import{h as ie,s as g,E as y,_ as M,L as K,a as W,F as re,y as j,X as R,n as A,N as T,au as se,av as oe,aw as le,ax as ae,ay as ne,W as ue,Y as de,az as ce,aA as me,aB as pe,aC as he}from"./index-D6gxZzcs.js";import{u as Y}from"./vendor-vuelidate-core-Bd16nddI.js";import{S as ge}from"./check-circled-Dxn2KBb0.js";import{ak as o,I as l,J as t,N as V,l as fe,i as c,O as d,aN as I,ar as h,G as k,ap as q,F as B,at as ye,ab as be,H as p,Z as ve,aP as E}from"./vendor-vue-runtime-core-O0r61XkH.js";import{U as Se}from"./updog-crying-D_nHdxH2.js";import{F as Ee}from"./FormCheckBox-CAg9eCsE.js";import{F as Z}from"./FormEmail-C1bJUXwF.js";import{F as we}from"./FormPhoneInput-BlkIWpHy.js";import{F as Q}from"./FormErrors-DH-Tegki.js";import{F as Fe}from"./FormPassword-DJQNFToS.js";import{F as _e}from"./FormSchoolSearch-DMlEBt1t.js";import{S as X,L as J,G as Ie}from"./SsoButton-CduFwVJW.js";import{y as Ce}from"./vendor-vue-reactivity-_PYbVOMb.js";import{w as S,e as w,h as ke}from"./vendor-vue-runtime-dom-ngu7FkgX.js";import{q as b,Q as f,P as Ne}from"./vendor-vue-shared-C_oE6NXO.js";import{c as v,f as P,e as O,r as D,a as Ue,m as Pe}from"./vendor-vuelidate-validators-H9iLFjxf.js";import{s as Te}from"./vendor-trevoreyre-autocomplete-vue-BQIcUKHT.js";import{V as Le}from"./verification-CrOvno_1.js";import{i as xe}from"./vendor-validator-CzLPc2u2.js";import{u as Ae}from"./vendor-maz-ui-CcIfur3Z.js";import{b as Be}from"./vendor-exponential-backoff-CTCpx--5.js";import{S as Me}from"./student-avatar-BKRF38Sb.js";import{H as Ve}from"./vendor-lodash-es-Dr2nHDXK.js";import"./vendor-vue-devtools-api-Cow_pXkh.js";import"./vendor-vue-select-Cn2oH4dd.js";import"./vendor-vue-star-rating-D42Atl4Q.js";import"./vendor-vue-compiler-dom-BjqiHA0M.js";import"./vendor-vue-compiler-core-B_m9pfJg.js";import"./vendor-vue-BfDmC2hc.js";import"./vendor-ionic-vue-Cp6ESLlK.js";import"./vendor-ionic-core-DDVmzL1A.js";import"./vendor-ionicons-CnTsVUQ5.js";import"./vendor-gleap-C_nLUrYA.js";import"./vendor-posthog-js-BcP-dMRa.js";import"./vendor-vue-router-BrjMN5S_.js";import"./vendor-axios-D8dNGRK6.js";import"./vendor-err-code-Btjngwyv.js";import"./vendor-promise-retry-CvXhdAiW.js";import"./vendor-retry-Drt1HQ7J.js";import"./vendor-case-DCoxfN6b.js";import"./vendor-dayjs-CMAHqsIS.js";import"./vendor-xstate-gZzxgXGH.js";import"./vendor-socket-io-client-DrXE8q1S.js";import"./vendor-engine-io-client-C-_nnA9b.js";import"./vendor-engine-io-parser-DPmA-eyr.js";import"./vendor-socket-io-component-emitter-Dkula2eQ.js";import"./vendor-socket-io-parser-SgV_gTLD.js";import"./vendor-vueuse-core-C1QNX1u6.js";import"./vendor-vueuse-shared-DO1b_29_.js";import"./vendor-neoconfetti-vue-CCbt6K7L.js";import"./vendor-vue-draggable-resizable-X1h3rUy6.js";import"./vendor-vuetify-DDTyW1fq.js";import"./CleverLogo-BEDLNrnr.js";import"./vendor-libphonenumber-js-CDO7CG9b.js";const De={xmlns:"http://www.w3.org/2000/svg",width:"79",height:"79",fill:"none",viewBox:"0 0 79 79"};function Re(i,e){return o(),l("svg",De,[...e[0]||(e[0]=[t("path",{fill:"#f44747","fill-rule":"evenodd",d:"M41.675 1.057q.08.076.154.157l6.42 6.91 9.175-2.26c2.045-.505 4.104.771 4.6 2.85q.026.108.046.216l1.692 9.417 8.883 2.998c1.997.674 3.078 2.866 2.415 4.896q-.034.105-.074.208l-3.504 8.976 5.803 7.38c1.314 1.671 1.047 4.108-.597 5.444a4 4 0 0 1-.174.133l-7.676 5.537.923 9.492c.207 2.128-1.323 4.024-3.416 4.235l-.218.015-9.316.39-4.35 8.551c-.967 1.9-3.266 2.643-5.134 1.66a4 4 0 0 1-.19-.108l-8.078-4.864-8.076 4.864c-1.81 1.09-4.147.482-5.22-1.358a4 4 0 0 1-.105-.194l-4.353-8.55-9.313-.391c-2.102-.088-3.736-1.892-3.65-4.03l.016-.22.92-9.492-7.673-5.537c-1.716-1.238-2.12-3.656-.902-5.4q.063-.09.131-.177l5.802-7.38-3.502-8.976c-.776-1.989.18-4.24 2.136-5.029a4 4 0 0 1 .204-.075l8.88-2.999L16.05 8.93c.378-2.104 2.363-3.498 4.432-3.113q.108.02.213.046l9.173 2.262 6.422-6.911a3.766 3.766 0 0 1 5.385-.157","clip-rule":"evenodd"},null,-1),t("path",{fill:"#fff",d:"M37.375 45.875h4.25v4.25h-4.25zm0-17h4.25v12.75h-4.25zm2.104-10.625c-11.73 0-21.229 9.52-21.229 21.25s9.499 21.25 21.229 21.25c11.751 0 21.271-9.52 21.271-21.25s-9.52-21.25-21.271-21.25M39.5 56.5c-9.392 0-17-7.607-17-17s7.608-17 17-17 17 7.608 17 17-7.607 17-17 17"},null,-1)])])}const $={render:Re},qe={xmlns:"http://www.w3.org/2000/svg",width:"117",height:"50",fill:"none",viewBox:"0 0 117 50"};function Ge(i,e){return o(),l("svg",qe,[...e[0]||(e[0]=[t("g",{fill:"#16d2aa"},[t("path",{d:"M24.883 0a24.8 24.8 0 0 0-9.524 1.9 24.9 24.9 0 0 0-8.075 5.418 25 25 0 0 0-5.394 8.113A25.1 25.1 0 0 0 0 25a25.06 25.06 0 0 0 7.288 17.678A24.82 24.82 0 0 0 24.883 50c6.6 0 12.928-2.634 17.595-
17.322S49.766 31.63 49.766 25a25.1 25.1 0 0 0-1.89-9.57 25 25 0 0 0-5.394-8.112A24.9 24.9 0 0 0 34.407 1.9 24.8 24.8 0 0 0 24.883 0m0 46.54a21.4 21.4 0 0 1-15.164-6.308A21.6 21.6 0 0 1 3.43 25 21.62 21.62 0 0 1 9.718 9.764a21.42 21.42 0 0 1 15.165-6.317 21.4 21.4 0 0 1 15.16 6.317A21.6 21.6 0 0 1 46.322 25a21.6 21.6 0 0 1-1.617 8.26c-1.074 2.619-2.652 5-4.644 7.006s-4.357 3.597-6.962 4.683a21.4 21.4 0 0 1-8.216 1.644z"}),t("path",{d:"M14.123 30.204a3.37 3.37 0 0 0 2.764 1.341 3.34 3.34 0 0 0 2.763-1.34 5.46 5.46 0 0 0 1.015-3.501v-7.74l4.11-2.494v10.368a8.26 8.26 0 0 1-2.215 6.182 7.777 7.777 0 0 1-5.673 2.16 7.78 7.78 0 0 1-5.674-2.173 8.24 8.24 0 0 1-2.229-6.17v-7.872l4.111-2.495v10.234a5.46 5.46 0 0 0 1.028 3.5M38.846 18.133a6.372 6.372 0 0 1 1.936 5.083c.08.934-.059 1.874-.404 2.745s-.888 1.648-1.585 2.271a9.67 9.67 0 0 1-6.087 1.596h-2.443v2.683l-4.112 2.481V16.47h6.501a9.5 9.5 0 0 1 6.194 1.663m-3.03 7.283a3.58 3.58 0 0 0 .747-2.441 2.61 2.61 0 0 0-.96-2.28 5.3 5.3 0 0 0-2.99-.67h-2.35v6.222h2.763a3.64 3.64 0 0 0 2.79-.831M63.542 25.296l-2.47.992a2.82 2.82 0 0 0-1-1.735 2.8 2.8 0 0 0-1.896-.626 3.1 3.1 0 0 0-2.576 1.14 5.1 5.1 0 0 0-.908 3.233 4.97 4.97 0 0 0 .908 3.192 3.14 3.14 0 0 0 2.576 1.126 3.1 3.1 0 0 0 2.029-.63 3.04 3.04 0 0 0 1.015-1.784l2.416.818a5.07 5.07 0 0 1-1.922 2.683 5.85 5.85 0 0 1-3.485.979 6.02 6.02 0 0 1-4.565-1.717 6.55 6.55 0 0 1-1.642-4.734 6.63 6.63 0 0 1 1.629-4.748 6 6 0 0 1 4.525-1.717 5.18 5.18 0 0 1 3.29.832 5.2 5.2 0 0 1 2.076 2.696M74.743 23.002a4.43 4.43 0 0 1 1.335 3.433v8.047h-2.67v-7.201c0-2.187-.881-3.287-2.67-3.287a3.26 3.26 0 0 0-2.376.98 4.03 4.03 0 0 0-.988 2.95v6.559h-2.67V16.47h2.67v7.578a4 4 0 0 1 1.655-1.69 4.95 4.95 0 0 1 2.35-.55 4.76 4.76 0 0 1 3.364 1.194M78.093 19.542a1.62 1.62 0 0 1-.467-1.234 1.56 1.56 0 0 1 .467-1.207c.374-.31.852-.464 1.335-.43.484-.039.964.115 1.335.43a1.56 1.56 0 0 1 .467 1.207 1.63 1.63 0 0 1-.467 1.234 1.79 1.79 0 0 1-1.335.429 1.8 1.8 0 0 1-1.335-.43m2.67 14.94h-2.67V22.064h2.67zM93.805 29.265h-9.037a4.03 4.03 0 0 0 1.161 2.495 3.47 3.47 0 0 0 2.416.858 4.1 4.1 0 0 0 2.016-.442 2.18 2.18 0 0 0 1.095-1.248l2.202.912q-1.335 2.87-5.34 2.884a6 6 0 0 1-4.551-1.717 6.55 6.55 0 0 1-1.642-4.734 6.73 6.73 0 0 1 1.575-4.761 5.8 5.8 0 0 1 4.445-1.704 5.45 5.45 0 0 1 4.232 1.663 6.38 6.38 0 0 1 1.508 4.426q.013.688-.08 1.368m-7.943-4.493a4.03 4.03 0 0 0-1.094 2.455h6.675a4.03 4.03 0 0 0-1.055-2.428 2.95 2.95 0 0 0-2.216-.872 3.2 3.2 0 0 0-2.31.845M105.766 22.063l-4.912 12.42h-2.897l-4.94-12.42h2.924l3.484 10.26 3.578-10.26zM116.913 29.265h-9.038a4.03 4.03 0 0 0 1.162 2.495 3.48 3.48 0 0 0 2.416.858 4.1 4.1 0 0 0 2.016-.442 2.18 2.18 0 0 0 1.094-1.248l2.203.912q-1.335 2.87-5.34 2.884a6 6 0 0 1-4.552-1.717 6.56 6.56 0 0 1-1.655-4.734 6.73 6.73 0 0 1 1.588-4.762 5.8 5.8 0 0 1 4.446-1.703 5.45 5.45 0 0 1 4.231 1.663 6.38 6.38 0 0 1 1.509 4.426q.013.688-.08 1.368m-7.943-4.493a4.04 4.04 0 0 0-1.095 2.455h6.675a4.13 4.13 0 0 0-1.055-2.428 2.94 2.94 0 0 0-2.215-.872 3.2 3.2 0 0 0-2.31.845"})],-1)])])}const Oe={render:Ge},ze={xmlns:"http://www.w3.org/2000/svg",width:"230",height:"230",fill:"none",viewBox:"0 0 230 230"};function Ke(i,e){return o(),l("svg",ze,[...e[0]||(e[0]=[V('<circle cx="115" cy="115" r="115" fill="#f2fbf9"></circle><ellipse cx="99.789" cy="208" fill="#c4c4c4" fill-opacity=".5" rx="88.5" ry="19"></ellipse><path fill="#e4b652" d="M23.92 107.498S5.451 37.499 54.695 31.69c32.359-3.814 53.456 9.003 64.109 18.238 5.779 5.013 9.754 11.922 11.228 19.606 1.27 6.655 1.96 15.165-.602 22.067 0 0 1.514 12.873 22.381 30.209 0 0 16.629 9.313 24.409 24.258 7.781 14.946 5.131 34.862 5.131 34.862s-1.947 23.611-25.112 27.298c-23.172 3.687-29.182 0-29.182 0s-4.245-2.58 3.36-7.381 12.384-7.008 12.384-7.008-32.541 2.03-43.512 1.657c0 0-2.833 17.152-17.866 18.816s-.886-19.923-.886-19.923-17.507.55-26.883-6.825c0 0 1.325 16.603-11.85 19.74-13.174 3.138-17.42-4.244-14.594-6.824 2.833-2.58 8.842-6.641 8.842-6.641l-6.097-41.228s-4.941-3.433-5.273-37.619z"></path><path fill="#e4b652" d="M181.134 162.636s3.833-3.821 6.557-10.639 7.72-2.644 8.403.769c.669 3.348 3.758 11.738-14.304 20.825l-2.677-5.971z"></path><path fill="#544b43" d="M44.742 32.263s-20.05 7.226-27.586 8.995C9.619 43.028 4.766 42.4 5.009 55.196s6.773 21.897 9.389 22.496c2.71.62 6.415.459 8.125-8.15 1.71-8.607 3.346-19.239 9.734-25.33 5.387-5.14 10.586-8.488 12.066-9.404q.519-.316.946-.769c.757-.797 1.825-2.207-.527-1.776M93.457 35.412s-2.237-4.132 6.09-1.283 15.088 4.885 22.638 5.562 11.708 1.086 13.533 7.734-2.602 18.048-7.151 24.964c-2.501 3.807-4.658 3.18-6.084 1.847-1.109-1.037-1.778-2.496-2.008-4.026-.378-2.53-1.656-8.178-5.806-13.69-3.116-4.132-13.776-17.788-21.212-21.108"></path><path stroke="#544b43" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.6" d="M42.195 77.916s10.708-11.167 25.22-11.731 22.497 11.731 22.497 11.731"></path><path fill="#544b43" d="M66.5 72.043s-9.192-1.044-8.226 6.852c.115.938.69 1.798 1.555 2.087 1.041.345 2.772.212 5.51-1.699 0 0 .973-.924 2.122.05 1.149.965 2.339 2.608 5.124 1.72 1.142-.367 1.79-1.213 2.163-2.094.75-1.784.31-3.927-1.156-5.133-1.237-1.015-3.38-1.917-7.091-1.783"></path>
1<path fill="#16d2aa" d="M22.113 98.631s52.86 21.514 107.328-7.14l3.452 9.007s-64.204 31.503-110.652 7.073z"></path><path fill="#fff" d="M68.69 138.053c-5.177 0-9.375-4.492-9.375-10.033s4.198-10.033 9.376-10.033 9.375 4.492 9.375 10.033-4.197 10.033-9.375 10.033"></path><path fill="#16d2aa" d="M68.69 117.765c5.779 0 10.47 4.701 10.47 10.507 0 5.8-4.684 10.508-10.47 10.508-5.78 0-10.471-4.701-10.471-10.508s4.69-10.507 10.47-10.507m0 19.556c4.981 0 9.024-4.056 9.024-9.056s-4.036-9.055-9.025-9.055c-4.981 0-9.024 4.049-9.024 9.055.007 5.007 4.043 9.056 9.024 9.056"></path><path fill="#fff" d="M68.69 137.329c-4.983 0-9.023-4.055-9.023-9.056 0-5.002 4.04-9.056 9.024-9.056s9.024 4.054 9.024 9.056-4.04 9.056-9.024 9.056"></path><path fill="#16d2aa" d="M64.177 130.455q.434.541 1.162.543c.728.002.872-.183 1.156-.543.284-.359.426-.854.426-1.472v-3.256l1.73-1.044v4.355q0 1.69-.932 2.598c-.622.603-1.413.909-2.386.909q-1.45 0-2.393-.916c-.622-.611-.94-1.472-.94-2.591v-3.311l1.73-1.044v4.294c.014.63.163 1.119.447 1.478M74.578 125.381c.541.462.818 1.174.818 2.137s-.277 1.662-.838 2.11-1.413.665-2.555.665h-1.034v1.126l-1.73 1.044v-7.78h2.737q1.783.008 2.602.698m-1.27 3.06c.21-.231.31-.577.31-1.025q0-.67-.405-.956c-.405-.286-.69-.285-1.257-.285h-.987v2.618h1.162q.862.002 1.177-.352"></path><path fill="#b5e0d6" d="M68.926 115.648s.981 1.638.044 2.523c-.944.892.49.296.49.296s.876-1.626 0-2.819c0 0-.186-.65-.534 0M67.746 116.932l.3-.071v.854l-.3.047z"></path><g fill="#c58f2c"><path d="M53.67 188.093s-.312-15.806.533-17.717c.838-1.91 3.09-.712-.534 17.717M80.535 194.402s1.86-17.758 1.717-22.82c-.149-5.386 2.163 10.342-1.717 22.82M99.285 195.509s1.677-19.126 4.232-21.185-4.232 21.185-4.232 21.185M142.726 193.846s-10.194-3.095-9.883-12.14 7.422-16.863 7.422-16.863-19.515 22.961 2.461 29.003"></path></g><path stroke="#1e1c1a" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M43.133 67.381s.743-3.13 3.792-3.278c3.055-.141 3.69 2.115 3.69 2.115M83.117 66.49s1.38-2.89 4.387-2.334c3.015.557 3.157 2.898 3.157 2.898"></path><path fill="#da4351" d="M62.83 87.489s.721 4.518 3.313 4.872c2.586.357 3.802-3.998 3.802-3.998l-3.673-3.088z"></path><path stroke="#544b43" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.6" d="M66.356 78.889v5.992s1.338 2.87 6.205 3.039c.338.014.676-.036 1.007-.127 1.061-.29 3.353-1.086 4.232-2.757M66.351 84.873s-2.258 4.047-5.88 3.046-3.678-3.046-3.678-3.046"></path>',17)])])}const We={render:Ke},He={xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",fill:"none",viewBox:"0 0 100 100"};function je(i,e){return o(),l("svg",He,[...e[0]||(e[0]=[V('<filter id="19a" width="51.333" height="62.467" x="25" y="22.7" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dx="3" dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_5689_1942"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dx="1" dy="1"></feOffset><feGaussianBlur stdDeviation=".65"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="effect1_dropShadow_5689_1942" result="effect2_dropShadow_5689_1942"></feBlend><feBlend in="SourceGraphic" in2="effect2_dropShadow_5689_1942" result="shape"></feBlend></filter><clipPath id="20b"><rect width="43.333" height="54.167" x="26" y="23" rx="6"></rect></clipPath><circle cx="50" cy="50" r="50" fill="#fed766"></circle><path fill="#f44747" d="M79.167 36.542H75.75a1 1 0 0 0-1 1v14.25a1 1 0 0 0 1 1h3.417a1 1 0 0 0 1-1v-14.25a1 1 0 0 0-1-1M75.75 58.208h3.417a1 1 0 0 1 1 1v3.417a1 1 0 0 1-1 1H75.75a1 1 0 0 1-1-1v-3.417a1 1 0 0 1 1-1"></path>
1<g filter="url(#19a)"><g clip-path="url(#20b)"><rect width="43.333" height="54.167" x="26" y="23" fill="#fff" rx="6"></rect><path fill="#1855d1" d="M47.667 33.833c-1.11 1.68-2.032 3.494-2.6 5.417h5.2c-.57-1.923-1.463-3.737-2.6-5.417m-3.521.596c-2.492.84-4.604 2.573-5.85 4.821h3.954c.488-1.68 1.083-3.304 1.896-4.82m7.014 0c.813 1.517 1.436 3.142 1.923 4.821h3.955c-1.246-2.248-3.386-3.954-5.878-4.82m-13.975 7.53c-.216.866-.352 1.76-.352 2.708s.136 1.841.352 2.708h4.577c-.108-.894-.19-1.787-.19-2.708s.082-1.815.19-2.709zm7.313 0a18 18 0 0 0-.217 2.708c0 .92.081 1.814.217 2.708h6.337c.109-.894.217-1.787.217-2.708s-.108-1.842-.217-2.709zm9.073 0c.108.893.19 1.787.19 2.708 0 .92-.082 1.814-.19 2.708h4.577c.217-.867.352-1.76.352-2.708s-.135-1.842-.352-2.709zm-15.275 8.124c1.246 2.248 3.358 3.955 5.85 4.821-.813-1.517-1.408-3.114-1.896-4.82zm6.77 0c.57 1.95 1.49 3.738 2.6 5.417 1.138-1.68 2.032-3.467 2.6-5.417zm8.017 0c-.487 1.707-1.11 3.305-1.923 4.821 2.492-.867 4.632-2.573 5.878-4.82zM31.417 23a5.32 5.32 0 0 0-3.82 1.598A5.32 5.32 0 0 0 26 28.417V71.75c0 1.435.569 2.817 1.598 3.819a5.33 5.33 0 0 0 3.819 1.598h32.5a5.33 5.33 0 0 0 3.818-1.598 5.32 5.32 0 0 0 1.598-3.819V28.417a5.32 5.32 0 0 0-1.598-3.82A5.32 5.32 0 0 0 63.917 23zm16.25 8.125c3.602 0 7.041 1.435 9.587 3.954a13.64 13.64 0 0 1 3.954 9.588 13.64 13.64 0 0 1-3.954 9.587 13.64 13.64 0 0 1-9.587 3.954 13.64 13.64 0 0 1-9.588-3.954 13.64 13.64 0 0 1-3.954-9.587c0-3.602 1.435-7.042 3.954-9.588a13.64 13.64 0 0 1 9.588-3.954m13.541 32.5v5.417H34.125v-5.417z"></path><rect width="28" height="6.1" x="34" y="63" fill="#2a4494" rx="1"></rect></g></g>',5)])])}const Ye={render:je},Ze={class:"container uc-column justify-center items-center"},Qe={class:"footer"},Xe=fe({__name:"InternationalMessage",setup(i){const e=()=>{g.captureEvent(y.USER_CLICKED_VOLUNTEER_SIGN_UP)};return(m,a)=>{const r=h("router-link");return o(),l("div",Ze,[c(Ce(Ye)),a[3]||(a[3]=t("div",{class:"header uc-column"},[t("span",{class:"title"},"UPchieve isn’t available in your region yet"),d(" We currently only serve students in the U.S. ")],-1)),a[4]||(a[4]=t("div",{class:"explainer"},[t("span",{class:"bold"},"Want to make a difference for others—and boost your college application?"),d(" You can still get involved by volunteering as a tutor, no matter where you live! No experience is required, and you can choose your own hours. ")],-1)),c(ie,{variant:"primary-blue",showArrow:!1,onClick:e,routeTo:"/sign-up/volunteer/account"},{default:I(()=>[...a[0]||(a[0]=[d(" Volunteer with UPchieve ",-1)])]),_:1}),t("div",Qe,[a[2]||(a[2]=d(" If you live in the U.S. and are seeing this message, please check that you’re not using a VPN. Still need help? ",-1)),c(r,{to:"/contact",class:"uc-link"},{default:I(()=>[...a[1]||(a[1]=[d("Contact Us",-1)])]),_:1})])])}}}),ee=M(Xe,[["__scopeId","data-v-f4d4b858"]]),Je={name:"sign-up-forms",components:{CheckCircled:ge,ErrorBadge:$,HeaderLogoTeal:Oe,UpdogCrying:Se,UpdogSmiling:We,FormCheckBox:Ee,FormEmail:Z,FormInput:re,FormPhoneInput:we,FormErrors:Q,FormPassword:Fe,FormSchoolSearch:_e,FormSelect:W,FormPageTemplate:H,Loader:K,LineDivider:J,SsoButton:X,InternationalMessage:ee},props:{getPageDetails:{type:Function,required:!0}},setup(){return{v$:Y()}},data(){return{form:{},error:null,isSubmitting:!1,pageDetails:{}}},async created(){const i=this.$route.query.error;i&&(this.error=i,delete this.$route.query.error),this.loadPageDetails(this.$route)},watch:{$route(i,e){if(i.params?.reset){for(const m of i.params.reset)delete this.form[m],delete i.params[m],delete i.query[m];delete i.params.reset}this.loadPageDetails(i,e)}},methods:{async submitWithValidation(i){await this.v$.$validate()&&await this.submit(i)},async submit(i){this.isSubmitting=!0,this.error=null;try{const[e,m]=await i(this.getSubmitData());if(m){this.error=m;return}e&&this.$router.replace(e)}catch{this.error="Unknown server error"}finally{this.isSubmitting=!1}},getSubmitData(){return{...this.form,...this.$route.query,...this.$route.params}},async loadPageDetails(i,e){this.pageDetails=await this.getPageDetails(i,e)}
1,isDisabled(i){return i.isDisabledOnInvalid?this.v$.$error||!!this.v$.$silentErrors?.length:!1}}};function $e(i,e,m,a,r,s){const F=h("FormErrors"),N=h("loader"),U=h("form-page-template");return o(),k(U,{layout:r.pageDetails.backgroundLayout,panelImg:r.pageDetails.panelImage,hideLogo:"true"},{default:I(()=>[c(F,{errors:r.error?[r.error]:[]},null,8,["errors"]),t("form",{id:"form",class:b(["h-full form",r.pageDetails.classes]),onSubmit:e[0]||(e[0]=S(C=>s.submitWithValidation.bind(r.pageDetails.submitAction),["prevent"])),autocomplete:"off"},[(o(!0),l(B,null,q(r.pageDetails.rows,(C,_)=>(o(),l("div",{class:b(["uc-row el-gap",C.classes]),key:`${_}_${i.$route.path}`},[(o(!0),l(B,null,q(C.elements,(n,L)=>(o(),l(B,null,[!n.showIf||n.showIf(r.form)?(o(),k(ye(n.element),be({key:`${_}-${L}_${i.$route.path}`,class:n.classes,disabled:s.isDisabled(n)},{ref_for:!0},n.props,{"model-value":n.props?.name?r.form[n.props.name]:void 0,"onUpdate:modelValue":x=>{n.props?.name&&(r.form[n.props.name]=x)},onClick:x=>n.submitAction&&n.isDisabledOnInvalid?s.submitWithValidation(n.submitAction):n.submitAction?s.submit(n.submitAction):null}),{default:I(()=>[d(f(n.content),1)]),_:2},1040,["class","disabled","model-value","onUpdate:modelValue","onClick"])):p("",!0)],64))),256))],2))),128))],34),r.isSubmitting?(o(),k(N,{key:0,overlay:""})):p("",!0)]),_:1},8,["layout","panelImg"])}const et=M(Je,[["render",$e],["__scopeId","data-v-962dfdc4"]]),tt={components:{Autocomplete:Te,VerificationBadge:Le,ErrorBadge:$,GoogleLogo:Ie,FormErrors:Q,FormEmail:Z,FormSelect:W,InternationalMessage:ee},setup(){return{v$:Y()}},validations(){return{eligibility:{currentGrade:{required:v.withMessage("Required",P)},highSchool:{required:v.withMessage("Required",P)},zipCode:{required:v.withMessage("Required",P),minLength:v.withMessage("Must be 5 characters long",Pe(5)),maxLength:v.withMessage("Must be 5 characters long",Ue(5))},studentEmail:{required:v.withMessage("Required",D(!this.skipEligibilityEmail)),email:v.withMessage("Not a valid email address",O)},parentGuardianEmail:{required:v.withMessage("Required",D(this.useParentGuardianSignUpFlow)),email:v.withMessage("Not a valid email address",O)},studentFirstName:{required:v.withMessage("Required",D(this.useParentGuardianSignUpFlow))},studentLastName:{required:v.withMessage("Required",D(this.useParentGuardianSignUpFlow))}},profile:{firstName:{required:v.withMessage("Required",P)},lastName:{required:v.withMessage("Required",P)}},credentials:{email:{required:v.withMessage("Required",P),email:v.withMessage("Not a valid email address",O)},password:{required:v.withMessage("Required",P),isPasswordValid:v.regex(this.PASSWORD_PATTERN)}}}},data(){return{gradeLevels:ue,msg:"",errors:[],invalidInputs:[],eligibility:{currentGrade:"",highSchool:{},zipCode:"",studentFirstName:"",studentLastName:"",studentEmail:"",parentGuardianEmail:""},credentials:{email:"",password:""},profile:{firstName:"",lastName:""},step:"",hasStartedSearchingForSchool:!1,hasEnteredEmail:!1,hasEnteredZipCode:!1,hasEnteredFirstName:!1,hasEnteredLastName:!1,hasEnteredPassword:!1,isCollegeStudent:!1,isReferred:!1,isSubmittingAccountForm:!1,partnerKey:void 0,studentPartner:void 0,isCollegeConfidential:!1,showBigFutureIntroCopy:!1,showCodeDotOrgIntroCopy:!1,skipEligibilityEmail:!1,useParentGuardianSignUpFlow:!1,showBigFutureEmailFirstFlow:!1,isEmailEligibilityHidden:!1,showBigFutureUpdatedEligibilityIntroCopy:!1,eligibilitySubStep:""}},async mounted(){this.$route.params.partner&&(this.studentPartner=this.$route.params.partner,this.partnerKey=this.studentPartner.key);const i=this.$route.query;if(this.shouldUseParentGuardianSignUpFlow(i)&&(this.useParentGuardianSignUpFlow=!0),localStorage.removeItem("isSSOSignUpRedirect"),this.isFailureRedirect()?(this.eligibility={currentGrade:i.gradeLevel,highSchool:{upchieveId:i.schoolId},zipCode:i.zipCode,email:i.email},this.partnerKey=i.studentPartnerOrgKey,this.credentials.email=i.email,this.errors.push(this.$route.query.error??"Failed to sign up with Google. Please use password instead."),this.step="account"):this.$route.query.isCleverStudentEmailRedirect==="true"?(this.isCleverStudentRedirect=!0,this.step="account"):this.isReferred?this.step="referred":this.eligibilityPage(i),i.utm_source==="collegeconfidential"&&(this.isCollegeConfidential=!0),i.partner&&(this.partnerKey=i.partner,this.partnerKey==="bigfuture"&&this.isBfIntroCopyEnabled&&this.bfIntroCopy&&(this.showBigFutureIntroCopy=!0),this.partnerKey==="bigfuture"&&this.isBigFutureEmailFirstFlowActive&&(this.showBigFutureEmailFirstFlow=!0,this.isEmailEligibilityHidden=!0,g.captureEvent(y.BIG_FUTURE_STUDENT_SAW_EMAIL_ONLY_FLOW,{partnerKey:this.partnerKey})),this.skipEligibilityEmail=this.eligibilityEmail&&this.partnerKey==="bigfuture",this.skipEligibilityEmail&&g.captureEvent(y.SKIPPING_ELIGIBILITY_EMAIL),this.partnerKey==="bigfuture"&&this.isBigFutureTwoQuestionEligiblityFlowActive&&(this.eligibilitySubStep="primary",this.skipEligibilityEmail=!0,g.captureEvent(y.BIG_FUTURE_STUDENT_SAW_GRADE_AND_SCHOOL_ONLY_FLOW,{partnerKey:this.partnerKey}))),!await this.isDomesticIpAddress())return this.internationalPage();localStorage.getItem(ne)&&g.captureEvent(y.INELIGIBLE_STUDENT_RETURNED_TO_S
1IGN_UP,{partnerKey:this.partnerKey})},computed:{...z({ccIntroCopy:"featureFlags/ccIntroCopy",isBfIntroCopyEnabled:"featureFlags/isBfIntroCopyEnabled",bfIntroCopy:"featureFlags/bfIntroCopy",eligibilityEmail:"featureFlags/eligibilityEmail",isBigFutureEmailFirstFlowActive:"featureFlags/isBigFutureEmailFirstFlowActive",isBigFutureTwoQuestionEligiblityFlowActive:"featureFlags/isBigFutureTwoQuestionEligiblityFlowActive",showNewInternationalMessage:"featureFlags/showNewInternationalMessage"}),trimCurrentGrade(){return this.eligibility.currentGrade.split(" ")[0]},title(){return this.isCollegeStudent?"Oops, looks like you're not a middle or high school student!":"Sorry, we can't verify your eligibility yet."},CANNOT_FIND_SCHOOL_TEXT(){return"Can't find your school?"},PASSWORD_PATTERN(){return/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/},customEligibilityHeader(){return this.studentPartner?this.isCodeDotOrgStudent?"Welcome to UPchieve!":`Welcome ${this.studentPartner.name} ${this.getFormAddressee}!`:""},isCodeDotOrgStudent(){return this.studentPartner?.key==="code-org"},getIneligibleCanAppealText(){return ae(this.useParentGuardianSignUpFlow)},getFormLabelIdentifierPossessive(){return le(this.useParentGuardianSignUpFlow)},getFormLabelIdentifier(){return oe(this.useParentGuardianSignUpFlow)},getFormAddressee(){return se(this.useParentGuardianSignUpFlow)}},watch:{"eligibility.email":function(i,e){i&&!e&&(this.hasEnteredEmail||g.captureEvent(y.STUDENT_ENTERED_EMAIL),this.hasEnteredEmail=!0)},"eligibility.studentEmail":async function(i,e){i&&!e&&(this.hasEnteredEmail||g.captureEvent(y.STUDENT_ENTERED_EMAIL),this.hasEnteredEmail=!0),!this.cannotSubmitForm(this.v$.eligibility.studentEmail)&&this.isBigFutureEmailFirstFlowActive&&this.partnerKey==="bigfuture"&&await this.submitTypedBigFutureEmail()},"eligibility.zipCode":function(i,e){i&&!e&&(this.hasEnteredZipCode||g.captureEvent(y.STUDENT_ENTERED_ZIP_CODE),this.hasEnteredZipCode=!0)},"profile.firstName"(i,e){i&&!e&&(this.hasEnteredFirstName||g.captureEvent(y.STUDENT_ENTERED_FIRST_NAME),this.hasEnteredFirstName=!0)},"profile.lastName"(i,e){i&&!e&&(this.hasEnteredLastName||g.captureEvent(y.STUDENT_ENTERED_LAST_NAME),this.hasEnteredLastName=!0)},"credentials.password"(i,e){i&&!e&&(this.hasEnteredPassword||g.captureEvent(y.STUDENT_ENTERED_PASSWORD),this.hasEnteredPassword=!0)}},methods:{isFailureRedirect(){return!!this.$route.query.provider},eligibilityPage(i){this.step="eligibility";const e={path:"/sign-up/student/eligibility",query:i};this.$route.path!==e.path&&this.$route.query!==e.query&&this.$router.replace(e).catch(m=>{A.noticeError(m)})},shouldUseParentGuardianSignUpFlow(i){return Object.keys(i).some(e=>e.trim()==="parent")},async isDomesticIpAddress(){try{return await T.checkIpAddress(),!0}catch{return!1}},internationalPage(){this.step="international",this.$router.replace("/sign-up/student/international")},async hasEligibilityFormErrors(){return this.errors=[],this.eligibility.currentGrade||this.errors.push("You must select your grade level."),!!this.errors.length},async submitReferralEligibilityForm(){await this.hasEligibilityFormErrors()||this.accountPage()},async submitEligibilityForm(){g.captureEvent(y.STUDENT_CLICKED_CHECK_MY_ELIGIBILITY,{partnerKey:this.partnerKey}),this.msg="",!await this.hasEligibilityFormErrors()&&T.checkStudentEligibility({email:this.eligibility.studentEmail,gradeLevel:this.trimCurrentGrade,referredByCode:window.localStorage.getItem("upcReferredByCode"),schoolId:this.eligibility.highSchool.upchieveId,zipCode:this.eligibility.zipCode}).then(async i=>{const e=i.data.isEligible;if(i.data.isExistingUser||!1){const r=new URLSearchParams({message:"Looks like you already have an UPchieve account, please sign in!",email:this.eligibility.studentEmail});this.$router.push("/login?"+r.toString());return}if(g.captureEvent(e?y.ELIGIBILITY_ELIGIBLE:y.ELIGIBILITY_INELIGIBLE,{partnerKey:this.partnerKey}),i.data.isCollegeStudent&&(this.isCollegeStudent=!0),this.credentials.email=this.eligibility.studentEmail,this.useParentGuardianSignUpFlow?await R.registerStudent({email:this.eligibility.studentEmail,firstName:this.eligibility.studentFirstName,gradeLevel:this.trimCurrentGrade,lastName:this.eligibility.studentLastName,parentGuardianEmail:this.eligibility.parentGuardianEmail,schoolId:this.eligibility.highSchool.upchieveId,studentPartnerOrgKey:this.partnerKey,zipCode:this.eligibility.zipCode?this.eligibility.zipCode:null}).then(()=>{this.step="parentGuardianConfirmation",g.captureGoogleAnalyticsEvent("student_sign_up")}).catch(r=>{this.errors.push(r?.response?.data?.err??"Failed: Please try again."),r?.response?.status!==422&&A.noticeError(r)}):(this.step="eligible",this.$router.replace("/sign-up/student/eligible")),!await this.isDomesticIpAddress())return this.internationalPage()}).catch(i=>{const e=i.message??"Unknown server error";this.errors.push(e)})},async submitBigFutureEmail(){this.errors=[],g.captureEvent(y.BIG_FUTURE_SUBMITTED_EMAIL_IN_EMAIL_ONLY_FLOW,{partnerKey:this.partnerKey}),!this.eligibility.studentEmail&&!this.skipEligibilityEmail&&this.errors.push("An email address is required.");try{await T.saveBigFutureEmailForStudy(this.eligibility.studentEmail),this.showBigFutureEmailFirstFlow=!1,this.showBigFutureUpdatedEligibilityIntroCopy=!0}catch(i){const e=i.body&&(i.body.err||i.body.message)||"Unknown server error";this.errors.push(e)}},async submitTypedBigFutureEmail(){try{await T.saveBigFutureEmailForStudy(this.eligibility.studentEmail)}catch{}},async accountPage(){if(this.step="account",this.$router.replace("/sign-up/student/account"),!await this.isDomesticIpAddress())return this.internationalPage()},ineligibleContinue(){g.captureEvent(y.STUDENT_CLICKED_STUDENT_ACCESS_PAGE),window.location="https://upchieve.org/request-access"},autocompleteSchool(i){return this.eligibility.highSchool={},new Promise(e=>{if(i.length<3)return e([]);this.hasStartedSearchingForSchool||g.captureEvent(y.STUDENT_SEARCHED_SCHOOL),this.hasStartedSearchingForSchool=!0;const m={cantFindSchool:!0};T.searchSchool({query:i}).then(a=>a.data.results).then(a=>{a.push(m),e(a)})})},getSchoolDisplayName(i){if(!i.cantFindSchool)return`${i.name} (${i.city}, ${i.state})`},handleSelectHighSchool(i){i.value===this.CANNOT_FIND_SCHOOL_TEXT?g.captureEvent(y.STUDENT_CLICKED_CANT_FIND_SCHOOL):(g.captureEvent(y.STUDENT_SELECTED_SCHOOL),this.eligibility.highSchool=i||{})},hasAccountFormErrors(i){return this.errors=[],i?this.credentials.email||this.errors.push("Your email is required."):((!this.profile.firstName||!this.profile.lastName)&&this.errors.push("You must enter your first and last name."),this.credentials.password||this.errors.push("A password is required.")),!!this.errors.length},async submitAccountForm(i){if(this.isSubmittingAccountForm=!0,this.hasAccountFormErrors(i)){this.isSubmittingAccountForm=!1;return}try{const e={email:this.credentials.email,firstName:this.profile.firstName,gradeLevel:this.trimCurrentGrade||void 0,lastName:this.profile.lastName,password:this.credentials.password,referredByCode:window.localStorage.getItem("upcReferredByCode"),schoolId:this.eligibility.highSchool.upchieveId,studentPartnerOrgKey:this.partnerKey,validator:this.$route.query.validator||void 0,zipCode:this.eligibility.zipCode?this.eligibility.zipCode:null};await R.registerStudent(e),g.captureGoogleAnalyticsEvent("student_sign_up"),window.localStorage.removeItem("upcReferredByCode"),this.$router.replace("/dashboard")}catch(e){const m=e?.response?.data?.err??"Failed: Please try again.";this.errors.push(m),m&&m.match(/^Password/)&&g.captureEvent(y.STUDENT_ENTERED_INVA
1LID_PASSWORD),e?.response?.status!==422&&A.noticeError(e)}finally{this.isSubmittingAccountForm=!1}},signUpWithGoogle(){g.captureEvent(y.USER_CLICKED_SIGN_UP_WITH_GOOGLE),localStorage.setItem("isSSOSignUpRedirect",!0);const i={email:this.eligibility.studentEmail,errorRedirect:"/sign-up/student/account",gradeLevel:this.trimCurrentGrade,isLogin:!1,provider:"google",referredByCode:window.localStorage.getItem("upcReferredByCode"),schoolId:this.eligibility.highSchool.upchieveId,studentPartnerOrgKey:this.partnerKey,zipCode:this.eligibility.zipCode};this.eligibility.email||delete i.email,this.eligibility.zipCode||delete i.zipCode;const e=new URLSearchParams(i).toString(),m=`${j.serverRoot}/auth/sso?${e}`;window.location.replace(m)},hasFormValidationError(i){return!!i.$errors.length},cannotSubmitForm(i){return!!i.$errors.length||!!i.$silentErrors.length},getFormValidationError(i){return i.$errors.map(e=>e.$message).join(", ")}}},it={key:0},rt={key:0,class:"uc-form-header","data-testid":"eligibility-title"},st={key:1},ot={class:"uc-form-text"},lt={key:2},at={key:3},nt={key:4},ut={key:0},dt={key:1},ct={key:2},mt={key:3},pt={key:5,"data-testid":"code-dot-org-custom-copy"},ht=["disabled"],gt={class:"uc-form-element"},ft={class:"uc-form-element"},yt={class:"uc-row justify-between"},bt={key:0,class:"error-caption"},vt={key:0,id:"ph-no-capture",class:"result"},St={key:1,target:"_blank",href:"https://upchieve.org/cant-find-school"},Et={class:"result"},wt=["disabled"],Ft={class:"uc-form-element"},_t={class:"uc-row justify-between"},It={key:0,class:"error-caption"},Ct=["placeholder","aria-label"],kt=["disabled"],Nt={class:"uc-form-element"},Ut=["disabled"],Pt={class:"uc-form-text below text-center"},Tt={key:1,class:"uc-column justify-center items-center h-full"},Lt={key:2,class:"uc-column justify-center items-center h-full"},xt={class:"uc-form-header center"},At={key:0,class:"small-paragraph"},Bt={key:1,class:"small-paragraph","data-testid":"eligibility-appeal-message"},Mt={key:2,class:"small-paragraph"},Vt={key:3,id:"pg-confirmation-message",class:"uc-form","data-testid":"pg-confirmation-message"},Dt={class:"uc-column justify-center items-center h-full center"},Rt={id:"ph-no-capture","data-e2e-ignore":""},qt={key:4},Gt=["disabled"],Ot={key:5},zt={class:"uc-form-text"},Kt=["disabled"],Wt={class:"uc-form-element"},Ht={class:"uc-row justify-between"},jt={key:0,class:"error-caption"},Yt=["placeholder","aria-label"],Zt={class:"uc-form-element"},Qt={class:"uc-row justify-between"},Xt={key:0,class:"error-caption"},Jt=["placeholder","aria-label"],$t={key:0,class:"uc-form-element"},ei={class:"uc-row justify-between"},ti={key:0,class:"error-caption"},ii=["placeholder","aria-label"],ri={class:"uc-form-element"},si={class:"uc-row justify-between"},oi={key:0,class:"error-caption"},li=["disabled"],ai={key:6},ni={key:1,class:"uc-column justify-center items-center"},ui={class:"international-contact-us"},di={key:7,class:"uc-form-body"};function ci(i,e,m,a,r,s){const F=h("FormErrors"),N=h("FormEmail"),U=h("FormSelect"),C=h("autocomplete"),_=h("router-link"),n=h("verification-badge"),L=h("error-badge"),x=h("google-logo"),G=h("InternationalMessage");return r.step==="eligibility"||r.step==="referred"?(o(),l("div",it,[c(F,{errors:r.errors},null,8,["errors"]),r.isCollegeConfidential?p("",!0):(o(),l("h1",rt,f(s.customEligibilityHeader||"Awesome! Let's check if we're a match"),1)),r.showBigFutureIntroCopy&&!r.showBigFutureUpdatedEligibilityIntroCopy&&r.eligibilitySubStep!=="secondary"?(o(),l("div",st,[t("p",ot,f(i.bfIntroCopy),1)])):p("",!0),r.eligibilitySubStep==="secondary"?(o(),l("div",lt,[...e[23]||(e[23]=[t("p",{class:"uc-form-text"}," You weren't eligible based on your school 😢, but lots of kids qualify based on their zip code—let's see if we can give you access to 1:1 college counseling! ",-1)])])):p("",!0),r.showBigFutureUpdatedEligibilityIntroCopy?(o(),l("div",at,[...e[24]||(e[24]=[t("p",{class:"uc-form-text"},"Just one more step to access free tutoring!",-1)])])):p("",!0),r.isCollegeConfidential?(o(),l("div",nt,[i.ccIntroCopy==="get-that-a"?(o(),l("div",ut,[...e[25]||(e[25]=[t("h1",{class:"uc-form-header"},"Get that A you deserve!",-1),t("p",{class:"uc-form-text"}," Students who use UPchieve get better grades in their classes and are more competitive during college admission season! Sign up for free access to the 24/7 academic supp
1ort that can help you achieve your dream. ",-1)])])):i.ccIntroCopy==="stuck-on-problem"?(o(),l("div",dt,[...e[26]||(e[26]=[t("h1",{class:"uc-form-header"},"Stuck on a problem? Our tutors can help!",-1),t("p",{class:"uc-form-text"}," UPchieve connects students with tutors that will help them during any part of a homework problem. Why struggle alone? Sign up for free access to our thousands of 1:1 24/7 tutors that can help you whenever you need it. ",-1)])])):i.ccIntroCopy==="grade-focused"?(o(),l("div",ct,[...e[27]||(e[27]=[t("h1",{class:"uc-form-header"}," 6th to 12th grade, UPchieve has you covered! ",-1),t("p",{class:"uc-form-text"}," UPchieve provides students with trained 1:1 coaches who can follow you in your academic journey and prepare you for future success. Why go through school alone? Sign up for free 24/7 tutoring and college prep! ",-1)])])):(o(),l("div",mt,[...e[28]||(e[28]=[t("h1",{class:"uc-form-header"},"Welcome College Confidential Student!",-1),t("p",{class:"uc-form-text"}," UPchieve is partnering with College Confidential to offer 100% free, online college counseling and tutoring available 24/7! Share some quick info below to see if you're eligible. ",-1)])]))])):p("",!0),s.isCodeDotOrgStudent?(o(),l("div",pt," Create an account now to access FREE, 24/7 tutoring in all your classes, including AP Computer Science. ")):p("",!0),r.showBigFutureEmailFirstFlow?(o(),l("form",{key:6,autocomplete:"off",class:"uc-column",onSubmit:e[1]||(e[1]=S(u=>s.submitBigFutureEmail(),["prevent"]))},[c(N,{modelValue:r.eligibility.studentEmail,"onUpdate:modelValue":e[0]||(e[0]=u=>r.eligibility.studentEmail=u),"data-testid":"student-email-input",placeholder:`Enter ${s.getFormLabelIdentifierPossessive} email address`,"aria-label":`Enter ${s.getFormLabelIdentifierPossessive} email address`,label:"Student Email","is-required":!1,class:b({"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.eligibility.studentEmail)}),onBlur:a.v$.eligibility.studentEmail.$touch,required:"","is-autofocused":""},null,8,["modelValue","placeholder","aria-label","class","onBlur"]),t("button",{"data-testid":"eligibility-form-submit-btn",class:"uc-form-button",disabled:s.cannotSubmitForm(a.v$.eligibility.studentEmail)?!0:null,type:"submit"}," Continue ",8,ht)],32)):r.eligibilitySubStep==="primary"?(o(),l("form",{key:7,autocomplete:"off",class:"uc-column",onSubmit:e[3]||(e[3]=S(u=>r.isReferred?s.submitReferralEligibilityForm():s.submitEligibilityForm(),["prevent"]))},[t("div",gt,[c(U,{id:"grade",name:"grade",label:"Grade",options:r.gradeLevels,placeholder:`Select ${s.getFormLabelIdentifierPossessive} grade`,modelValue:r.eligibility.currentGrade,"onUpdate:modelValue":e[2]||(e[2]=u=>r.eligibility.currentGrade=u),"data-testid":"student-grade-select","is-required":!0},null,8,["options","placeholder","modelValue"])]),t("div",ft,[t("div",yt,[t("label",{for:"school-bf",class:b({error:s.hasFormValidationError(a.v$.eligibility.highSchool)})},"School",2),s.hasFormValidationError(a.v$.eligibility.highSchool)?(o(),l("div",bt,f(s.getFormValidationError(a.v$.eligibility.highSchool)),1)):p("",!0)]),c(C,{id:"school-bf","data-testid":"student-school-autocomplete","base-class":"uc-form-autocomplete-input",placeholder:`Search for ${s.getFormLabelIdentifierPossessive} school`,"aria-label":`Search for ${s.getFormLabelIdentifierPossessive} school`,search:s.autocompleteSchool,"get-result-value":s.getSchoolDisplayName,"debounce-time":500,onSubmit:s.handleSelectHighSchool,onBlur:a.v$.eligibility.highSchool.$touch,class:b({"uc-form-autocomplete-input-invalid":s.hasFormValidationError(a.v$.eligibility.highSchool)}),required:""},{result:I(({result:u,props:te})=>[t("li",Ne(ve(te)),[u.name?(o(),l("div",vt,f(u.name)+" ("+f(u.city)+", "+f(u.state)+") ",1)):p("",!0),u.cantFindSchool?(o(),l("a",St,[t("div",Et,f(s.CANNOT_FIND_SCHOOL_TEXT),1)])):p("",!0)],16)]),_:1},8,["placeholder","aria-label","search","get-result-value","onSubmit","onBlur","class"])]),t("button",{"data-testid":"eligibility-form-submit-btn",class:"uc-form-button",disabled:s.cannotSubmitForm(a.v$.eligibility.highSchool)||s.cannotSubmitForm(a.v$.eligibility.currentGrade)?!0:null,type:"submit"}," Continue ",8,wt)],32)):r.eligibilitySubStep==="secondary"?(o(),l("form",{key:8,autocomplete:"off",class:"uc-column",onSubmit:e[6]||(e[6]=S(u=>r.isReferred?s.submitReferralEligibilityForm():s.submitEligibilityForm(),["prevent"]))},[t("div",Ft,[t("div",_t,[t("label",{for:"zipCode",class:b({error:s.hasFormValidationError(a.v$.eligibility.zipCode)})},"Zip Code",2),s.hasFormValidationError(a.v$.eligibility.zipCode)?(o(),l("div",It,f(s.getFormValidationError(a.v$.eligibility.zipCode)),1)):p("",!0)]),E(t("input",{id:"zipCode","data-testid":"student-zipcode-input",autocomplete:"off",class:b(["uc-form-text-input",{"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.eligibility.zipCode)}]),type:"text",placeholder:`Enter ${s.getFormLabelIdentifierPossessive} zip code`,"aria-label":`Enter ${s.getFormLabelIdentifierPossessive} zip code`,"onUpdate:modelValue":e[4]||(e[4]=u=>r.eligibility.zipCode=u),onBlur:e[5]||(e[5]=(...u)=>a.v$.eligibility.zipCode.$touch&&a.v$.eligibility.zipCode.$touch(...u)),required:""},null,42,Ct),[[w,r.eligibility.zipCode]])]),t("button",{"data-testid":"eligibility-form-submit-btn",class:"uc-form-button",disabled:s.cannotSubmitForm(a.v$.eligibility)?!0:null,type:"submit"}," Continue ",8,kt)],32)):(o(),l("form",{key:9,id:"form-eligibility",autocomplete:"off",class:"uc-column",onSubmit:e[8]||(e[8]=S(u=>r.isReferred?s.submitReferralEligibilityForm():s.submitEligibilityForm(),["prevent"]))},[t("div",Nt,[c(U,{id:"grade",name:"grade",label:"Grade",options:r.gradeLevels,placeholder:`Select ${s.getFormLabelIdentifierPossessive} grade`,modelValue:r.eligibility.currentGrade,"onUpdate:modelValue":e[7]||
1(e[7]=u=>r.eligibility.currentGrade=u),"is-required":!0,"data-testid":"student-grade-select"},null,8,["options","placeholder","modelValue"])]),t("button",{id:"btn-eligibility-submit","data-testid":"eligibility-form-submit-btn",class:"uc-form-button",disabled:s.cannotSubmitForm(a.v$.eligibility.currentGrade)?!0:null,type:"submit"}," Continue ",8,Ut)],32)),t("p",Pt,[e[30]||(e[30]=d(" Already have an account? ",-1)),c(_,{class:"uc-link",to:"/login"},{default:I(()=>[...e[29]||(e[29]=[d("Log In",-1)])]),_:1})])])):r.step==="eligible"?(o(),l("div",Tt,[c(n),e[31]||(e[31]=t("h1",{class:"uc-form-header center"},"Woohoo, you're eligible!",-1)),e[32]||(e[32]=t("p",{class:"uc-form-text center"},"Finish setting up your free account",-1)),t("button",{class:"uc-form-button",onClick:e[9]||(e[9]=(...u)=>s.accountPage&&s.accountPage(...u)),type:"button"}," Continue ")])):r.step==="ineligible"?(o(),l("div",Lt,[c(L),t("h1",xt,f(s.title),1),r.isCollegeStudent?(o(),l("p",At,[...e[33]||(e[33]=[d(" We don't have the capacity to help college students right now, but did you know that many UPchieve students dream of going to college just like you? Give back by ",-1),t("a",{href:"https://upchieve.org/volunteer",target:"_blank",class:"uc-link"},"becoming an Academic Coach.",-1)])])):(o(),l("p",Bt,[d(" We weren't able to verify "+f(s.getFormLabelIdentifierPossessive)+" eligibility based on the information you've entered so far. ",1),t("strong",null,"Don't worry: "+f(s.getFormLabelIdentifier)+" may still be eligible!",1),d(" "+f(s.getIneligibleCanAppealText),1)])),r.isCollegeStudent?(o(),l("p",Mt,[...e[34]||(e[34]=[t("i",null,[d("Still need help? "),t("a",{href:"https://upchieve.org/resources-for-college-students",target:"_blank",class:"uc-link"}," Find college resources here. ")],-1)])])):p("",!0),r.isCollegeStudent?p("",!0):(o(),l("button",{key:3,class:"uc-form-button",type:"button",onClick:e[10]||(e[10]=(...u)=>s.ineligibleContinue&&s.ineligibleContinue(...u))}," Continue "))])):r.step==="parentGuardianConfirmation"?(o(),l("div",Vt,[t("div",Dt,[c(n),e[37]||(e[37]=t("h1",null,"You're all set!",-1)),t("p",null," An account for "+f(this.eligibility.studentFirstName)+" has been created. ",1),t("p",null,[e[35]||(e[35]=d(" We have sent an email to ",-1)),t("span",Rt,f(this.eligibility.studentEmail),1),e[36]||(e[36]=d(" to set a password. ",-1))])])])):r.step==="account"&&i.isCleverStudentRedirect?(o(),l("div",qt,[c(F,{errors:r.errors},null,8,["errors"]),e[38]||(e[38]=t("h1",{class:"uc-form-header"},"Welcome Clever student!",-1)),e[39]||(e[39]=t("p",{class:"mt-2"},"Enter your student email to get started using UPchieve.",-1)),c(N,{modelValue:r.credentials.email,"onUpdate:modelValue":e[11]||(e[11]=u=>r.credentials.email=u)},null,8,["modelValue"]),t("button",{class:"uc-form-button",type:"submit",disabled:a.v$.credentials.email.$error||a.v$.credentials.email.$silentErrors.length||r.isSubmittingAccountForm,onClick:e[12]||(e[12]=()=>s.submitAccountForm(!0))}," Continue ",8,Gt)])):r.step==="account"?(o(),l("div",Ot,[c(F,{errors:r.errors},null,8,["errors"]),e[45]||(e[45]=t("h1",{class:"uc-form-header"},"Finish creating your free account",-1)),t("p",zt,[e[41]||(e[41]=d(" Already have an account? ",-1)),c(_,{class:"uc-link",to:"/login"},{default:I(()=>[...e[40]||(e[40]=[d("Log In",-1)])]),_:1})]),t("div",null,[t("button",{class:"uc-form-button google",onClick:e[13]||(e[13]=S((...u)=>s.signUpWithGoogle&&s.signUpWithGoogle(...u),["prevent"])),disabled:r.isSubmittingAccountForm?!0:null,type:"button"},[c(x),e[42]||(e[42]=d(" Sign Up with Google ",-1))],8,Kt),e[43]||(e[43]=V('<p class="terms-text" data-v-31c7218d> By clicking the button above, you agree to our <a href="https://upchieve.org/legal" target="_blank" class="uc-link" data-v-31c7218d>User Agreement</a>. </p><div class="uc-row items-center w-full break-line-container" data-v-31c7218d><span class="break-line w-full" data-v-31c7218d></span><p class="or-text" data-v-31c7218d>or</p><span class="break-line w-full" data-v-31c7218d></span></div>',2))]),t("form",{autocomplete:"off","aria-label":"Create student account",onSubmit:e[22]||(e[22]=S(u=>s.submitAccountForm(),["prevent"]))},[t("div",Wt,[t("div",Ht,[t("label",{for:"firstName",class:b({error:s.hasFormValidationError(a.v$.profile.firstName)})},"First Name",2),s.hasFormValidationError(a.v$.profile.firstName)?(o(),l("div",jt,f(s.getFormValidationError(a.v$.profile.firstName)),1)):p("",!0)]),E(t("input",{id:"firstName","data-testid":"student-first-name-input",autocomplete:"off",class:b(["uc-form-text-input",{"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.profile.firstName)}]),type:"text",placeholder:`Enter ${s.getFormLabelIdentifierPossessive} first name`,"aria-label":`Enter ${s.getFormLabelIdentifierPossessive} first name`,"onUpdate:modelValue":e[14]||(e[14]=u=>r.profile.firstName=u),onBlur:e[15]||(e[15]=(...u)=>a.v$.profile.firstName.$touch&&a.v$.profile.firstName.$touch(...u)),required:""},null,42,Yt),[[w,r.profile.firstName]])]),t("div",Zt,[t("div",Qt,[t("label",{for:"lastName",class:b({error:s.hasFormValidationError(a.v$.profile.lastName)})},"Last Name",2),s.hasFormValidationError(a.v$.profile.lastName)?(o(),l("div",Xt,f(s.getFormValidationError(a.v$.profile.lastName)),1)):p("",!0)]),E(t("input",{id:"lastName","data-testid":"student-last-name-input",autocomplete:"off",class:b(["uc-form-text-input",{"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.profile.lastName)}]),type:"text",placeholder:`Enter ${s.getFormLabelIdentifierPossessive} last name`,"aria-label":`Enter ${s.getFormLabelIdentifierPossessive} last name`,"onUpdate:modelValue":e[16]||(e[16]=u=>r.profile.lastName=u),onBlur:e[17]||(e[17]=(...u)=>a.v$.profile.lastName.$touch&&a.v$.profile.lastName.$touch(...u)),required:""},null,42,Jt),[[w,r.profile.lastName]])]),r.eligibility.studentEmail?p("",!0):(o(),l("div",$t,[t("div",ei,[t("label",{for:"email",class:b({error:s.hasFormValidationError(a.v$.credentials.email)})},"Email",2),s.hasFormValidationError(a.v$.credentials.email)?(o(),l("div",ti,f(s.getFormValidationError(a.v$.credentials.email)),1)):p("",!0)]),E(t("input",{id:"email",autocomplete:"off",class:b(["uc-form-text-input",{"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.credentials.email)}]),type:"email",placeholder:`Enter ${s.getFormLabelIdentifierPossessive} email address`,"aria-label":`Enter ${s.getFormLabelIdentifierPossessive} email address`,"onUpdate:modelValue":e[18]||(e[18]=u=>r.credentials.email=u),onBlur:e[19]||(e[19]=(...u)=>a.v$.credentials.email.$touch&&a.v$.credentials.email.$touch(...u)),required:""},null,42,ii),[[w,r.credentials.email]])])),t("div",ri,[t("div",si,[t("label",{for:"password",class:b({error:s.hasFormValidationError(a.v$.credentials.password)})},"Password",2),s.hasFormValidationError(a.v$.credentials.password)?(o(),l("div",oi,f(s.getFormValidationError(a.v$.credentials.password)),1)):p("",!0)]),E(t("input",{id:"password","data-testid":"student-password-input",class:b(["uc-form-text-input",{"uc-form-text-input-invalid":s.hasFormValidationError(a.v$.credentials.password)}]),type:"password",autocomplete:"new-password",placeholder:"Create a password","aria-label":"Create a password","onUpdate:modelValue":e[20]||(e[20]=u=>r.credentials.password=u),onBlur:e[21]||(e[21]=(...u)=>a.v$.credentials.password.$touch&&a.v$.credentials.password.$touch(...u)),required:""},null,34),[[w,r.credentials.password]]),t("div",{class:b(["metadata",{"metadata error":s.hasFormValidationError(a.v$.credentials.password)}])}," Must have at least one number, one uppercase letter, one lowercase letter, and be at least 8 characters long. ",2)]),t("button",{class:"uc-form-button",disabled:r.isSubmittingAccountForm||s.cannotSubmitForm(a.v$.profile)||s.cannotSubmitForm(a.v$.credentials)?!0:null,type:"submit"}," Create my account ",8,li),e[44]||(e[44]=t("p",{class:"terms-text"},[d(" By clicking the button above, you agree to our "),t("a",{href:"https://upchieve.org/legal",target:"_blank",class:"uc-l
1ink"},"User Agreement"),d(". ")],-1))],32)])):r.step==="international"?(o(),l("div",ai,[i.showNewInternationalMessage?(o(),k(G,{key:0})):(o(),l("div",ni,[c(L),e[49]||(e[49]=t("h1",{class:"uc-form-header center"},[d(" Looks like you're not in "),t("br"),d("the U.S.! ")],-1)),e[50]||(e[50]=t("p",{class:"international-availability-info"}," UPchieve is currently only available to students in the U.S. We're sorry for the inconvenience! 😔 ",-1)),e[51]||(e[51]=t("p",null,[d(" Applying for college? "),t("a",{href:"/sign-up/volunteer/account"},"Becoming a volunteer"),d(" is a great way to improve your application! ")],-1)),t("p",ui,[e[47]||(e[47]=d(" Live in the U.S. and still seeing this message? Make sure you're not using a VPN. ",-1)),c(_,{to:"/contact",class:"uc-link"},{default:I(()=>[...e[46]||(e[46]=[d("Contact Us",-1)])]),_:1}),e[48]||(e[48]=d(" if you still need help! ",-1))])]))])):(o(),l("div",di,"Unexpected Error"))}const mi=M(tt,[["render",ci],["__scopeId","data-v-31c7218d"]]),pi={components:{MazPhoneNumberInput:Ae,Loader:K,FormSelect:W,LineDivider:J,SsoButton:X},setup(){return{SsoProvider:de}},data(){return{submitError:"",validationErrors:[],invalidInputs:[],credentials:{email:"",password:"",terms:!1},profile:{firstName:"",lastName:"",phone:""},step:"step-1",phoneInputInfo:{},isRegistering:!1,signupSourcesOptions:[],signupSourceId:null,otherSignupSource:"",isLoadingSignupSources:!1}},mounted(){this.$router.push("/sign-up/volunteer/account")},computed:{...z({isGoogleSignupForVolunteersEnabled:"featureFlags/isGoogleSignupForVolunteersEnabled"})},methods:{nextPage(){this.validationErrors=[],this.invalidInputs=[],this.submitError="",this.credentials.email?xe(this.credentials.email)||(this.validationErrors.push(this.credentials.email+" is not a valid email address."),this.invalidInputs.push("inputEmail")):(this.validationErrors.push("An email address is required."),this.invalidInputs.push("inputEmail")),this.credentials.password||(this.validationErrors.push("A password is required."),this.invalidInputs.push("inputPassword")),!this.validationErrors.length&&R.checkRegister({email:this.credentials.email,password:this.credentials.password}).then(()=>{this.step="step-2",this.$router.push("/sign-up/volunteer/about"),this.getSignupSources()}).catch(i=>{this.submitError=i?.response?.data?.err??"Failed: Please try again.",i?.response?.status!==409&&i?.response?.status!==422&&A.noticeError(i)})},checkInputs(){this.validationErrors=[],this.invalidInputs=[],(!this.profile.firstName||!this.profile.lastName)&&this.validationErrors.push("You must enter your first and last name."),this.profile.firstName||this.invalidInputs.push("firstName"),this.profile.lastName||this.invalidInputs.push("lastName"),this.profile.phone?(!this.phoneInputInfo.isValid||!this.phoneInputInfo.e164)&&(this.validationErrors.push(this.profile.phone+" is not a valid phone number."),this.invalidInputs.push("phone")):(this.validationErrors.push("You must enter a phone number."),this.invalidInputs.push("phone")),this.credentials.terms||this.validationErrors.push("You must read and accept the user agreement."),this.shouldShowOtherSignupInput()&&!this.otherSignupSource&&(this.validationErrors.push('Please enter signup source in the text box if "Other" is selected'),this.invalidInputs.push("otherSignupSource")),this.signupSourceId||this.validationErrors.push("Please select an option for 'How did you hear about us?'"),this.validationErrors.length||this.submit()},submit(){if(this.submitError="",this.isRegistering)return;const i=localStorage.getItem("joinedTeamCode");i&&(this.joinedTeamCode=i),this.isRegistering=!0,R.registerOpenVolunteer({email:this.credentials.email,password:this.credentials.password,terms:this.credentials.terms,firstName:this.profile.firstName,lastName:this.profile.lastName,phone:this.phoneInputInfo.e164,signupSourceId:this.signupSourceId,otherSignupSource:this.otherSignupSource,referredByCode:window.localStorage.getItem("upcReferredByCode"),inviteCode:i}).then(()=>{this.isRegistering=!1,window.localStorage.removeItem("upcReferredByCode"),localStorage.removeItem("joinedTeamCode"),this.$router.push("/verify")}).catch(e=>{this.isRegistering=!1,this.submitError=e?.response?.data?.err??"Failed: Please try again.",e?.response.status!==409&&e?.response.status!==422&&A.noticeError(e)})},signUpWithGoogle(){g.captureEvent(y.USER_CLICKED_SIGN_UP_WITH_GOOGLE,{isVolunteer:!0}),localStorage.setItem("isSSOSignUpRedirect",!0);const i=localStorage.getItem("joinedTeamCode"),e={errorRedirect:"/sign-up/volunteer/account",isLogin:!1,provider:"google",referredByCode:window.localStorage.getItem("upcReferredByCode"),accountType:"volunteer",inviteCode:i};this.partnerKey&&(e.volunteerPartnerOrgKey=this.partnerKey);const m=new URLSearchParams(e).toString(),a=`${j.serverRoot}/auth/sso?${m}`;window.location.replace(a)},onPhoneInputUpdate(i){this.phoneInputInfo=i},shouldShowOtherSignupInput(){if(this.isLoadingSignupSources||!this.signupSourcesOptions)return!1;const i=this.signupSourcesOptions.find(e=>e.name==="Other");return i&&i.id===this.signupSourceId},async getSignupSources(){this.isLoadingSignupSources=!0;try{let e=(await Be.backOff(()=>T.getStudentSignupSources())).data.signupSources;e=e.filter(m=>m.name!=="School / Teacher"),e.find(m=>m.name==="Friend / Classmate").name="Friend",this.signupSourcesOptions=e}catch(i){A.noticeError(i)}finally{this.isLoadingSignupSources=!1}}}}
1,hi={key:0,class:"step-errors",role:"alert","aria-labelledby":"errorsHeading"},gi={class:"uc-column"},fi={class:"uc-column"},yi={key:1,role:"alert",class:"submission-error"},bi={key:2},vi={class:"sso-container"},Si={key:0,class:"step-errors",role:"alert","aria-labelledby":"volunteerInformationErrorsHeading"},Ei={class:"uc-column"},wi={class:"uc-column"},Fi={class:"uc-column"},_i={class:"uc-column"},Ii={key:1,class:"uc-column"},Ci={class:"uc-form-checkbox"},ki=["disabled"],Ni={key:3,role:"alert"},Ui={key:2,class:"uc-form-body"};function Pi(i,e,m,a,r,s){const F=h("LineDivider"),N=h("SsoButton"),U=h("maz-phone-number-input"),C=h("FormSelect"),_=h("loader");return r.step=="step-1"?(o(),l("form",{key:0,autocomplete:"off",class:"uc-form-body","aria-label":"Volunteer signup",onSubmit:e[2]||(e[2]=S(n=>s.nextPage(),["prevent"]))},[r.validationErrors.length?(o(),l("div",hi,[e[12]||(e[12]=t("h5",{id:"errorsHeading"},"Please correct the following problems:",-1)),t("ul",null,[(o(!0),l(B,null,q(r.validationErrors,n=>(o(),l("li",{key:n},f(n),1))),128))])])):p("",!0),e[18]||(e[18]=t("div",{class:"step-title"},"Step 1 of 2: Choose your log-in details",-1)),t("div",gi,[e[13]||(e[13]=t("label",{for:"inputEmail",class:"uc-form-label"},"What's your email?",-1)),E(t("input",{id:"inputEmail",type:"email",class:b(["uc-form-input",{"uc-form-input--invalid":r.invalidInputs.indexOf("inputEmail")>-1}]),"onUpdate:modelValue":e[0]||(e[0]=n=>r.credentials.email=n),required:"",autofocus:"",autocomplete:"off"},null,2),[[w,r.credentials.email]]),e[14]||(e[14]=t("p",{class:"uc-form-subtext"}," We will only use your email to contact you about your account. See our Privacy Policy for more info. ",-1))]),t("div",fi,[e[15]||(e[15]=t("label",{for:"inputPassword",class:"uc-form-label"}," Create a password. ",-1)),E(t("input",{id:"inputPassword",type:"password",class:b(["uc-form-input",{"uc-form-input--invalid":r.invalidInputs.indexOf("inputPassword")>-1}]),"onUpdate:modelValue":e[1]||(e[1]=n=>r.credentials.password=n),required:"",autocomplete:"new-password"},null,2),[[w,r.credentials.password]]),e[16]||(e[16]=t("p",{class:"uc-form-subtext"}," Keep your account safe by choosing a password with one number, one uppercase letter, and one lowercase letter. ",-1))]),e[19]||(e[19]=t("button",{class:"uc-form-button",type:"submit"},"Continue",-1)),r.submitError!==""?(o(),l("div",yi,f(r.submitError),1)):p("",!0),i.isGoogleSignupForVolunteersEnabled?(o(),l("div",bi,[c(F,{text:"Sign Up with"}),t("div",vi,[c(N,{onClick:s.signUpWithGoogle,class:"sso-button","data-testid":"googleSsoButton",buttonText:"Google",ssoMethod:a.SsoProvider.GOOGLE},null,8,["onClick","ssoMethod"]),e[17]||(e[17]=t("p",{class:"terms-text"},[d(" By clicking the button above, you agree to our "),t("a",{href:"https://upchieve.org/legal",target:"_blank",class:"uc-link"},"User Agreement"),d(". ")],-1))])])):p("",!0)],32)):r.step=="step-2"?(o(),l("form",{key:1,autocomplete:"off",class:"uc-form-body","aria-label":"Volunteer information",onSubmit:e[11]||(e[11]=S(n=>s.checkInputs(n),["prevent"]))},[r.validationErrors.length?(o(),l("div",Si,[e[20]||(e[20]=t("h5",{id:"volunteerInformationErrorsHeading"}," Please correct the following problems: ",-1)),t("ul",null,[(o(!0),l(B,null,q(r.validationErrors,n=>(o(),l("li",{key:n},f(n),1))),128))])])):p("",!0),e[30]||(e[30]=t("div",{class:"step-title"},"Step 2 of 2: Tell us about yourself!",-1)),t("div",Ei,[e[21]||(e[21]=t("label",{for:"username",class:"d-none"},"Username",-1)),E(t("input",{type:"text",class:"d-none",id:"username","onUpdate:modelValue":e[3]||(e[3]=n=>r.credentials.email=n),autocomplete:"off"},null,512),[[w,r.credentials.email]]),e[22]||(e[22]=t("label",{for:"password",class:"d-none"},"Password",-1)),E(t("input",{type:"password",class:"d-none",id:"password","onUpdate:modelValue":e[4]||(e[4]=n=>r.credentials.password=n),autocomplete:"new-password"},null,512),[[w,r.credentials.password]]),e[23]||(e[23]=t("label",{for:"firstName",class:"uc-form-label"},"First Name",-1)),E(t("input",{id:"firstName","data-testId":"firstNameField",type:"text",class:b(["uc-form-input",{"uc-form-input--invalid":r.invali
1dInputs.indexOf("firstName")>-1}]),"onUpdate:modelValue":e[5]||(e[5]=n=>r.profile.firstName=n),required:"",autofocus:"",autocomplete:"off"},null,2),[[w,r.profile.firstName]])]),t("div",wi,[e[24]||(e[24]=t("label",{for:"lastName",class:"uc-form-label"},"Last Name",-1)),E(t("input",{id:"lastName","data-testid":"lastNameField",type:"text",class:b(["uc-form-input",{"uc-form-input--invalid":r.invalidInputs.indexOf("lastName")>-1}]),"onUpdate:modelValue":e[6]||(e[6]=n=>r.profile.lastName=n),required:"",autocomplete:"off"},null,2),[[w,r.profile.lastName]])]),t("div",Fi,[e[25]||(e[25]=t("label",{for:"phoneNumber",class:"uc-form-label"},"Cell Phone Number",-1)),c(U,{id:"phoneNumber","data-testid":"phoneNumberField",class:"phone-input",required:"true",modelValue:r.profile.phone,"onUpdate:modelValue":e[7]||(e[7]=n=>r.profile.phone=n),"show-code-on-list":"",onUpdate:s.onPhoneInputUpdate},null,8,["modelValue","onUpdate"]),e[26]||(e[26]=t("p",{class:"uc-form-subtext"}," UPchieve notifies volunteers of incoming student requests via text. You can customize when you receive requests. ",-1))]),t("div",_i,[e[27]||(e[27]=t("label",{for:"signup-source",class:"uc-form-label"},"How did you hear about us?",-1)),c(C,{"data-testid":"signupSourceField",name:"signup-source",modelValue:r.signupSourceId,"onUpdate:modelValue":e[8]||(e[8]=n=>r.signupSourceId=n),options:r.signupSourcesOptions,"option-text-field":"name","is-required":!0,reduce:n=>n.id},null,8,["modelValue","options","reduce"])]),s.shouldShowOtherSignupInput()?(o(),l("div",Ii,[E(t("input",{id:"otherSignupSource","data-testid":"otherSignupSource",autocomplete:"off",required:!0,type:"text",class:b(["uc-form-input",{"uc-form-input--invalid":r.invalidInputs.indexOf("otherSignupSource")>-1}]),"onUpdate:modelValue":e[9]||(e[9]=n=>r.otherSignupSource=n),autofocus:""},null,2),[[w,r.otherSignupSource]]),e[28]||(e[28]=t("p",{class:"uc-form-subtext"},"Tell us where you heard about us!",-1))])):p("",!0),t("div",Ci,[E(t("input",{id:"userAgreement","data-testid":"userAgreementCheckbox","onUpdate:modelValue":e[10]||(e[10]=n=>r.credentials.terms=n),type:"checkbox",required:""},null,512),[[ke,r.credentials.terms]]),e[29]||(e[29]=t("label",{for:"userAgreement"},[d(" I have read and accept the "),t("a",{href:"https://upchieve.org/legal",target:"_blank"},"user agreement"),d(" and "),t("a",{href:"https://upchieve.org/legal#volunteer-agreement",target:"_blank"},"volunteer agreement"),d(". ")],-1))]),t("button",{class:"uc-form-button",type:"submit",disabled:r.isRegistering?!0:null,"data-testid":"signup-button"}," Sign Up ",8,ki),r.isRegistering?(o(),k(_,{key:2,class:"register-loader"})):p("",!0),r.submitError?(o(),l("div",Ni,f(r.submitError),1)):p("",!0)],32)):(o(),l("div",Ui,"Unexpected Error"))}const Ti=M(pi,[["render",Pi],["__scopeId","data-v-e8668175"]]),Li={xmlns:"http://www.w3.org/2000/svg",width:"75",height:"104",fill:"none",viewBox:"0 0 75 104"};function xi(i,e){return o(),l("svg",Li,[...e[0]||(e[0]=[V('<mask id="0a" width="75" height="104" x="0" y="0" maskUnits="userSpaceOnUse"><path fill="#ffeaff" d="M0 8a8 8 0 0 1 8-8h58.104a8 8 0 0 1 8 8v95.272H0z"></path></mask><g mask="url(#0a)"><path fill="#f9bef9" d="M11.87 90.814s3.274-12.26 21.277-12.26 21.309 12.702 21.309 12.702"></path><path fill="#76e5fd" stroke="#000" stroke-miterlimit="10" stroke-width="2" d="M64 50H4v59h60z"></path><path fill="#76e5fd" d="M37.86 76.938s-.852 3.106-4.596 3.106-4.597-3.106-4.597-3.106"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M37.86 76.938s-.852 3.106-4.596 3.106-4.597-3.106-4.597-3.106"></path><path fill="#76e5fd" d="M42.31 71.072s.604-2.205 3.267-2.205 3.267 2.205 3.267 2.205"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M42.31 71.072s.604-2.205 3.267-2.205 3.267 2.205 3.267 2.205"></path><path fill="#76e5fd" d="M18.394 71.072s.605-2.205 3.267-2.205 3.268 2.205 3.268 2.205"></path><g stroke="#000" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M18.394 71.072s.605-2.205 3.267-2.205 3.268 2.205 3.268 2.205"></path><path fill="#343440" stroke-linecap="square" d="M64 48.065V52a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.86c0-1.819 1-3.478 2.535-4.455 9.401-5.992 15.884-14.635 17.712-19.02.165-.396.541-.665.97-.665H42.11c.507 0 .928.377 1.073.863 1.553 5.223 11.4 14.09 18.391 18.798C63.05 44.654 64 46.286 64 48.065z"></path><path fill="#76e5fd" stroke-linecap="square" d="M25 8.399V23a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-9.47a1 1 0 0 0-.676-.946l-15-5.131A1 1 0 0 0 25 8.399z"></path></g></g>',2)])])}const Ai={render:xi}
1,Bi={xmlns:"http://www.w3.org/2000/svg",width:"72",height:"86",fill:"none",viewBox:"0 0 72 86"};function Mi(i,e){return o(),l("svg",Bi,[...e[0]||(e[0]=[V('<g stroke-miterlimit="10" stroke-width="2"><g stroke-linecap="round" stroke-linejoin="round"><path stroke="#000" d="M35.633 26.735c1.904-13.288-9.11-20.882-9.11-20.882"></path><path fill="#f44747" stroke="#000" d="M37.63 26.123s11.284-7.17 24.827.876C76 35.046 68.364 60.767 68.364 60.767S59.858 83.86 50.824 83.86c-4.752.858-11.114-2.095-11.114-2.095s-4.518-2.628-8.506-.172c-3.998 2.448-9.895 5.076-15.102 0-4.84-4.732-18.84-20.636-13.104-43.241 1.488-5.862 5.458-10.874 10.988-13.24 3.048-1.3 6.875-2.023 11.518-1.283 1.344.217 2.653.633 3.898 1.184 1.981.885 5.737 2.24 8.228 1.11"></path><path stroke="#010101" d="M40.2 56.683s-.89 3.658-4.804 3.658-4.804-3.658-4.804-3.658"></path><path stroke="#000" d="M44.85 49.772s.632-2.598 3.414-2.598 3.415 2.598 3.415 2.598M19.857 49.772s.632-2.598 3.415-2.598 3.415 2.598 3.415 2.598"></path></g><path fill="#16d2aa" stroke="#000" d="M35.852 21.935S35.703 6.692 49.96 1.855c0 0 4.44 15.845-11.822 22.593l-2.286.955z"></path></g>',1)])])}const Vi={render:Mi},Di={name:"signup-view",components:{FormPageTemplate:H,Loader:K,SignUpForms:et,StudentForm:mi,VolunteerForm:Ti,StudentAvatar:Me,VolunteerAvatar:Ai,TeacherAvatar:Vi},data(){return{userSelection:null,isCheckingReferral:!1,referredBy:{},UserType:he,getStudentPageDetails:pe,getTeacherPageDetails:me,getVolunteerPageDetails:ce}},async created(){const i=this.$route.query.referral;if(i){this.isCheckingReferral=!0;try{const{data:{user:e}}=await T.getReferredBy(i);e?(this.referredBy=e,window.localStorage.setItem("upcReferredByCode",i),g.captureEvent(y.USER_VISITED_REFERRAL_LINK,{referralCode:i,userType:this.referredBy.userType})):g.captureEvent(y.USER_VISITED_INCORRECT_REFERRAL_LINK,{referralCode:i})}finally{this.isCheckingReferral=!1}}this.$route.params.inviteCode&&localStorage.setItem("joinedTeamCode",this.$route.params.inviteCode),this.userSelectionFrom(this.$route.params)},beforeRouteUpdate(i,e,m){this.userSelectionFrom(i.params),m()},computed:{...z({useNewSignUpFlow:"featureFlags/useNewSignUpFlow",downtimeBannerMessage:"featureFlags/downtimeBannerMessage",isDisableStudentSignupsEnabled:"featureFlags/isDisableStudentSignupsEnabled",isNewVolunteerSignUpFlowEnabled:"featureFlags/isNewVolunteerSignUpFlowEnabled"}),welcomeMessage(){return this.referredBy?.firstName?`${Ve(this.referredBy.firstName)} invited you to UPchieve!`:"Welcome to UPchieve!"},isReferredByStudent(){return this.referredBy.userType===this.UserType.student},isReferredByVolunteer(){return this.referredBy.userType===this.UserType.volunteer}},methods:{userSelectionFrom(i){i.userType===this.UserType.student?this.userSelection=this.UserType.student:i.userType===this.UserType.volunteer?this.userSelection=this.UserType.volunteer:i.userType===this.UserType.teacher?this.userSelection=this.UserType.teacher:this.userSelection=null},selectVolunteer(){this.$router.push("/sign-up/volunteer/account"),this.userSelection="volunteer"},selectStudent(){this.$router.push("/sign-up/student/eligibility"),this.userSelection="student"},selectTeacher(){this.$router.push("/sign-up/teacher/account"),this.userSelection="teacher"}}},Ri={key:0,class:"h-full"},qi={key:1,class:"h-full"},Gi={key:2,class:"h-full"},Oi={class:"uc-form"},zi={key:3},Ki={class:"uc-form-header"},Wi={key:0,class:"uc-form-text"},Hi={key:1,class:"uc-form-text"},ji={key:2,class:"uc-form-text"},Yi={key:3,class:"uc-column items-center"},Zi={key:4,class:"uc-column items-center"},Qi={key:5},Xi={class:"btn-card-container"},Ji={class:"img-container"},$i={class:"img-container"},er={class:"img-container"},tr={class:"uc-form-text"},ir={key:6,class:"downtime-msg"};function rr(i,e,m,a,r,s){const F=h("sign-up-forms"),N=h("volunteer-form"),U=h("student-form"),C=h("loader"),_=h("student-avatar"),n=h("volunteer-avatar"),L=h("teacher-avatar"),x=h("router-link"),G=h("form-page-template");return(i.useNewSignUpFlow||i.$route.query.partner==="great-schools"||i.$route.params.studentPartnerOrgKey==="great-schools")&&this.userSelection===r.UserType.student?(o(),l("div",Ri,[c(F,{getPageDetails:r.getStudentPageDetails},null,8,["getPageDetails"])])):this.userSelection===r.UserType.teacher?(o(),l("div",qi,[c(F,{getPageDetails:r.getTeacherPageDetails},null,8,["getPageDetails"])])):this.userSelection===r.UserType.volunteer&&i.isNewVolunteerSignUpFlowEnabled?(o(),l("div",Gi,[c(F,{getPageDetails:r.getVolunteerPageDetails},null,8,["getPageDetails"])])):(o(),k(G,{key:3,formCardMaxWidth:"660px"},{default:I(()=>[t("div",Oi,[this.userSelection==="volunteer"&&!i.isNewVolunteerSignUpFlowEnabled?(o(),k(N,{key:0})):this.userSelection==="student"?(o(),k(U,{key:1})):r.isCheckingReferral?(o(),k(C,{key:2,class:"uc-row justify-center"})):(o(),l("div",zi,[t("h1",Ki,f(s.welcomeMessage),1),s.isReferredByStudent?(o(),l("p",Wi," UPchieve is a nonprofit that provides 100% free online tutoring and college counseling, available 24/7! Check if you are eligible! ")):s.isReferredByVolunteer?(o(),l("p",Hi,[...e[5]||(e[5]=[d(" UPchieve is a nonprofit that provides 100% free online tutoring and college counseling to low income students in the U.S. ",-1),t("br",null,null,-1),t("br",null,null,-1),d(" Sign up as a tutor to help low income students succeed in school and beyond! ",-1)])])):(o(),l("p",ji," We are a nonprofit that provides free, online tutoring and college counseling to eligible middle and high school students. ")),s.isReferredByStudent?(o(),l("div",Yi,[t("button",{class:"uc-form-button",type:"submit",onClick:e[0]||(e[0]=S(u=>s.selectStudent(),["prevent"]))}," Check my eligibility "),e[6]||(e[6]=t("a",{target:"_blank",rel:"noopener noreferrer",class:"link",href:"https://upchieve.org/students"},"Tell me more about UPchieve first ",-1))])):s.isReferredByVolunteer?(o(),l("div",Zi,[t("button",{class:"uc-form-button",type:"submit",onClick:e[1]||(e[1]=S(u=>s.selectVolunteer(),["prevent"]))}," I'm ready to tutor! "),e[7]||(e[7]=t("a",{target:"_blank",rel:"noopener noreferrer",class:"link",href:"https://upchieve.org/volunteer-with-us"},"Tell me more about UPchieve first ",-1))])):(o(),l("div",Qi,[e[11]||(e[11]=t("p",{class:"uc-form-text bold"},"I want to sign up as a...",-1)),t("div",Xi,[i.isDisableStudentSignupsEnabled?p("",!0):(o(),l("button",{key:0,"data-testid":"studentCard",class:"btn-card student",onClick:e[2]||(e[2]=S((...u)=>s.selectStudent&&s.selectStudent(...u),["prevent"])),type:"button"},[t("div",Ji,[c(_,{class:"img"})]),e[8]||(e[8]=t("p",{class:"text"},"Student",-1))])),t("button",{"data-testid":"volunteerCard",class:"btn-card volunteer",onClick:e[3]||(e[3]=S((...u)=>s.selectVolunteer&&s.selectVolunteer(...u),["prevent"])),type:"button"},[t("div",$i,[c(n,{class:"img"})]),e[9]||(e[9]=t("p",{class:"text"},"Volunteer",-1))]),t("button",{"data-testid":"teacherCard",class:"btn-card teacher",onClick:e[4]||(e[4]=S((...u)=>s.selectTeacher&&s.selectTeacher(...u),["prevent"])),type:"button"},[t("div",er,[c(L,{class:"img"})]),e[10]||(e[10]=t("p",{class:"text"},"Teacher",-1))])])])),t("p",tr,[e[13]||(e[13]=d(" Already have an account? ",-1)),c(x,{class:"uc-l
1ink",to:"/login"},{default:I(()=>[...e[12]||(e[12]=[d("Log In",-1)])]),_:1})]),i.downtimeBannerMessage?(o(),l("p",ir," Note: "+f(i.downtimeBannerMessage),1)):p("",!0)]))])]),_:1}))}const ls=M(Di,[["render",rr],["__scopeId","data-v-3d5b7d12"]]);export{ls 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.