PageSourceSearch

https://octopusev.com/_next/static/immutable/chunks/2j0aki3x_0nnm.js

js octopusev.com collected 2026-10-02 16:44:58 UTC 11,592 bytes, 19 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="601ec0b5-5541-c8a6-8ddc-27da63131def")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,302437,e=>{"use strict";var t=e.i(881821),a=e.i(684762),r=e.i(143460),n=e.i(651325);e.i(181251);var o=e.i(893756),s=e.i(384092),i=e.i(22156),d=e.i(763135);e.i(560499);var c=e.i(426978);e.i(214671);var l=e.i(890151);e.i(972047);var u=e.i(837710);e.i(322591);var p=e.i(591275);e.i(810015);var y=e.i(79745);e.i(738279);var g=e.i(884876);e.i(35094);var m=e.i(429865);e.i(691698);var h=e.i(527617);e.i(511037);var _=e.i(795452);e.i(968240);var M=e.i(335116);try{var w=window;w._sentryModuleMetadata=w._sentryModuleMetadata||{},w._sentryModuleMetadata[(new w.Error).stack]=Object.assign({},w._sentryModuleMetadata[(new w.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}let b=c.object().shape({email:M.validateEmail}),x=({heading:e,content:a,ctaText:r,isSubmitting:n,error:o,onSignIn:c,setError:M})=>{let w=(0,s.useMediaQueryContext)(),{register:x,handleSubmit:v,setValue:f,formState:{errors:E}}=(0,d.useForm)({mode:"onSubmit",resolver:(0,i.yupResolver)(b)});return(0,t.jsx)(h.Frame,{background:w.md?"secondary":"default",borderRadius:"large",children:(0,t.jsx)(l.Box,{pb:5,px:w.md?5:4,pt:5*!!w.md,children:(0,t.jsxs)(p.Flex,{gap:w.md?5:4,flexDirection:"column",children:[(0,t.jsxs)(p.Flex,{gap:2,flexDirection:"column",children:[(0,t.jsx)(_.Typography,{gutter:!1,variant:_.Variant.H3,component:"h1",align:"center",children:e}),(0,t.jsx)(_.Typography,{gutter:!1,variant:_.Variant.BODY1,align:"center",children:a})]}),(0,t.jsxs)("form",{onSubmit:v(async({email:e})=>{await c(e)}),children:[(0,t.jsxs)(y.Control,{gutter:!0,children:[(0,t.jsx)(m.Input,{id:"email",type:"email",label:"Email",placeholder:"Email address",error:!!E.email||!!o,required:!0,inputProps:{...x("email"),"aria-labelledby":E?.email?"email-error":void 0,onChange:e=>{f("email",e.target.value),o&&M("")}}}),!!E.email&&(0,t.jsx)(g.HelperText,{error:!0,id:"email-error",children:E.email.message}),o&&(0,t.jsx)(g.HelperText,{error:!0,id:"email-error",children:o})]}),(0,t.jsx)(l.Box,{mt:w.md?5:4,children:(0,t.jsx)(u.Button,{id:"submit-email-button",isDisabled:n,type:"submit",isFullWidth:!0,children:r})})]})]})})})};try{var v=window;v._sentryModuleMetadata=v._sentryModuleMetadata||{},v._sentryModuleMetadata[(new v.Error).stack]=Object.assign({},v._sentryModuleMetadata[(new v.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.i(663800);var f=e.i(270459);e.i(267085);var E=e.i(196359);e.i(364235);var j=e.i(350765);e.i(500917);var k=e.i(641654);e.i(998186);var T=e.i(68780);try{var S=window;S._sentryModuleMetadata=S._sentryModuleMetadata||{},S._sentryModuleMetadata[(new S.Error).stack]=Object.assign({},S._sentryModuleMetadata[(new S.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.s(["default",0,()=>{let e,i,d=(0,s.useMediaQueryContext)(),{query:c}=(0,r.useRouter)(),p="https://octopusev.com/login",y=c?.app==="qt",{email:g,isSubmitting:m,shouldShowEmailInput:h,error:_,isTrustedDevice:M,handleSignIn:w,handleVerifyCode:b,handleResetSignIn:v,toggleIsTrustedDevice:S,setError:B}=(0,o.useSignInAndVerifyCode)(),P=(e=h,i=y,e?i?"/graphics/salSacSavings.svg":"/graphics/manageYourCar.svg":"/graphics/newEmailAlert.svg"),O=(0,n.useMemo)(()=>({heading:y?"Ready to check out the cars?":"Manage your car",content:y?"Pop in your email address to have a look at how much you'll save under your Workplace's Salary Sacrifice scheme":"Enter your email address and we'll send you a code for a password-free sign in.",ctaText:"Next"}),[y]),I=(0,n.useMemo)(()=>(0,t.jsx)(x,{heading:O.heading,content:O.content,ctaText:O.ctaText,isSubmitting:m,error:_,onSignIn:w,setError:B}),[O,m,_,w,B]),C=(0,n.useMemo)(()=>(0,t.jsx)(f.VerifyCodeForm,{heading:"Check your inbox",content:`We've sent a 6-digit login code to ${g}. It'll expire in 30 minutes.`,isSubmitting:m,email:g,error:_,isTrustedDevice:M,toggleIsTrustedDevice:S,onVerifyCode:b,onResetSignIn:v,setError:B}),[g,m,_,M,S,b,v,B]),R=(0,t.jsx)(E.CallOut,{heading:"Not ordered a car yet?",cta:(0,t.jsx)(u.Button,{href:"https://quote.octopusev.com",isOnDarkBackgroun
2d:!0,buttonStyle:"secondary",children:"Get a quote"})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.default,{children:[(0,t.jsx)("title",{children:"Sign in | Octopus Electric Vehicles"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"}),(0,t.jsx)("meta",{name:"description",content:"Sign in to your Octopus EV account"},"description"),(0,t.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,t.jsx)("meta",{property:"og:title",content:"Sign in | Octopus Electric Vehicles"},"og_title"),(0,t.jsx)("meta",{property:"title",content:"Sign in | Octopus Electric Vehicles"},"title"),(0,t.jsx)("meta",{property:"og:description",content:"Sign in to your Octopus EV account"},"og_description"),(0,t.jsx)("meta",{property:"og:type",content:"website"},"og_type"),(0,t.jsx)("meta",{property:"og:image",content:"https://cdn.sanity.io/images/767s1cf5/production/321274bff7e93bee72538f04c7bb7bed1ba70da8-1200x630.svg"},"og_image"),(0,t.jsx)("meta",{property:"og:url",content:p},"og_url"),(0,t.jsx)("meta",{property:"og:site_name",content:"Octopus Electric Vehicles"}),(0,t.jsx)("link",{rel:"canonical",href:p})]}),(0,t.jsx)(k.ToolLayout,{children:(0,t.jsx)(T.FormPageTemplate,{lhsContent:(0,t.jsx)(l.Box,{align:"center",children:(0,t.jsx)(j.SvgImage,{src:P,width:d.md?355:220})}),rhsContent:h?I:C,footerContent:y?void 0:R})})]})}],302437)},44237,(e,t,a)=>{let r="/login";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(302437)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},228883,58322,299495,552529,e=>{"use strict";try{var t="u">typeof window?window:e.g;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.s(["safeUnref",0,function(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}],228883);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}let r=["forwarded","-ip","remote-","via","-user"];e.s(["FILTERED_VALUE",0,"[Filtered]","PII_HEADER_SNIPPETS",0,r,"SENSITIVE_COOKIE_NAME_SNIPPETS",0,[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],"SENSITIVE_KEY_SNIPPETS",0,["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"]],58322);try{var n="u">typeof window?window:e.g;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.s(["defaultPiiToCollectionOptions",0,function(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:r},httpHeaders:{request:{deny:r},response:{deny:r}},httpBodies:[],urlQueryParams:{deny:r},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}],299495);try{var o="u">typeof window?window:e.g;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}let s="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.s(["DEBUG_BUILD",0,s],552529)},35205,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0r0i6_-866kdl.js"].map(t=>e.l(t))).then(()=>t(948567)))},358121,e=>{e.v(t=>Promise.all(["static/immutable/chunks/017tg-nweb5o4.js"].map(t=>e.l(t))).then(()=>t(383586)))},523399,(e,t,a)=>{"use strict";try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}Object.defineProperty(a,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return i},isBailoutToCSRError:function(){return d}};for(var o in n)Object.defineProperty(a,o,{enumerable:!0,get:n[o]});let s="BAILOUT_TO_CLIENT_SIDE_RENDERING";
2class i extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=s}}function d(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===s}},267085,196359,e=>{"use strict";var t=e.i(881821);e.i(214671);var a=e.i(890151);e.i(364235);var r=e.i(350765);e.i(511037);var n=e.i(795452),o=e.i(180092),s=e.i(212637);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}let d=o.default.div.withConfig({componentId:"sc-6182390d-0"})`
3    background-color: ${e=>e.theme.components.callOut.color.background[e.variant]};
4    padding: ${e=>(0,s.pxToRem)(e.theme.spacing[5])} ${e=>(0,s.pxToRem)(e.theme.spacing[4])};
5    text-align: center;
6
7    ${e=>e.isContained&&o.css`
8            border-radius: ${(0,s.pxToRem)(e.theme.components.callOut.borderRadius)};
9        `}
10
11    @media (min-width: ${e=>e.theme.breakpoints.sm}px) {
12        padding: ${e=>(0,s.pxToRem)(e.theme.spacing[6])};
13    }
14`,c=o.default.div.withConfig({componentId:"sc-6182390d-1"})`
15    margin: 0 auto;
16    max-width: ${(0,s.pxToRem)(756)};
17`;try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.s(["CallOut",0,({icon:e,heading:o,summary:s,cta:i,isContained:l=!1,variant:u="base",...p})=>(0,t.jsx)(d,{variant:u,isContained:l,...p,children:(0,t.jsxs)(c,{children:[void 0!==e&&(0,t.jsx)(a.Box,{pb:4,children:(0,t.jsx)(r.SvgImage,{...e,width:64,height:64})}),(0,t.jsx)(n.Typography,{variant:n.Variant.H3,component:"h2",gutter:!1,children:o}),void 0!==s&&(0,t.jsx)(a.Box,{pt:4,children:(0,t.jsx)(n.Typography,{gutter:!1,children:s})}),void 0!==i&&(0,t.jsx)(a.Box,{pt:5,children:i})]})})],196359);try{var u=window;u._sentryModuleMetadata=u._sentryModuleMetadata||{},u._sentryModuleMetadata[(new u.Error).stack]=Object.assign({},u._sentryModuleMetadata[(new u.Error).stack],{"_sentryBundlerPluginAppKey:0b2471cc-95d6-4606-a0ee-38ef27ec81e9":!0})}catch(e){}e.s([],267085)}]);
18
19//# debugId=601ec0b5-5541-c8a6-8ddc-27da63131def

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.