PageSourceSearch

https://www.viewsapp.ai/assets/review-login-xAooHke8.js

js viewsapp.ai collected 2026-10-05 15:26:10 UTC 9,576 bytes, 1 lines download raw bytes

1import{At as e,G as t,It as n,L as r,M as i,N as a,P as o,R as s,St as c,T as l,Ut as u,at as d,c as f,j as p,n as m,nt as h,s as g,st as _,t as v,vt as y,zt as b}from"./vendor-Nr3T4a0l.js";import{a as x}from"./logger-CqL7pGja.js";import{t as S}from"./errorLogging-y9Tkqa1s.js";import{N as C,h as w}from"./api-CWmQ4eY1.js";import{i as T}from"./appConfig-BVHzg9I_.js";import"./features-B-Kw_94I.js";import{G as E,K as D,W as O,Y as k,mt as A}from"./vuetify-framework-Db7NlevF.js";import{At as j,X as M,b as N}from"./index-2EFrgcSo.js";import{t as P}from"./PublicGoogleCta-DPZ-DGwv.js";t(),b(),c();var F=v(),I={class:`mb-6`},L={class:`text-headline-medium font-weight-bold mt-4`},R={class:`text-body-medium text-medium-emphasis mt-2`},z={key:0,class:`text-caption text-medium-emphasis mt-4 mb-0`},B={key:1,class:`text-error text-body-small mt-2`},V={__name:`GoogleLoginCard`,props:{title:{type:String,default:`Authentication Required`},message:{type:String,default:`Please log in to access this content.`},maxWidth:{type:[Number,String],default:500},enableRecaptcha:{type:Boolean,default:!1}},emits:[`login-success`],setup(t,{emit:n}){let c=t,l=n,f=w(),h=e(!1),g=e(null);function _(e,t,n){x(n,S(e,{context:`google-login-card.${t}`,includeBackendMessage:!0}))}let v,b;if(c.enableRecaptcha){let e=(0,F.useReCaptcha)();v=e.executeRecaptcha,b=e.recaptchaLoaded}async function T(){if(!c.enableRecaptcha)return!0;try{await Promise.race([b(),new Promise((e,t)=>setTimeout(()=>t(Error(`reCAPTCHA script load timeout`)),1e4))]);let e=await Promise.race([v(`google_login`),new Promise((e,t)=>setTimeout(()=>t(Error(`reCAPTCHA execution timeout`)),5e3))]);return!(!e||(await C(e,`google_login`))?.data?.success!==!0)}catch(e){let t=e.message?.includes(`timeout`);return _(e,`verify-recaptcha`,`Google login reCAPTCHA validation error`),typeof Sentry<`u`&&Sentry.captureException(e,{tags:{component:`recaptcha`,errorType:t?`timeout`:`validation_error`},extra:{hasUserAgent:typeof navigator?.userAgent==`string`&&navigator.userAgent.length>0,userAgentLength:typeof navigator?.userAgent==`string`?navigator.userAgent.length:0,online:navigator.onLine,connectionType:navigator?.connection?.effectiveType||`unknown`}}),!1}}async function E(){h.value=!0,g.value=null;try{if(!await T()){g.value=`Security check timed out. Check your connection and try again.`;return}let e=await m();if(!e.code)throw Error(`Google login failed. No authorization code received.`);(await f.loginWithGoogle(e)).success?l(`login-success`):g.value=f.authError||`Login failed. Please try again.`}catch(e){_(e,`handle-login`,`Google login error`),g.value=`An error occurred during login. Please try again.`}finally{h.value=!1}}return(e,n)=>(d(),i(k,{class:`views-google-login__card mx-auto pa-8 text-center`,"max-width":t.maxWidth,variant:`outlined`},{default:y(()=>[p(`div`,I,[s(A,{color:`primary`,size:`48`},{default:y(()=>[...n[0]||=[r(`mdi-shield-account-outline`,-1)]]),_:1}),p(`h2`,L,u(t.title),1),p(`p`,R,u(t.message),1)]),s(P,{loading:h.value,onClick:E},null,8,[`loading`]),t.enableRecaptcha?(d(),o(`p`,z,[...n[1]||=[r(` This site is protected by reCAPTCHA and the Google `,-1),p(`a`,{href:`https://policies.google.com/privacy`,target:`_blank`,rel:`noopener noreferrer`},`Privacy Policy`,-1),r(` and `,-1),p(`a`,{href:`https://policies.google.com/terms`,target:`_blank`,rel:`noopener noreferrer`},`Terms of Service`,-1),r(` apply. `,-1)]])):a(``,!0),g.value?(d(),o(`div`,B,[s(A,{color:`error`,size:`small`,start:``},{default:y(()=>[...n[2]||=[r(`mdi-alert-circle`,-1)]]),_:1}),r(` `+u(g.value),1)])):a(``,!0)]),_:1},8,[`max-width`]))}};t(),c();var H={class:`review-login`},U={class:`review-login__headline text-center text-md-left`},W={class:`review-login__eyebrow`},G={class:`review-login__steps`,"aria-label":`Review by Views workflow`},K={class:`review-login__access-panel`},q={class:`review-login__trust-list`,"aria-label":`Review workspace trust details`},J={class:`review-login__model-proof`,"aria-label":`AI providers available in Views`},Y={class:`review-login__model-marquee`},X={class:`review-login__model-list`},Z=[`src`,`alt`],Q={"aria-hidden":`true`,class:`review-login__model-list`},$=[`src`],ee={class:`review-login__feature-row`,"aria-label":`Review by Views features`},te=`/review`,ne=N({__name:`review-login`,setup(e){let t=g(),i=f(),a=w(),c=T(),u=[{label:`OpenAI`,logo:M(`openai`)},{label:`Google`,logo:M(`google`)},{label:`Anthropic`,logo:M(`anthropic`)},{label:`Perplexity`,logo:M(`perplexity`)},{label:`Meta`,logo:M(`meta`)},{label:`Mistral`,logo:M(`mistral`)},{label:`DeepSeek`,logo:M(`deepseek`)},{label:`GLM`,logo:M(`thudm`)},{label:`xAI`,logo:M(`xai`)},{label:`Qwen`,logo:M(`qwen`)},{label:`Microsoft`,logo:M(`microsoft`)},{label:`Cohere`,logo:M(`cohere`)},{label:`Groq`,logo:M(`groq`)},{label:`z.ai`,logo:M(`zai`)},{label:`Moonshot`,logo:M(`moonshot`)},{label:`Baidu`,logo:M(`baidu`)}
1].filter(e=>e.logo);j({title:`Review by Views | ${c}`,description:`Review any text with multiple AI models. Sign in with Google to continue to Review by Views.`,noindex:!0});function m(){let e=t.query.redirect;return typeof e!=`string`||!(e===`/review`||e.startsWith(`/review?`)||e.startsWith(`/review#`))||e.startsWith(`//`)?te:e}async function v(){await i.replace(m())}return h(()=>{a.userIsAuthenticated&&a.hasValidToken&&v()}),(e,t)=>(d(),o(`section`,H,[s(D,{class:`review-login__container`},{default:y(()=>[s(O,{class:`review-login__row align-center`},{default:y(()=>[s(E,{cols:`12`,md:`7`},{default:y(()=>[p(`div`,U,[p(`div`,W,[s(A,{size:`15`},{default:y(()=>[...t[0]||=[r(`mdi-shield-star-outline`,-1)]]),_:1}),t[1]||=r(` REVIEW BY VIEWS `,-1)]),t[8]||=p(`h1`,{class:`review-login__title mb-4`},[r(` See what deserves a second look before `),p(`span`,{class:`gradient-text-accent`},`you share it.`)],-1),t[9]||=p(`p`,{class:`review-login__copy mb-5`},` Paste any text: a memo, report, claim, pitch, article, or draft. Review by Views compares how multiple AI models interpret it and surfaces weak support, contradictions, outdated details, and other points worth checking. `,-1),p(`ol`,G,[p(`li`,null,[s(A,{class:`review-login__step-icon`,size:`28`},{default:y(()=>[...t[2]||=[r(`mdi-file-upload-outline`,-1)]]),_:1}),t[3]||=p(`span`,null,[p(`strong`,null,`Add your text`),p(`small`,null,`Paste text to begin`)],-1)]),p(`li`,null,[s(A,{class:`review-login__step-icon`,size:`28`},{default:y(()=>[...t[4]||=[r(`mdi-cube-scan`,-1)]]),_:1}),t[5]||=p(`span`,null,[p(`strong`,null,`Start a review`),p(`small`,null,`Compare perspectives across models`)],-1)]),p(`li`,null,[s(A,{class:`review-login__step-icon`,size:`28`},{default:y(()=>[...t[6]||=[r(`mdi-shield-check-outline`,-1)]]),_:1}),t[7]||=p(`span`,null,[p(`strong`,null,`See what to check`),p(`small`,null,`Review signals and supporting context`)],-1)])]),t[10]||=p(`div`,{class:`review-login__built-for`},[p(`p`,{class:`review-login__section-label mb-1`},`BUILT FOR`),p(`p`,{class:`review-login__microcopy mb-0`},` Reports, claims, pitch decks, research notes, marketing copy, and strategic documents that need a careful review before they go out. `)],-1)])]),_:1}),s(E,{class:`review-login__access-col`,cols:`12`,md:`5`},{default:y(()=>[p(`div`,K,[s(V,{class:`review-login__card`,title:`Start a review`,message:`Sign in with Google to open your private Review by Views workspace.`,"max-width":620,onLoginSuccess:v}),p(`ul`,q,[p(`li`,null,[s(A,{size:`20`},{default:y(()=>[...t[11]||=[r(`mdi-lock-check-outline`,-1)]]),_:1}),t[12]||=p(`span`,null,[p(`strong`,null,`Your reviews are private by default`),p(`small`,null,`Only you can view your workspace.`)],-1)]),p(`li`,null,[s(A,{size:`20`},{default:y(()=>[...t[13]||=[r(`mdi-shield-check-outline`,-1)]]),_:1}),t[14]||=p(`span`,null,[p(`strong`,null,`No credit card required`),p(`small`,null,`Free to start. Pay only for what you use.`)],-1)]),p(`li`,null,[s(A,{size:`20`},{default:y(()=>[...t[15]||=[r(`mdi-cloud-lock-outline`,-1)]]),_:1}),t[16]||=p(`span`,null,[p(`strong`,null,`Secure workspace`),p(`small`,null,`Designed for sensitive review workflows.`)],-1)])])]),t[17]||=p(`p`,{class:`review-login__access-note mt-4 mb-0`},` Trusted by analysts, researchers, and teams `,-1)]),_:1})]),_:1}),p(`div`,J,[p(`div`,Y,[p(`ul`,X,[(d(!0),o(l,null,_(n(u),e=>(d(),o(`li`,{key:e.label},[p(`img`,{src:e.logo,alt:e.label},null,8,Z)]))),128))]),p(`ul`,Q,[(d(!0),o(l,null,_(n(u),e=>(d(),o(`li`,{key:`duplicate-${e.label}`},[p(`img`,{src:e.logo,alt:``},null,8,$)]))),128))])])]),p(`div`,ee,[p(`section`,null,[s(A,{size:`30`},{default:y(()=>[...t[18]||=[r(`mdi-vector-combine`,-1)]]),_:1}),t[19]||=p(`span`,null,[p(`strong`,null,`Compare across models`),p(`small`,null,`Run the same text across 40+ AI models at once.`)],-1)]),p(`section`,null,[s(A,{size:`30`},{default:y(()=>[...t[20]||=[r(`mdi-alert-decagram-outline`,-1)]]),_:1}),t[21]||=p(`span`,null,[p(`strong`,null,`Find what needs attention`),p(`small`,null,`Surface unsupported claims, contradictions, outdated details, and other weak spots.`)],-1)]),p(`section`,null,[s(A,{size:`3
10`},{default:y(()=>[...t[22]||=[r(`mdi-chart-timeline-variant`,-1)]]),_:1}),t[23]||=p(`span`,null,[p(`strong`,null,`Review with context`),p(`small`,null,`See agreement, disagreement, sources, and reasoning before you decide.`)],-1)]),p(`section`,null,[s(A,{size:`30`},{default:y(()=>[...t[24]||=[r(`mdi-text-box-check-outline`,-1)]]),_:1}),t[25]||=p(`span`,null,[p(`strong`,null,`Keep the takeaway clear`),p(`small`,null,`Get a concise summary without losing the underlying context.`)],-1)])])]),_:1})]))}},[[`__scopeId`,`data-v-591dc218`]]);export{ne 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.