PageSourceSearch

https://www.visualscale.ai/static/js/967.c203d856.chunk.js

js visualscale.ai collected 2026-10-05 14:20:00 UTC 6,913 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvisuals_scale=self.webpackChunkvisuals_scale||[]).push([[967],{2070:(e,n,s)=>{s.d(n,{A:()=>o});const o={overlay:"SignupLogin_overlay__4cxa3",modal:"SignupLogin_modal__Cc+wi",logo:"SignupLogin_logo__PL0gB",heading:"SignupLogin_heading__QD1Tf",subheading:"SignupLogin_subheading__-wXmf",authButton:"SignupLogin_authButton__jAXgd",terms:"SignupLogin_terms__iVfJS",closeIcon:"SignupLogin_closeIcon__bIdox",centerContent:"SignupLogin_centerContent__P2I9Z",continueText:"SignupLogin_continueText__ih0lC",formGroup:"SignupLogin_formGroup__cgaua",error:"SignupLogin_error__kDPe9",buttonGroup:"SignupLogin_buttonGroup__MSzHO",signupBtn:"SignupLogin_signupBtn__y8buP",backBtn:"SignupLogin_backBtn__6I2jn",login:"SignupLogin_login__OEnrm"}},2994:(e,n,s)=>{s.d(n,{A:()=>h});var o=s(7635),i=s(3924),a=s(6049),t=s(1273),r=s(105),l=s(7393),c=s(5338),d=s(2700),u=s(4664),g=s(9950),_=s(6434),A=s(4414);const h=e=>{let{children:n,loading:s,subHeading:h,setLoading:p,hideGoogleLogin:m=!1,heading:w="Welcome to Visualscale"}=e;const v=(0,u.Zp)();let b=(0,t.Ti)();const x=(0,_.A)();(0,g.useEffect)((()=>{var e,n;null===b||void 0===b||null===(e=b.user)||void 0===e||!e.id||null!==b&&void 0!==b&&null!==(n=b.user)&&void 0!==n&&n.is_guest||v(d.b.STUDIO)}),[b]);return(0,A.jsx)("div",{className:o.A.root,style:{height:x},children:(0,A.jsxs)("div",{className:o.A.wrap,children:[(0,A.jsx)("div",{className:o.A.logo,children:(0,A.jsx)("img",{src:i,alt:""})}),(0,A.jsxs)("div",{className:o.A.centerContent,children:[(0,A.jsx)("div",{className:o.A.heading,children:w}),(0,A.jsx)("div",{className:o.A.subheading,children:h})]}),!m&&(0,A.jsx)("div",{className:o.A.centerContent,children:(0,A.jsx)(c.A,{onSuccessGoogle:async e=>{p(!0);let n={access_token:null===e||void 0===e?void 0:e.token};const s=(0,t.b1)(n),o=await(0,r.$P)(l.nN,s);await(0,t.yN)({data:o,setLoading:p,isAuthFlow:!0}),(0,t.Pq)(null===o||void 0===o?void 0:o.status)},onErrorGoogle:e=>{console.log(e,"error here")}})}),n,(0,A.jsx)(a.A,{loading:s,position:"fixed"}),(0,A.jsxs)("div",{className:o.A.terms,children:["By continuing, you agree to our ",(0,A.jsx)("span",{onClick:()=>{window.open("/terms-and-conditions-of-use","_blank")},children:"Terms of Services"})," ","and ",(0,A.jsx)("span",{onClick:()=>{window.open(d.b.PRIVACY_POLICY,"_blank")},children:"Privacy Policy"})]})]})})}},3924:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC5SURBVHgB7ZbhCcJADIVftIPoJNZBlHMEJxAnsY7gBF4nsW7gAhKf4C9JKFdKoZAH/ZNH7qPtuxDZQS8wtASODeSFQu2hJwVW/3XWrpUAyek78ymG8dCaZ9aG1S4woQI2iiRBk2W8gQ0GiCluHSuL18QIP2BEuE/8VFtemex40ylgAQtYwGYCG33qc7I/+QadYWXhdFeriQ1rTu8OheICdbd2EEIOEZD5wSr+uMbxihfUn25qpPFb+wD0rSmcM2nKPAAAAABJRU5ErkJggg=="},5338:(e,n,s)=>{s.d(n,{A:()=>r});var o=s(8656),i=s(2070),a=s(7168),t=s(4414);const r=e=>{let{onSuccessGoogle:n,onErrorGoogle:s}=e;const r=(0,a.mg)({clientId:"922375401464-11ticbol6cqhb69ler3sori39np01976.apps.googleusercontent.com",onSuccess:e=>{console.log("Google login success",e),l(null===e||void 0===e?void 0:e.access_token)},onFailure:e=>{console.error("Login Failed:",e),s(e)},scope:"profile email"}),l=async e=>{try{const s=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${e}`}}),o=await s.json(),i={token:e,email:o.email,name:o.name,picture:o.picture};n(i)}catch(s){console.error("Failed to fetch user data:",s)}};return(0,t.jsxs)("div",{className:i.A.authButton,onClick:()=>r(),children:[(0,t.jsx)(o.sn,{}),(0,t.jsx)("span",{className:i.A.continueText,children:"Continue with Google"})]})}},6434:(e,n,s)=>{s.d(n,{A:()=>i});var o=s(9950);const i=function(){const[e,n]=(0,o.useState)(window.innerHeight);return(0,o.useEffect)((()=>{const e=()=>n(window.innerHeight);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}},7635:(e,n,s)=>{s.d(n,{A:()=>o});const o={root:"User_root__EWoLv",wrap:"User_wrap__nxZWQ",logo:"User_logo__Gqnrg",centerContent:"User_centerContent__ANWKp",heading:"User_heading__mnJ8e",subheading:"User_subheading__8cS+I",terms:"User_terms__u5KYX",formGroup:"User_formGroup__tbPQw",error:"User_error__BFHTb",buttonGroup:"User_buttonGroup__pKbjI",signupBtn:"User_signupBtn__Mn-lM",backBtn:"User_backBtn__Fw5q2",login:"User_login__CKrZB"}},7967:(e,n,s)=>{s.r(n),s.d(n,{default:()=>A});var o=s(7635),i=s(1273),a=s(105),t=s(7393),r=s(9950),l=s(8697),c=s(2935),d=s(4664),u=s(2994),g=s(2700),_=s(4414);const A=()=>{const e=(0,d.Zp)(),[n,s]=(0,l.A)(),[A,h]=(0,r.useState)(!1),[p,m]=(0,r.useState)({email:"",password:""}),[w,v]=(0,r.useState)({}),b=(e,n)=>{m({...p,[e]:n}),v({...w,[e]:""})};return(0,_.jsxs)(u.A,{loading:A,subHeading:"Login to your account",setLoading:h,children:[(0,_.jsxs)("form",{onSubmit:async e=>{null===e||void 0===e||e.preventDefault();const n={};if((0,i.DT)(p.email)||(n.email="Enter a valid email address"),(0,i.Oj)(p.password)||(n.password="Password must be at least 8 characters, include 1 letter and 1 number"),v(n),0===Object.keys(n).length){h(!0);const e=await(0,a.$P)(t.dM,JSON.stringify(p),!1,"jsonHeader");await(0,i.yN)({data:e,setLoading:h,isAuthFlow:!0}),(0,i.Pq)(null===e||void 0===e?void 0:e.status),null!==e&&void 0!==e&&e.status&&m({email:"",password:""})}},style:{width:"100%"},children:[(0,_.jsxs)("div",{className:o.A.formGroup,children:[(0,_.jsx)("label",{children:"Email"}),(0,_.jsx)("input",{value:p.email,onChange:e=>b("email",e.target.value),placeholder:"Email Id"}),w.email&&(0,_.jsx)("div",{className:o.A.error,children:w.email})]}),(0,_.jsxs)("div",{className:o.A.formGroup,children:[(0,_.jsx)("label",{children:"Password"}),(0,_.jsxs)("div",{className:"relative w-full",children:[(0,_.jsx)("input",{type:n?"text":"password",value:p.password,onChange:e=>b("password",e.target.value),placeholder:"Password",className:"w-full"}),(0,_.jsx)("div",{className:"absolute right-3 top-3",children:n?(0,_.jsx)(c.tLq,{className:"eye-icon",onClick:s}):(0,_.jsx)(c.sRK,{className:"eye-icon",onClick:s})})]}),w.password&&(0,_.jsx)("div",{className:o.A.error,children:w.password})]}),(0,_.jsxs)("div",{className:o.A.buttonGroup,children:[(0,_.jsx)("button",{className:o.A.backBtn,onClick:()=>e(g.b.STUDIO),type:"button",children:"Back"}),(0,_.jsx)("button",{className:o.A.signupBtn,type:"submit",children:"Login"})]})]}),(0,_.jsxs)("div",{className:o.A.terms,children:["Forgot your password ? ",(0,_.jsx)("button",{className:o.A.login,onClick:()=>e(g.b.FORGOT_PASSWORD),children:"Reset Password"})]}),(0,_.jsxs)("div",{className:o.A.terms,children:["Don't have an account"," ",(0,_.jsx)("button",{className:o.A.login,onClick:()=>e(g.b.SIGN_UP),children:"Signup"})]})]})}},8697:(e,n,s)=>{s.d(n,{A:()=>i});var o=s(9950);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[n,s]=(0,o.useState)(e);return[n,(0,o.useCallback)((()=>{s((e=>!e))}),[])]}}}]);

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.