"use strict";(globalThis["webpackChunkquasar_project"]=globalThis["webpackChunkquasar_project"]||[]).push([[217],{734:(t,e,a)=>{a.d(e,{A:()=>k});var n=a(1347),o=a(4187),s=a(7763),i=a(8302),l=a(3022),r=a(9431),c=a(5583),p=a(455),m=a(2929);const u={class:"row q-col-gutter-lg"},g={class:"col-12 text-left"},d={class:"text-h5"},h={class:"col-12"},f={class:"col-12"},b={class:"col-12"},k=(0,n.pM)({__name:"EmailConfirmationPage",setup(t){const{t:e}=(0,r.s9)();(0,i.A)({title:e("pages.emailConfirmation.title"),meta:[{property:"og:type",content:"website"},{property:"og:site_name",content:"Quasar Framework"},{property:"robots",content:"index, follow"},{property:"og:title",content:e("pages.emailConfirmation.title")},{property:"og:description",content:e("pages.emailConfirmation.title")},{property:"og:image",content:"https://quasar.dev/logo.png"},{property:"og:url",content:"https://quasar.dev/email-confirmation"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e("pages.emailConfirmation.title")}]});const a=(0,l.A)(),k=(0,p.rd)();async function y(){await k.push({name:"login"})}async function w(){await c.api.post("/resend-confirmation").then(async t=>{console.log(t),200===t?.status&&(a.notify({type:"positive",message:e("messages.confirmationResent")}),await k.push({name:"login"}))}).finally(()=>{console.log("Resend confirmation attempt finished")})}return(0,n.sV)(()=>{const t=(0,m.n)();if(t.isAuthenticated)return k.push({name:"dashboard"})}),(t,i)=>{const l=(0,n.g2)("q-icon"),r=(0,n.g2)("q-btn"),c=(0,n.g2)("q-card-section"),p=(0,n.g2)("q-card"),m=(0,n.g2)("q-page");return(0,n.uX)(),(0,n.Wv)(m,{class:"flex flex-center"},{default:(0,n.k6)(()=>[(0,n.bF)(p,{class:(0,s.C4)([{"shadow-24":!(0,o.R1)(a).platform.is.mobile,"shadow-10":(0,o.R1)(a).platform.is.mobile},"q-pa-sm"]),bordered:"",style:{width:"380px","max-width":"80%"}},{default:(0,n.k6)(()=>[(0,n.bF)(c,null,{default:(0,n.k6)(()=>[(0,n.Lk)("div",u,[(0,n.Lk)("div",g,[(0,n.Lk)("h1",d,[(0,n.bF)(l,{name:"email"}),(0,n.eW)(" "+(0,s.v_)((0,o.R1)(e)("pages.emailConfirmation.title")),1)])]),(0,n.Lk)("div",h,[(0,n.Lk)("p",null,(0,s.v_)((0,o.R1)(e)("pages.emailConfirmation.description")),1)]),(0,n.Lk)("div",f,[(0,n.bF)(r,{label:(0,o.R1)(e)("actions.resendConfirmation"),class:"full-width",color:"primary",glossy:"","icon-right":"send",size:"lg",onClick:w},null,8,["label"])]),(0,n.Lk)("div",b,[(0,n.bF)(r,{label:(0,o.R1)(e)("actions.backToLogin"),class:"full-width",color:"grey",flat:"",size:"sm",onClick:y},null,8,["label"])])])]),_:1})]),_:1},8,["class"])]),_:1})}}})},2217:(t,e,a)=>{a.r(e),a.d(e,{default:()=>u});var n=a(2295),o=a(5013),s=a(3341),i=a(222),l=a(3933),r=a(2677),c=a(272),p=a.n(c);const m=n.A,u=m;p()(n.A,"components",{QPage:o.A,QCard:s.A,QCardSection:i.A,QIcon:l.A,QBtn:r.A})},2295:(t,e,a)=>{a.d(e,{A:()=>n.A});var n=a(734)},2929:(t,e,a)=>{a.d(e,{n:()=>o});var n=a(705);const o=(0,n.nY)("auth",{state:()=>({auth:{}}),getters:{getAuthUser:t=>t.auth,isAuthenticated:t=>t.auth?.token?.length>0},actions:{setAuthUser(t){this.auth=t},clearAuthUser(){this.auth={}}}})}}]);