PageSourceSearch

https://testatomic.com/_next/static/chunks/2850-b821ab608d537747.js

js testatomic.com collected 2026-10-02 01:45:51 UTC 7,786 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2850,4714],{14714:(e,r,s)=>{s.d(r,{getFunctionsBaseUrl:()=>n});var i=s(32766);function n(){let e="https://us-central1-atomic-production-95272.cloudfunctions.net";if(e)return e.replace(/\/$/,"");let r="atomic-production-95272";if(!r)return"";let s="us-central1",n=window.location.hostname;return n&&(0,i.pn)(n)?"http://localhost:4003/".concat(r,"/").concat(s):"https://".concat(s,"-").concat(r,".cloudfunctions.net")}},26689:(e,r,s)=>{s.d(r,{IG:()=>m,db:()=>g,j2:()=>f});var i=s(25576),n=s(9718),t=s(44766),a=s(92405),o=s(40298),u=s(62172),l=s(32766);let c=(0,i.Wp)({apiKey:"AIzaSyDWAzIlGWdwtVkWhNfHkttm40As7BXU2Uo",authDomain:"atomic-production-95272.firebaseapp.com",projectId:"atomic-production-95272",storageBucket:"atomic-production-95272.firebasestorage.app",messagingSenderId:"56755488269",appId:"1:56755488269:web:173cbcb322bdf946ce7744",measurementId:"G-PSFHDSZ79V"}),d="6LfpcGYtAAAAAEiYhVraYNF6J4dXf1JzNa1DVc-X";d?((0,l.AM)(""),(0,n.Ay)(c,{provider:new n.yG(d),isTokenAutoRefreshEnabled:!0})):console.warn("[app-check] NEXT_PUBLIC_FIREBASE_APPCHECK_SITE_KEY is unset — App Check is disabled."),(0,t.TT)().then(e=>{e&&(0,t.P5)(c)});let f=(0,a.xI)(c),g=(0,o.aU)(c),m=(0,u.c7)(c)},35728:(e,r,s)=>{s.d(r,{Q:()=>u,p:()=>l});var i=s(92405),n=s(26689),t=s(40298),a=s(76380),o=s(14714);async function u(e){let{email:r,password:s}=e;try{let e=await (0,i.x9)(n.j2,r,s),o=await e.user.getIdTokenResult(!0);if((0,a.q5)(o.claims.platform))return await (0,i.CI)(n.j2),{success:!1,error:"Product administration accounts sign in through the admin console."};if(!e.user.emailVerified){let r=(0,t.H9)(n.db,"users",e.user.uid),s=await (0,t.x7)(r);if(s.exists()){let r=s.data();!r||"invited"!==r.status||r.emailVerified||r.isTempPasswordChanged||(console.warn("User is invited but not verified. Sending verification email."),await (0,i.gA)(e.user))}return await (0,i.CI)(n.j2),{success:!1,error:"Your email address is not verified. Please check your inbox for a verification email and follow the instructions before logging in."}}return{success:!0,user:e.user}}catch(e){if("object"!=typeof e||null===e||!("code"in e)&&!("message"in e))return{success:!1,error:"Sign in failed"};if("auth/invalid-credential"===e.code||"auth/user-not-found"===e.code||"auth/wrong-password"===e.code||"INVALID_LOGIN_CREDENTIALS"===e.message)return{success:!1,error:"Invalid email or password."};if("auth/too-many-requests"===e.code||"TOO_MANY_ATTEMPTS_TRY_LATER"===e.message)return{success:!1,error:"Too many failed attempts. Please try again later."};if("Please verify your email before logging in."===e.message)return{success:!1,error:e.message};else return{success:!1,error:e.message||"Sign in failed"}}}async function l(e){try{let r=await e.getIdToken(!0);if(!r)return{success:!1,error:"Sign in failed"};let s=(0,o.getFunctionsBaseUrl)();if(!s)return{success:!1,error:"Functions base URL not configured"};if(!(await fetch("".concat(s,"/inviteUser"),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:r})})).ok)return await (0,i.CI)(n.j2),{success:!1,error:"Sign in failed"};return{success:!0,error:"Sign in successful"}}catch(e){return{success:!1,error:"Sign in failed"}}}},62850:(e,r,s)=>{s.d(r,{BG:()=>w,CL:()=>p,FO:()=>f,_O:()=>c,gG:()=>d,iZ:()=>m,mW:()=>h,nc:()=>g});var i=s(71620),n=s(92405),t=s(40298),a=s(26689),o=s(65618),u=s(97552),l=s(35728),c=function(e){return e.Invited="invited",e.Active="active",e.Disabled="disabled",e.Unverified="unverified",e}({}),d=function(e){return e.Admin="Admin",e.Editor="Editor",e.Viewer="Viewer",e}({});function f(e){return Object.values(c).includes(e)?e:"invited"}let g=(0,i.v)((e,r)=>({user:null,isLoading:!0,error:null,actions:{logout:async()=>{e({user:null,isLoading:!0,error:null}),(0,o.Md)();try{a.j2&&await (0,n.CI)(a.j2)}catch(e){console.error("Error during logout:",e)}finally{e(e=>({...e,isLoading:!1}))}},initializeAuthListener:()=>(r().isLoading||e({isLoading:!0,error:null}),(0,n.hg)(a.j2,async r=>{if(r&&r.emailVerified)try{try{await r.getIdToken(!0)}catch(e){console.warn("Failed to refresh ID token claims:",e)}let i=(0,t.H9)(a.db,"users",r.uid),o=await (0,t.x7)(i);if(o.exists()){var s;let i=o.data();if("invited"===i.status&&!i.isTempPasswordChanged&&i.tempPassword)if(await (0,l.p)(r))i.status="active",i.isTempPasswordChanged=!1,i.tempPassword=null;else throw Error("Unable to update your account status. Please try again later or contact support.");let{fullName:n="",email:t="",companyId:a="",role:c="",status:g="",designation:m="",owner:p=!1}=i,h={uid:i.uid,fullName:n||r.displayName||"",email:t||r.email||"",emailVerified:r.emailVerified,companyId:a,role:function(e){return Object.values(d).includes(e)?e:"Editor"}(c),roleId:"string"==typeof i.roleId?i.roleId:null,status:f(g),designation:m,owner:p,createdBy:i.createdBy||null,isTempPasswordChanged:null!=(s=i.isTempPasswordChanged)&&s,tempPassword:i.tempPassword||void 0,notificationPreferences:(0,u.v8)(i.notificationPreferences)};e({user:h,isLoading:!1,error:null})}else console.warn("User document not found for UID: ".concat(r.uid,". Treating as logged out.")),await (0,n.CI)(a.j2),e({user:null,isLoading:!1,error:"User data not found."})}catch(s){console.error("Error fetching user data:",s);let r="Failed to load user data.";s instanceof Error?r=s.message:"string"==typeof s&&(r=s),e({user:null,isLoading:!1,error:r})}else r&&!r.emailVerified?(console.warn("User email not verified. Prompting user to verify and try again."),e({user:null,isLoading:!1,error:"Your email address is not verified. Please check your inbox for a verification email and follow the instructions before logging in."})):(console.warn("User is not signed in. Setting user to null."),e({user:null,isLoading:!1,error:null}))})),triggerUserReload:async()=>{let r=a.j2.currentUser;if(r)try{e({isLoading:!0,error:null}),await r.reload(),e(e=>({...e,isLoading:!1}))}catch(s){console.error("Error reloading user:",s);let r="Failed to refresh user status.";s instanceof Error&&(r=s.message),e({error:r,isLoading:!1})}else console.warn("triggerUserReload called but no current user."),e(e=>({...e,isLoading:!1}))},patchUser:r=>{e(e=>e.user?{user:{...e.user,...r}}:e)}}})),m=()=>g(e=>e.user),p=()=>g(e=>e.isLoading),h=()=>g(e=>e.error),w=()=>g(e=>e.actions)},65618:(e,r,s)=>{s.d(r,{Md:()=>o,eX:()=>a,wi:()=>t});var i=s(27277);let n="selectedAppId";function t(e){i.A.set(n,e,{expires:30})}function a(){return i.A.get(n)}
1function o(){Object.keys(i.A.get()).forEach(e=>{i.A.remove(e)})}},97552:(e,r,s)=>{s.d(r,{Bd:()=>t,lO:()=>i,of:()=>o,v8:()=>a});let i={scheduledRunFailure:!0,scheduledRunSuccess:!1,weeklySummary:!1,productUpdates:!1},n=["scheduledRunFailure","scheduledRunSuccess","weeklySummary","productUpdates"],t=[{key:"scheduledRunFailure",group:"scheduled",label:"Failed scheduled runs",description:"Get an email when one of your scheduled flow or suite runs fails."},{key:"scheduledRunSuccess",group:"scheduled",label:"Successful scheduled runs",description:"Get an email when a scheduled run finishes without errors."},{key:"weeklySummary",group:"general",label:"Weekly run summary",description:"A once-a-week digest of run activity across your workspace."},{key:"productUpdates",group:"general",label:"Product updates",description:"Occasional announcements about new testAtomic features."}];function a(e){var r,s,n,t;return{scheduledRunFailure:null!=(r=null==e?void 0:e.scheduledRunFailure)?r:i.scheduledRunFailure,scheduledRunSuccess:null!=(s=null==e?void 0:e.scheduledRunSuccess)?s:i.scheduledRunSuccess,weeklySummary:null!=(n=null==e?void 0:e.weeklySummary)?n:i.weeklySummary,productUpdates:null!=(t=null==e?void 0:e.productUpdates)?t:i.productUpdates}}function o(e,r){return n.every(s=>e[s]===r[s])}}}]);

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.