1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0a841-ea3f-0000-80d7-56c4faceb82d";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="61dce95f-2021-584c-a81a-b3a59185d7b7")}catch(e){}}();import{r,o as v,c as l,b as n,e as s,g as c,q as m,w as p,f as x,H as y,p as b,h as g,ag as w,D as h}from"./index-Dv0XZx9Q.js";const k={class:"h-full mt-3"},_={class:"flex flex-col items-center justify-center"},S={class:"form-control w-full mt-2"},C={class:"label"},j={key:0,class:"label-text-alt text-red-600"},B={class:"flex justify-center mt-3"},E={key:1,class:"rounded-md bg-green-50 p-4 mt-6"},N={__name:"ResendConfirmation",setup(M){w();const t=r(""),a=r(!0),o=r(!1);v(()=>{});const f=()=>{/\S+@\S+\.\S+/.test(t.value)?a.value=!0:a.value=!1},d=async()=>{try{const u=await h.post("/auth/resend-verification",{email:t.value});o.value=!0,t.value=""}catch{o.value=!0,t.value=""}};return(u,e)=>
1(n(),l("div",k,[s("div",_,[e[5]||(e[5]=s("div",{class:"flex flex-col items-center justify-center"},[s("h1",{class:"text-3xl font-bold"},"Spam happens!"),s("p",{class:"text-gray-500 text-center mt-2"},[c(" If you didn't get the confirmation link you might want to whitelist us. Meanwhile, let's send you a new one!"),s("br"),c(" Enter your email address below and we'll send you a link to confirm your email address. ")])],-1)),o.value?(n(),l("div",E,e[4]||(e[4]=[g('<div class="flex"><div class="flex-shrink-0"><svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div><div class="ml-3"><p class="text-sm font-medium text-green-800"> Success! A shiny new link is just an email away! <br><span class="text-green-800/80">Check your inbox for a link to confirm your email address.</span><br><span class="text-green-800/50 text-sm">Assuming that email address is in our system, of course.</span></p></div></div>',1)]))):(n(),l("form",{key:0,class:"w-1/3",onSubmit:m(d,["prevent"])},[s("div",S,[s("label",C,[e[3]||(e[3]=s("span",{class:"label-text"},"Email address",-1)),a.value?x("",!0):(n(),l("span",j,"Please enter a valid email address"))]),p(s("input",{type:"email",id:"email","onUpdate:modelValue":e[0]||(e[0]=i=>t.value=i),autocomplete:"email",onBlur:f,onFocus:e[1]||(e[1]=i=>a.value=!0),placeholder:"Your email address",class:"input input-bordered w-full"},null,544),[[y,t.value]])]),s("div",B,[s("button",{type:"submit",onClick:e[2]||(e[2]=m(i=>d(),["prevent"])),class:b(["flex w-full justify-center rounded-md border border-transparent bg-green-600 py-2 px-4 text-sm font-medium text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2",{"btn-disabled":!a.value}])}," Summon Reset Owl ",2)])],32))])]))}};export{N as default}; 2//# sourceMappingURL=ResendConfirmation-B4pPprQ5.js.map 3 4//# chunkId=61dce95f-2021-584c-a81a-b3a59185d7b7
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.