PageSourceSearch

https://tsn.ua/static/build/js/chunks/EmailVerificationModal.DIirX2IG.js

js tsn.ua collected 2026-09-24 07:02:12 UTC 2,291 bytes, 1 lines download raw bytes

1import{w as S}from"./runtime-dom.esm-bundler.hR_rE5am.js";import{t as o}from"./translate.C4wggBpu.js";import{m as E,c as p,f as y,g as w}from"./useProfileApi.BbSHL9GU.js";import{p as k}from"./processErrorResponse.DeiosO_S.js";import{u as v}from"./useAuthApi.CbmEB9Gy.js";import{J as C,L as u,M as V,N as M,O as f,P as _,S as s,Q as r,W as e,_ as l,R as N,F as B}from"./runtime-core.esm-bundler.B6keTsmA.js";import"./convertToUrlSearchParams.D6QR1eDk.js";import"./index.D_5av9BF.js";const F={class:"m-header"},R={class:"c-title text-2xl mb-5"},A={class:"text-text/60"},T={class:"text-text"},q={class:"text-text/60 mt-2"},D=["disabled"],I=["aria-label"],J={class:"m-body"},L=["src"],O={key:0,class:"f-error text-center md-max:text-xs mb-2"},P={class:"mt-6"},X=C({__name:"EmailVerificationModal",props:{email:{}},setup(h){const g=h,t=u({isSending:!1,isSent:!1}),a=u({}),x=window.tsn.images.confirmEmail,{sendVerificationEmail:b}=v(),c=()=>{E.close(),p(a)},m=async()=>{if(!t.isSending){t.isSending=!0,p(a);try{await b({email:g.email}),t.isSent=!0,setTimeout(()=>{t.isSending=!1},2500)}catch(n){const i=await k(n);i&&i.errors&&y(a,i.errors),t.isSending=!1}}},d=V(()=>w(a));return M(()=>{t.isSent||m()}),(n,i)=>(f(),_(B,null,[s("div",F,[s("hgroup",null,[s("h2",R,r(e(o)("Підтвердіть свою пошту")),1),s("p",A,[l(r(e(o)("Ми надіслали листа на %s").replace("%s","")),1),s("b",T,r(n.email),1),l(". "+r(e(o)("Підтвердіть свою пошту, щоб мати змогу залишати коментарі")),1)]),s("p",q,[l(r(e(o)("Лист не надійшов?"))+" ",1),s("a",{href:"#",class:"underline text-primary",disabled:t.isSending,onClick:S(m,["prevent"])},r(t.isSending?e(o)("Надсилання")+"…":e(o)("Надіслати ще раз")),9,D)])]),s("button",{type:"button",class:"m-close","aria-label":e(o)("Закрити модальне вікно"),onClick:c},i[0]||(i[0]=[s("i",{class:"i-icon i-icon-close"},null,-1)]),8,I)]),s("div",J,[s("img",{class:"block mx-auto",src:e(x),width:"360",height:"184"},null,8,L),d.value?(f(),_("p",O,r(d.value)+". ",1)):N("",!0),s("div",P,[s("button",{type:"button",class:"f-btn f-btn--primary w-full rounded-full",onClick:c},r(e(o)("Зрозуміло")),1)])])],64))}});export{X 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.