PageSourceSearch

https://www.pinkpanda.sk/_nuxt/D-VaeuzI.js

js pinkpanda.sk collected 2026-10-03 23:24:04 UTC 2,584 bytes, 1 lines download raw bytes

1import{_ as N}from"./CJbG-lx0.js";import B from"./CN_Obp83.js";import P from"./CQsczvyr.js";import{a as T,h as j,b as I,i as L,n as U,d as E,F as H,o as R}from"./3Ps77TiH.js";import{r as q,l as z}from"./D3pctV-p.js";import{b as _,U as w,M as a,$ as g,u as e,V as c,P as h,z as A,Y as m,S as D,a6 as M}from"./B9WjbkLb.js";import"./BV042yML.js";const Y={class:"w-full flex flex-col justify-center items-center py-8"},G={class:"w-full pb-2"},J={key:0,id:"email-help",class:"p-error w-full text-sm pb-4"},K={class:"flex pt-8 flex-wrap justify-center font-medium"},O={class:"text-brand-500 focus:underline hover:underline cursor-pointer"},ae={__name:"index",setup(Q){const{t}=T(),{$api:x,$toast:l}=j(),d=I(),n=_(!1),r=_(""),p={email:"email|required"},{handleSubmit:y,defineField:b,errors:u,meta:$}=L({validationSchema:p,initialValues:{email:""}}),[i]=b("email"),f=y(async s=>{try{n.value=!0,r.value="";const o=await x.auth.sendResetPasswordLink(s);n.value=!1,o.status==="success"&&(l==null||l.add({status:"SUCCESS",summary:t("success_toaster"),detail:o.message,life:8e3}),U(d("/login")))}catch(o){r.value=o.data.message,n.value=!1}});return E({title:"".concat(t("forgot_password")," | ").concat(t("store_name")),meta:[{property:"og:title",content:"".concat(t("forgot_password")," | ").concat(t("store_name"))},{name:"description",content:t("forgot_password_description")},{property:"og:description",content:t("forgot_password_description")},{name:"twitter:title",content:"".concat(t("forgot_password")," | ").concat(t("store_name"))},{name:"twitter:description",content:t("forgot_password_description")}]}),(s,o)=>{const v=N,S=B,V=P,k=H,C=R;return h(),w("div",Y,[a(k,{name:"form-confirm-email","validation-schema":p,class:"w-full max-w-md flex flex-col justify-center items-center px-4",onSubmit:e(f)},{default:g(()=>[a(v,{class:"!text-black !pb-6",text:s.$t("forgot_password")},null,8,["text"]),c("div",G,[a(S,{modelValue:e(i),"onUpdate:modelValue":o[0]||(o[0]=F=>A(i)?i.value=F:null),name:"email",placeholder:s.$t("email"),pt:e(q),class:"w-full my-1.5"},null,8,["modelValue","placeholder","pt"]),e(u).email&&e($).touched||e(r)?(h(),w("p",J,m(e(u).email||e(r)),1)):D("",!0)]),a(V,{label:s.$t("send_password"),pt:e(z),loading:e(n),"data-testid":"send-password",class:"w-full sm:w-fit self-center min-w-52",onClick:e(f)},null,8,["label","pt","loading","onClick"])]),_:1},8,["onSubmit"]),c("div",K,[a(C,{to:e(d)("/login"),"data-testid":"register-button"},{default:g(()=>[M(m(s.$t("already_know_password"))+" ",1),c("span",O,m(s.$t("login")),1)]),_:1},8,["to"])])])}}};export{ae 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.