PageSourceSearch

https://courses.thebrandingjournal.com/_nuxt/CgxuxKP2.js

js thebrandingjournal.com collected 2026-09-24 17:40:35 UTC 3,761 bytes, 1 lines download raw bytes

1import{d as I,e as D,m as C,u as j,A as G,f as K,y as R,C as O,a as i,b as s,h as g,q as E,t as o,i as e,j as c,g as h,K as z,M as H,n as p,s as U,F as y,r as W,x as _,P as J,k,o as r,L as Q,c as X}from"./D5exdTL-.js";import{c as Y,a as Z,u as ee}from"./BXQCph01.js";import{u as se}from"./Ba5jHure.js";import{S as te,M as oe}from"./CM_x9YBi.js";import{G as ae}from"./CNGPjeKk.js";import{u as ne}from"./CcwZCqlC.js";const le={class:"login forgot"},re={class:"left-side"},ie={class:"!text-left mb-2"},de={class:"!text-left"},ue={class:"form"},ce={key:0,class:"message"},me={key:1,class:"message error"},ge={class:"input-box"},fe={class:"input-holder"},pe={for:""},_e={key:0,class:"loading-label flex items-center"},ve={key:1},we={class:"footer"},he={class:"footer-links flex items-center flex-wrap gap-x-5 gap-y-1"},Me=I({__name:"forgot",setup(ye){const a=D().$i18n.t;C({meta:[{name:"robots",content:"noindex, nofollow"}]});const d=j(),T=k(()=>{var n;return a("[meta] Forgot Password")+" | "+((n=d==null?void 0:d.generalSettings)==null?void 0:n.school_name)});C({title:T});const u=_(""),{theme:f,toggleTheme:x,showSwitch:M}=G();K();let N=Y().shape({email:Z().email().required()});const V=k(()=>({email:u.value.trim()})),b=se(),{errors:S,validate:$,has_errors:A,validateAll:F}=ee(V,N),q=k(()=>b.legalPages),v=_(!1),w=_(!1),m=_(""),L=async()=>{await $("email"),setTimeout(async()=>{if(m.value=S.value.email||"",!A.value){w.value=!0;try{await d.requestPassword(u.value.trim()),v.value=!0}catch(n){m.value=n.message}finally{w.value=!1}}},0)};ne("keydown",n=>{n.key==="Enter"&&L()});const B=n=>{S.value[n]=void 0,m.value="",v.value=!1};return R(()=>{d.findIdentity(),F(),b.getLegalPages(),O.get("token")&&d.logOut()}),(n,t)=>{const P=J;return r(),i("div",le,[s("div",re,[g(Q),g(P,{to:"/login",class:"back !transform-none"},{default:E(()=>[c(o(e(a)("[password_forgot] Go Back")),1)]),_:1}),s("h2",ie,o(e(a)("[password_forgot] Forgot Password ?")),1),s("p",de,[c(o(e(a)("[password_forgot] Enter the email address you used when you joined and we’ll send you instructions to reset your password."))+" ",1),t[4]||(t[4]=s("br",null,null,-1)),t[5]||(t[5]=s("br",null,null,-1)),c(" "+o(e(a)("[password_forgot] For security reasons, we do NOT store your password. So rest assured that we will never send your password via email.")),1)]),s("div",ue,[e(v)?(r(),i("div",ce,o(e(a)("[password_forgot] We have e-mailed your password reset link!")),1)):h("",!0),e(m)?(r(),i("div",me,o(e(m)),1)):h("",!0),s("div",ge,[s("div",fe,[z(s("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>U(u)?u.value=l:null),class:p({"input-filled":e(u)}),onFocus:t[1]||(t[1]=l=>B("email"))},null,34),[[H,e(u)]]),s("label",pe,o(e(a)("[password_forgot] Email")),1)])]),s("button",{onClick:L,class:"btn main-btn w-full"},[e(w)?(r(),i("span",_e,[g(e(ae),{class:"!w-[22px] !h-[22px] !animate-[spin_2s_linear_infinite]",weight:"bold"}),c(" "+o(e(a)("[global] Loading")),1)])):(r(),i("span",ve,o(e(a)("[password_forgot] Send Request")),1))])]),s("div",we,[s("div",he,[(r(!0),i(y,null,W(e(q),l=>(r(),X(P,{key:l.slug,to:`/pages/legal/${l.slug}`,target:"_blank"},{default:E(()=>[l.is_custom?(r(),i(y,{key:1},[c(o(l.title),1)],64)):(r(),i(y,{key:0},[c(o(e(a)("[landing_page_footer] "+l.title)),1)],64))]),_:2},1032,["to"]))),128))]),e(M)?(r(),i("div",{key:0,class:p(["theme-switch-toggle flex items-center justify-start self-end",{dark:e(f)==="dark",light:e(f)==="light"}])},[s("div",{class:p(["light flex items-center",{active:e(f)==="light"}]),onClick:t[2]||(t[2]=l=>e(x)("light"))},[g(te,{class:"w-5 h-5 mr-1"})],2),s("div",{class:p(["dark flex items-center",{active:e(f)==="dark"}]),onClick:t[3]||(t[3]=l=>e(x)("dark"))},[g(oe,{class:"w-4 h-4 mr-1"})],2)],2)):h("",!0)])])])}}});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.