PageSourceSearch

https://release-assets.topsurveys.app/static-assets/4ba6411a/_nuxt/DRQSCslT.js

js topsurveys.app collected 2026-09-24 19:29:24 UTC 4,430 bytes, 1 lines download raw bytes

1import{aX as T,d3 as N,cb as O,dY as C,bx as G,dZ as M,c7 as h,by as A,bR as B,bS as k,bz as H,aY as q,aZ as r,a$ as p,b2 as b,b5 as e,b6 as P,d_ as z,d$ as W,bI as X,e0 as Y,bH as K,b3 as Z,b4 as j,e1 as Q,d0 as J,bK as ee,bA as ae,e2 as te,bQ as se,b0 as d,bM as S,e3 as a,e4 as oe,e5 as le,e6 as R,e7 as ne,e8 as ie,e9 as re,cD as ue,c9 as de,ea as ce}from"./9vzcnMbx.js";import{P as _e}from"./79tWL-iB.js";import{_ as me,S as Se,a as fe,b as pe,c as be,d as ye}from"./BtyEzlZR.js";import{u as he,a as Ee,b as Ie}from"./BtDfkA7r.js";import{A as ve}from"./DRvZKcaq.js";import{_ as ge}from"./BUnluGdl.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:'"ts-homepage-2026-09-23T14:12:43.211Z"'}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="7b2ebb85-aedb-4a5d-876d-b73ebb54a8d1",t._sentryDebugIdIdentifier="sentry-dbid-7b2ebb85-aedb-4a5d-876d-b73ebb54a8d1")})()}catch{}const Ae=T({__name:"SignUpSocialStep",setup(t){const s=N(),{t:o}=O(),i=C(),u=G(),{email:l}=he(),c=M("query",{domain:u.host,path:"/"}),_=M("client-country"),{localization:n}=h(u),{userEmail:E,getSocialProvider:w}=h(i);let[,I]=n.value.split("-");const m=A({email:""}),U=Ee({email:l},m.value,{$autoDirty:!1}),{validate:$,getValidationFieldStatus:D,getValidationFieldText:V,isValidationError:L,reset:x}=Ie(U),y=A(!1);B(()=>m.value.email,v=>{i.setEmail(v)}),k(()=>{m.value.email=E.value}),H(()=>{m.value.email="",x()});const F=async()=>{if(await $(),!(L.value||y.value)){!I&&_.value==="US"&&(I="us");try{y.value=!0,await i.registrationSocial({email:m.value.email,selected_language:te(n.value,!0),selected_country:I,...c.value&&c.value})}finally{y.value=!1}}};return(v,f)=>(r(),q("form",{onSubmit:ae(F,["prevent"])},[p(ve,null,{socialSignupMessage:b(()=>[p(ge,{name:e(w)},null,8,["name"]),p(e(P),{size:"sm",weight:"500"},{default:b(()=>[Z(j(e(o)(`sign_up_${e(w)}`)),1)]),_:1})]),field:b(()=>[p(e(X),{modelValue:m.value.email,"onUpdate:modelValue":f[0]||(f[0]=g=>m.value.email=g),type:"email",placeholder:e(o)(e(K)),invalid:!!e(D)("email"),"error-text":e(V)("email"),"data-test-id":e(Y),onFocus:f[1]||(f[1]=g=>e(u).setInputFocused(!0)),onBlur:f[2]||(f[2]=g=>e(u).setInputFocused(!1))},null,8,["modelValue","placeholder","invalid","error-text","data-test-id"])]),policy:b(()=>[p(e(P),{tag:"div",size:"sm",weight:"500","data-test-id":e(W),innerHTML:v.$t(e(z),{privacyLink:e(s)("/policy"),termsLink:e(s)("/terms")})},null,8,["data-test-id","innerHTML"])]),_:1}),p(e(ee),{role:"submit",type:"fill",variant:"secondary","full-width":"",label:e(o)(e(J)),disabled:e(L),loading:y.value,"data-test-id":e(Q)},null,8,["label","disabled","loading","data-test-id"])],32))}}),Te=T({__name:"SocialAuthModal",props:{show:{type:Boolean,default:!1}},emits:["close-modal"],setup(t,{emit:s}){const o=s,i=C(),{t:u}=O(),{authStep:l}=h(i),c=se(()=>({[a.SIGN_IN]:re,[a.SIGN_UP_SOCIAL]:ie,[a.CHECK_EMAIL]:ne,[a.RESET_PASSWORD]:R,[a.RESET_PASSWORD_RESEND]:R,[a.CONFIRM_EMAIL]:le,[a.SOCIAL_EXIST]:oe})[l.value]||""),_=()=>{o("close-modal"),i.resetAuthData()};return(n,E)=>(r(),d(_e,{title:e(u)(c.value),show:t.show,onCloseModal:_},{default:b(()=>[e(l)===e(a).CHECK_EMAIL?(r(),d(me,{key:0,"is-modal":"","show-social-title":""})):S("",!0),e(l)===e(a).SIGN_IN?(r(),d(Se,{key:1,onCloseModal:_})):S("",!0),e(l)===e(a).SIGN_UP_SOCIAL?(r(),d(Ae,{key:2})):S("",!0),e(l)===e(a).SOCIAL_EXIST?(r(),d(fe,{key:3})):S("",!0),e(l)===e(a).CONFIRM_EMAIL?(r(),d(pe,{key:4})):S("",!0),e(l)===e(a).RESET_PASSWORD?(r(),d(be,{key:5})):S("",!0),e(l)===e(a).RESET_PASSWORD_RESEND?(r(),d(ye,{key:6})):S("",!0)]),_:1},8,["title","show"]))}}),Ne=T({__name:"social",setup(t){const s=N(),o=de(),i=ue(),u=C(),{isAuthorized:l}=h(u),c=A(!1);return k(async()=>{if(l.value)return await i.push(s({name:"index"}));if(Object.keys(o.query).length===0)return await i.push(s({name:"login"}));try{const _=o.query.provider===ce.APPLE?{...o.query,...o.hash&&{code:o.hash.replace("#code=","")}}:o.query,n=await u.checkSocial({callbackUrl:_});typeof n=="string"&&(await i.push(s({name:n})),n==="index-auth-social"&&(c.value=!0))}catch{}}),(_,n)=>(r(),d(Te,{show:c.value,onCloseModal:n[0]||(n[0]=E=>c.value=!1)},null,8,["show"]))}});
1export{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.