PageSourceSearch

https://static-app.klaviyo.com/fender/login.15147b7f9e53ec76.js

js klaviyo.com collected 2026-10-01 08:27:41 UTC 7,011 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_klaviyo_conductor=self.webpackChunk_klaviyo_conductor||[]).push([["13195"],{250943(e,t,r){r.r(t),r.d(t,{default:()=>S}),r(422918),r(171389),r(833264);var a=r(331372),n=r(771704),i=r(868638),l=r(532246),s=r(568775),o=r(405351),c=r(497952),d=r(425208),g=r(707975),u=r(844537),f=r(676505),h=r(681877),m=r(546315),p=r(758438),y=r(302698),w=r(234306),v=r(783164);let A="/dashboard",E="/login",P=e=>!!(e&&(e.startsWith("http")||e.startsWith("/")&&!e.startsWith("//"))),k=e=>{let t=new URL(e,window.location.origin).pathname;return t===E||t===`${E}/`};var L=r(689678);let b="/oauth/authorize",U=()=>a.createElement(h.G,{split:!0,includesSupportLink:!0},a.createElement(i.y,{show:!0,overlay:!1,color:"gray",size:"extra-large"})),x=()=>{let e=(0,u.A)(),{t}=(0,g.B)("login"),r=(0,f.Ay)(),n=(0,m.u)(m.A.Login),i=r.get("next")||void 0,y=r.get("switch_to")||void 0,w=!!r.get("email-changed"),v=!!r.get("confirm_email"),A=!!r.get("should_use_username_and_password"),E=A&&!!y||w||v||!!n,P=(0,a.useMemo)(()=>{let e={};return Array.from(r.entries()).forEach(t=>{e[t[0]]=t[1]}),e},[r]),k=(0,a.useCallback)(()=>{e({pathname:"/register",search:new URLSearchParams(P).toString()},{})},[e,P]),L=(0,a.useCallback)(()=>{e({pathname:"/sso/login",search:new URLSearchParams(P).toString()},{reload:!!y})},[e,P,y]);return a.createElement(h.G,{split:!0,includesSupportLink:!0},E&&a.createElement(l.a,{display:"flex",flexDirection:"column",paddingBottom:"150",width:"466px"},a.createElement(s.C,{show:A&&!!y,message:t("banners.requiresUsernameAndPassword"),variant:"warning",onClose:()=>{},dismissable:!0}),a.createElement(s.C,{message:t("banners.emailUpdated"),show:!!w,variant:"success",onClose:()=>{},dismissable:!0}),a.createElement(s.C,{message:t("banners.emailConfirm"),show:!!v,variant:"success",onClose:()=>{},dismissable:!0}),a.createElement(s.C,{message:n,show:!!n,variant:"error",onClose:()=>{},dismissable:!0})),a.createElement(l.a,{display:"flex"},a.createElement(o._B,null,t("headerText"))),a.createElement(l.a,{display:"flex",width:"360px",flexDirection:"column"},a.createElement(p.QB,{switchTo:y,next:i,allSearchParamsInUrl:P,onSsoLogin:L})),a.createElement(l.a,{alignItems:"center",display:"flex",flexWrap:"wrap",gap:"75",justifyContent:"center",paddingTop:"150"},a.createElement(c.G6,{variant:"secondary"},t("signupPrompt_R4n8k")),a.createElement(d.$,{label:t("letsGetStarted"),onClick:k,size:"small",testId:"register",variant:"secondary"})))},S=()=>{let{isLoading:e}=(0,n.P)(),{isRedirectPending:t}=(()=>{let e=(0,w.ff)(),t=(0,f.Ay)(),r=t.get("switch_to"),n=t.get("next")||void 0,i=!!e&&!r,l=(e=>{if(!(!e?.startsWith("/")||e.startsWith("//"))&&!k(e))return e})(n),s=(0,a.useMemo)(()=>l?l:P(e?.landingPageUrl)?k(e.landingPageUrl)?A:e.landingPageUrl:A,[e?.landingPageUrl,l]),[o,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{c(!1)},[s,i]),(0,a.useEffect)(()=>{if(!i||l)return;let t=e?.landingPageUrl;n&&k(n)?(0,v.wd)("Login authenticated redirect fell back due to login redirect target",{level:"warning",tags:{component:"LoginPage"},extra:{rejectedRedirectUrl:n,fallbackUrl:s,userProfileId:e?.userProfileId}}):t&&!P(t)?(0,v.wd)("Login authenticated redirect fell back due to invalid landingPageUrl",{level:"warning",tags:{component:"LoginPage"},extra:{landingPageUrl:t,fallbackUrl:A,userProfileId:e?.userProfileId}}):t&&k(t)&&(0,v.wd)("Login authenticated redirect fell back due to login redirect target",{level:"warning",tags:{component:"LoginPage"},extra:{rejectedRedirectUrl:t,fallbackUrl:A,userProfileId:e?.userProfileId}})},[e?.landingPageUrl,e?.userProfileId,s,n,l,i]),(0,a.useEffect)(()=>{if(i&&!o){if(s.startsWith("http"))(0,y.A)(s);else{let{pathname:e,search:t,hash:r}=new URL(s,window.location.origin);(0,y.A)({pathname:e,search:t,hash:r})}c(!0)}},[s,o,i]),{isRedirectPending:i}})(),{isRedirectPending:r}=(()=>{let e=(0,w.ff)(),t=(0,f.Ay)().get("next"),r=t?.startsWith(`${b}?`)?t.slice(b.length):void 0,{data:n,isInitialLoading:i}=(0,L.SJ)(r??"",{enabled:!e&&!!r,retry:!1}),l=n?.redirectUrl;return(0,a.useEffect)(()=>{l&&(0,y.A)(l)},[l]),{isRedirectPending:i||!!l}})();return e||t||r?a.createElement(U,null):a.createElement(x,null)}},689678(e,t,r){r.d(t,{eE:()=>f,wC:()=>u,SJ:()=>g});var a=r(416306),n=r(968387),i=r(157048);let l=async e=>{let{data:t}=await a.rP.get(`${i.YM}${e}`);return t},s=async e=>n.default.get(i.kZ,{params:e}).then(({data:e})=>e),o=async(e,t)=>n.default.post(i.kZ,e,{params:t,headers:{"Content-Type":"multipart/form-data"}}).then(({data:e})=>e);var c=r(290451),d=r(179327);function g(e,t){return(0,c.I)(["oauthAuthorizeLoginContext",e],()=>l(e),{cacheTime:0,...t})}function u(e,t){return(0,c.I)(["oauthAuthorizeInformation",e],()=>s(e),t)}let f=e=>(0,d.n)(e=>o(e.body,e.queryParams),e)},546315(e,t,r){r.d(t,{A:()=>d,u:()=>g});var a,n=r(331372),i=r(707975),l=r(7158),s=r(676505),o=r(829096);let c=new Set(["google"]);var d=((a={}).Login="login",a.Register="register",a);let g=e=>{let t=(0,s.Ay)(),r=(0,o.A)(),{t:a}
1=(0,i.B)("appsec"),{toLowerCase:d}=(0,l.s)(),[g]=(0,n.useState)(t.get("social_login_failed_provider")),[u]=(0,n.useState)(t.get("social_login_error_code")??"generic"),f=(0,n.useRef)(!1);(0,n.useEffect)(()=>{g&&!f.current&&(f.current=!0,r(({social_login_failed_provider:e,social_login_error_code:t,...r})=>r,!0))},[g,r]);let h=(0,n.useMemo)(()=>{if("sso_required"===u)return a("socialLoginError.ssoRequired_kP2mN");if("account_deactivated"===u)return a("socialLoginError.accountDeactivated");let t=((e,t)=>{if(!e)return null;let r=t(e);return c.has(r)?e:null})(g,d);return t?"login"===e?a("socialLoginError.providerSignIn",{provider:t}):a("socialLoginError.providerSignUp",{provider:t}):"login"===e?a("socialLoginError.defaultSignIn"):a("socialLoginError.defaultSignUp")},[u,g,e,a,d]);return g?h:null}},829096(e,t,r){r.d(t,{A:()=>o}),r(157149);var a=r(776267),n=r(331372),i=r(844537),l=r(676505),s=r(671172);let o=()=>{let e=(0,a.zy)(),t=(0,i.A)(),r=(0,l.Ay)();return(0,n.useCallback)((a,n)=>{let i={};r.forEach((e,t)=>{let r=i[t];if(r){Array.isArray(r)||(i[t]=[r]);let a=i[t];Array.isArray(a)&&a.push(e)}else i[t]=e});let l=a(i);t({pathname:e.pathname,search:(0,s.A)(l)},{replace:n})},[e.pathname,t,r])}},671172(e,t,r){r.d(t,{A:()=>a}),r(422918),r(171389),r(833264);let a=e=>"string"==typeof e?e:Object.entries(e).reduce((e,[t,r])=>(Array.isArray(r)?r.forEach(r=>{e.append(t,`${r}`)}):null!=r&&e.append(t,`${r}`),e),new URLSearchParams).toString()},63792(e,t,r){r.d(t,{Dl:()=>d,w4:()=>g});var a=r(91497),n=r(855977),i=r(870612),l=r(331372),s=r(725168),o=r(491984),c=e=>{let t=`Display${e}`,r=l.forwardRef(({inverse:r=!1,noSpacing:l=!1,truncated:c=!0,strikethrough:d=!1,textAlign:g,children:u,className:f,testId:h,...m},p)=>(0,i.Pi)((0,s.jsx)("h1",{"data-asc":t,"data-testid":h,...m,ref:p,className:o(n.Ay.heading,n.Ay[`display${e}`],a.Ay[`display${e}`],{[a.Ay.inverse]:r,[n.Ay.strikethrough]:d,[n.Ay.spacing]:!l,[n.Ay[`textAlign-${g}`]]:g},f),children:u}),"string"==typeof u&&c?u:void 0,!1));return r.displayName=t,r},d=(c(1),c(2)),g=c(3)}}]);

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.