PageSourceSearch

https://seomaker.ai/_nuxt-v2/CWDj33f2.js

js seomaker.ai collected 2026-10-05 12:37:16 UTC 8,136 bytes, 1 lines download raw bytes

1import{n as e}from"./DQvjNzka.js";import{At as t,Ct as n,Mt as r,Qn as i,St as a,Xn as o,_n as s,bt as c,dn as l,h as u,ii as d,jr as f,kt as p,lt as m,xr as h,xt as g,yr as _}from"./BPsVqlsv.js";import{_ as v,w as ee,x as y}from"./CTS8L1HF.js";import{n as b}from"./BPM0gr2H.js";import{t as x}from"./ClK-vs_A.js";import{g as S,s as te}from"./BdOgpimk.js";import{A as ne,n as re}from"./C0hueuQh.js";import{t as ie}from"./DUCE3lsP.js";import{n as ae,t as oe}from"./CtZgbgbi.js";import{c as se}from"./B794ZnPg.js";import{t as ce}from"./6zONwhO-2.js";import{n as le,t as C}from"./C_rqo0zA2.js";import{t as w}from"./T0o1c-1C2.js";import{t as T}from"./CNs_Ozdc2.js";import{t as E}from"./CSbRhDS6.js";import{n as D,r as O,t as k}from"./BFzmjuuD2.js";var A={class:`flex min-h-screen items-center justify-center p-6`},j={class:`w-full max-w-md`},M={class:`rounded-ui-lg border border-line bg-surface p-8 shadow-ui`},N={class:`mb-8 flex justify-center pt-2`},P={class:`mb-2 text-center text-2xl font-bold text-ink-900`},F={class:`mb-8 text-center text-ink-600`},I={key:1,class:`py-10 text-center`,"data-testid":`login-google-pending`},L={class:`mt-4 text-ink-600`},R=[`placeholder`],z={for:`login-password`,class:`mb-1 ml-1 block text-sm text-ink-600`},B={class:`mt-4 flex items-center gap-2`},V={for:`login-remember`,class:`cursor-pointer text-sm text-ink-700`},H={class:`mb-5 flex justify-center`},ue={class:`text-center text-sm text-ink-700`},U=r({__name:`login`,setup(r){T({layout:`auth`,auth:!1,middleware:[`redirect-authenticated`]});let{t:U}=e();b(()=>({title:U(`meta-title`)}));let W=u(),G=re(),{login:de,restore:fe,loggedIn:pe,user:me}=ie(),{goTo:K}=D(),{configured:he,pending:ge,hasCallback:_e,start:ve,complete:ye}=k(),q=ne(`redirectToPayment`),J=_({email:``,password:``,remember:!1}),Y=h(!1),X=h(null),Z=h(`error`);l(async()=>{if(!(_e.value&&await xe())){try{await fe()}catch{return}pe.value&&!Y.value&&Q(w(G,C,me.value?.language??S(W.path)))}});function be(){X.value=null,ve(W.query.returnTo,{remember:J.remember})||(Z.value=`error`,X.value=U(`google-failed`))}async function xe(){let e=await ye();return e?e.ok?($(e.user,e.returnTo,{justRegistered:e.justRegistered},e.user.language??e.startedLocale),!0):(Z.value=e.reason===`denied`?`info`:`error`,X.value=Se(e.reason),!0):!1}function Se(e){return U(e===`denied`?`google-denied`:`google-failed`)}function Q(e){window.location.assign(e)}async function Ce(){if(!Y.value){Y.value=!0,X.value=null,Z.value=`error`;try{let e=await de({email:J.email,password:J.password,remember:J.remember});$(e,void 0,{},e.language??S(W.path))}catch(e){Y.value=!1,X.value=we(e)}}}function $(e,t,n,r){let i=le(e,q.value,t??W.query.returnTo,n);switch(i.kind){case`checkout`:K(w(G,se(Number(i.productId)),r));break;case`return-to`:K(w(G,i.path,r));break;case`dashboard`:Q(w(G,C,r))}}function we(e){if(!te(e))return U(`login-failed`);let t=typeof e.data?.message==`string`&&e.data.message!==``?e.data.message:null;switch(e.status){case 401:return t??U(`login-failed`);case 422:return e.firstValidationError?.message??t??U(`login-failed`);case 429:return U(`too-many-attempts`);default:return U(`login-failed`)}}return(e,r)=>{let l=x,u=E,h=ae,_=O,b=oe;return s(),n(`div`,A,[c(`div`,j,[c(`div`,M,[c(`div`,N,[t(l,{to:f(G)({name:`index`}),class:`flex items-center`},{default:o(()=>[...r[3]||=[c(`img`,{src:ce,alt:`Seomaker`,class:`h-[30px] w-auto`},null,-1)]]),_:1},8,[`to`])]),c(`p`,P,d(f(U)(`welcome-back`))+` 👋🏻`,1),c(`p`,F,d(f(U)(`login-slogan`)),1),f(X)?(s(),g(u,{key:0,tone:f(Z),class:`mb-5`,"data-testid":`login-error`},{default:o(()=>[p(d(f(X)),1)]),_:1},8,[`tone`])):a(``,!0),f(ge)?(s(),n(`div`,I,[t(h,{size:`lg`,class:`text-brand`,label:f(U)(`google-pending`)},null,8,[`label`]),c(`p`,L,d(f(U)(`google-pending`)),1)])):(s(),n(m,{key:2},[f(he)?(s(),g(_,{key:0,label:f(U)(`login-google`),"divider-label":f(U)(`or`),onClick:be},null,8,[`label`,`divider-label`])):a(``,!0),c(`form`,{method:`post`,novalidate:``,onSubmit:ee(Ce,[`prevent`])},[r[4]||=c(`label`,{for:`login-email`,class:`mb-1 ml-1 block text-sm text-ink-600`},`Email`,-1),i(c(`input`,{id:`login-email`,"onUpdate:modelValue":r[0]||=e=>f(J).email=e,type:`email`,name:`email`,autocomplete:`email`,required:``,placeholder:f(U)(`email-placeholder`),class:`mb-5 w-full rounded-ui border border-line-strong bg-surface px-3 py-2 text-sm text-ink-900 placeholder:text-ink-400 focus:outline-none focus:ring-2 focus:ring-brand`},null,8,R),[[y,f(J).email]]),c(`label`,z,d(f(U)(`password`)),1),i(c(`input`,{id:`login-password`,"onUpdate:modelValue":r[1]||=e=>f(J).password=e,type:`password`,name:`password`,autocomplete:`current-password`,required:``,placeholder:`············`,class:`w-full rounded-ui border border-line-strong bg-surface px-3 py-2 text-sm text-ink-900 placeholder:text-ink-400 focus:outline-none focus:ring-2 focus:ring-brand`},null,512),[[y,f(J).password]]),c(`div`,B,[i(c(`input`,{id:`login-remember`,"onUpdate:modelValue":r[2]||=e=>f(J).remember=e,type:`checkbox`,name:`remember`,class:`size-4 shrink-0 cursor-pointer rounded-ui-sm border border-line-strong accent-brand focus:ring-2 focus:ring-brand focus:outline-none`,"data-testid":`login-remember`},null,512),[[v,f(J).remember]]),c(`label`,V,d(f(U)(`remember-me`)),1)]),t(b,{type:`submit`,block:``,loading:f(Y),class:`my-6`},{default:o(()=>[p(d(f(U)(`login`)),1)]),_:1},8,[`loading`]),c(`div`,H,[t(l,{to:f(G)({name:`reset-password`}),class:`text-sm font-medium text-brand hover:underline`},{default:o(()=>[p(d(f(U)(`forgot-password`)),1)]),_:1},8,[`to`])]),c(`p`,ue,[p(d(f(U)(`no-account`))+` `,1),t(l,{to:f(G)({name:`register`}),class:`font-medium text-brand hover:underline`},{default:o(()=>[p(d(f(U)(`register`)),1)]),_:1},8,[`to`])])],32)],64))])])])}}});function W(e){let t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:``,resource:{pl:{"welcome-back":{t:0,b:{t:2,i:[{t:3}],s:`Witaj z powrotem!`}},"login-slogan":{t:0,b:{t:2,i:[{t:3}],s:`Zaloguj się, aby zacząć działać!`}},password:{t:0,b:{t:2,i:[{t:3}],s:`Hasło`}},"email-placeholder":{t:0,b:{t:2,i:[{t:3},{t:9},{t:3}],s:`[email protected]`}},login:{t:0,b:{t:2,i:[{t:3}],s:`Zaloguj się`}},register:{t:0,b:{t:2,i:[{t:3}],s:`Zarejestruj się`}},"forgot-password":{t:0,b:{t:2,i:[{t:3}],s:`Zapomniałeś hasła?`}},"remember-me":{t:0,b:{t:2,i:[{t:3}],s:`Zapamiętaj mnie`}},"no-account":{t:0,b:{t:2,i:[{t:3}],s:`Nie masz jeszcze konta?`}},"login-failed":{t:0,b:{t:2,i:[{t:3}],s:`Logowanie nie powiodło się. Spróbuj ponownie.`}},"too-many-attempts":{t:0,b:{t:2,i:[{t:3}],s:`Zbyt wiele prób. Spróbuj ponownie za chwilę.`}},"login-google":{t:0,b:{t:2,i:[{t:3}],s:`Zaloguj się z Google`}},or:{t:0,b:{t:2,i:[{t:3}],s:`lub`}},"google-pending":{t:0,b:{t:2,i:[{t:3}],s:`Logowanie przez Google...`}},"google-denied":{t:0,b:{t:2,i:[{t:3}],s:`Logowanie przez Google zostało anulowane.`}},"google-failed":{t:0,b:{t:2,i:[{t:3}],s:`Logowanie przez Google nie powiodło się. Spróbuj ponownie.`}},"meta-title":{t:0,b:{t:2,i:[{t:3}],s:`Logowanie - Seomaker`}}}
1,en:{"welcome-back":{t:0,b:{t:2,i:[{t:3}],s:`Welcome back!`}},"login-slogan":{t:0,b:{t:2,i:[{t:3}],s:`Log in to get started!`}},password:{t:0,b:{t:2,i:[{t:3}],s:`Password`}},"email-placeholder":{t:0,b:{t:2,i:[{t:3},{t:9},{t:3}],s:`[email protected]`}},login:{t:0,b:{t:2,i:[{t:3}],s:`Sign in`}},register:{t:0,b:{t:2,i:[{t:3}],s:`Sign up`}},"forgot-password":{t:0,b:{t:2,i:[{t:3}],s:`Forgot your password?`}},"remember-me":{t:0,b:{t:2,i:[{t:3}],s:`Remember me`}},"no-account":{t:0,b:{t:2,i:[{t:3}],s:`Don't have an account yet?`}},"login-failed":{t:0,b:{t:2,i:[{t:3}],s:`Login failed. Please try again.`}},"too-many-attempts":{t:0,b:{t:2,i:[{t:3}],s:`Too many requests. Please try again in a moment.`}},"login-google":{t:0,b:{t:2,i:[{t:3}],s:`Sign in with Google`}},or:{t:0,b:{t:2,i:[{t:3}],s:`or`}},"google-pending":{t:0,b:{t:2,i:[{t:3}],s:`Signing in with Google...`}},"google-denied":{t:0,b:{t:2,i:[{t:3}],s:`Google sign-in was cancelled.`}},"google-failed":{t:0,b:{t:2,i:[{t:3}],s:`Google sign-in failed. Please try again.`}},"meta-title":{t:0,b:{t:2,i:[{t:3}],s:`Login - Seomaker`}}}}})}typeof W==`function`&&W(U);var G=U;export{G 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.