PageSourceSearch

https://app.prompts.ai/_next/static/chunks/3525.a18afe391b0eb5a0.js

js prompts.ai collected 2026-09-26 08:29:24 UTC 2,295 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3525],{93525:(a,e,t)=>{t.r(e),t.d(e,{default:()=>N});var l=t(37876),i=t(14232),o=t(89099),r=t(74695),n=t(51413),d=t(53206),c=t(37082),u=t(2839),s=t(34356),m=t(99705),v=t(59456),p=t(35573),f=t(90210),C=t(26627),h=t(6009);let N=a=>{let{children:e}=a,t=(0,o.useRouter)(),N=(0,r.wA)(),{profileApi:g}=(0,s.A)(),{setLoading:w}=(0,m.j)(),{allQuries:j,changeAllQuries:A}=(0,f.Y)(),b=(0,i.useCallback)(async a=>{w(!0);let e=JSON.parse(window.localStorage.getItem(v.VR)),{user_id:l,email:i,name:o}=a.data,r=v.y5.AMAZON,n={loginWith:r,amazonId:l,firstName:o,lastName:""};if((null==e?void 0:e.referralCode)&&(n.referralCode=null==e?void 0:e.referralCode),(null==e?void 0:e.invitationCode)&&(n.invitationCode=null==e?void 0:e.invitationCode),(null==e?void 0:e.cameFromWaitlist)&&(n.cameFromWaitlist=!0),!l)return w(!1);i&&(n.email=i);try{var s,m,f,j,b;let a=await (0,d.api)({endpoint:c.jm,payloadData:n});if((0,p.lA)(a)){localStorage.setItem(v.UC,!0);let{id:e,accessToken:l,email:i,isNewUser:o=!1}=null==a||null==(s=a.data)?void 0:s.data;if(N((0,u.xX)({...a.data.data,email:i})),A(["referralCode","cameFromWaitlist","invitationCode"]),l&&i){(0,p.cq)(null==a||null==(m=a.data)?void 0:m.data);let e=await g();o&&((a=>{var e,t;let l={userData:{email:(0,C.YZ)(null==a?void 0:a.email)},customData:{source:"Website",firstName:(0,C.YZ)(null!=(e=null==a?void 0:a.firstName)?e:""),lastName:(0,C.YZ)(null!=(t=null==a?void 0:a.lastName)?t:"")}};(0,C.xf)("CompleteRegistration",l)})(e),(0,h.h)(e,v.Bb.AMAZON)),t.push("".concat(v.ij));return}{let a=r.toLowerCase();t.push("".concat(v.ij,"/register/").concat(a,"/").concat(e));return}}if((null==a||null==(f=a.data)?void 0:f.errorCode)==="AUTH135"){let{id:e,email:l}=null==(j=a.data)?void 0:j.data;N((0,u.xX)({...null==a||null==(b=a.data)?void 0:b.data,email:l}));let i=r.toLowerCase();return t.push("".concat(v.ij,"/register/").concat(i,"/").concat(e))}w(!1)}catch(a){w(!1)}},[j]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(n.Zm,{client_id:"amzn1.application-oa2-client.800c53e16f6340caa52d52cb456005e3",redirect_uri:"".concat("https://app.prompts.ai","/login/oauth/redirect/amazon"),onResolve:a=>b({...a,allQuries:j}),onLoginStart:()=>w(!0),onReject:a=>{w(!1)},scope:"profile",children: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.