PageSourceSearch

https://www.preppable.io/_next/static/chunks/2375-bcba5cb4544f2377.js

js preppable.io collected 2026-10-09 22:54:39 UTC 8,390 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2375],{2088:function(e,t,r){r.d(t,{j:function(){return C}});var n=r(24246),a=r(72889),i=r(14054),l=r(33972),s=r(18181),o=r(22106),d=r(46279),c=r(7497),u=r(64489),m=r(4596),p=r(31404),x=r(40995),h=r(41703),f=r(2828),g=r(11003),w=r(87723),v=r(46186),y=r(79894),b=r.n(y),j=r(27378);let N=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function k(e){if(e)return!1;let t=p.n.getInstance(),r=w.u.getInstance();return!(t.hasKey(s.cb)||r.hasKey(s.v6))}function C(){let{delayMs:e=s.Ip,requireScrollEngagement:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAuthenticated:r}=(0,c.a)(),{publicApiService:y}=(0,u.b)(),{status:C}=(0,d.C)(),{firstTouch:E}=(0,o.d)(),{trackEvent:S,posthog:_}=(0,g.Fe)(),[T,D]=(0,j.useState)(!1),[I,P]=(0,j.useState)(""),[O,L]=(0,j.useState)(!1),[F,K]=(0,j.useState)(null),[U,A]=(0,j.useState)(null),[Z,q]=(0,j.useState)(!1),[G,M]=(0,j.useState)(null),[R,V]=(0,j.useState)(v.ct.PrepKit),[W,B]=(0,j.useState)(!1),[z,$]=(0,j.useState)(!t);(0,j.useEffect)(()=>{if(!k(r))return;let t=window.setTimeout(()=>B(!0),e);return()=>window.clearTimeout(t)},[r,e]),(0,j.useEffect)(()=>{if(!t||!k(r)||z)return;let e=()=>{window.scrollY>window.innerHeight&&$(!0)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[r,z,t]),(0,j.useEffect)(()=>{if(!W||!z||!k(r))return;let e=(null==_?void 0:_.getFeatureFlag(s.q9))===v.ct.Discount?v.ct.Discount:v.ct.PrepKit;V(e),D(!0),S(m._s.NEWSLETTER_SIGNUP_INITIATED,{pageOrComponent:"landing",location:"email_capture_popup",offerVariant:e})},[W,z,r,S,_]);let H=()=>{w.u.getInstance().setValue(s.v6,!0),D(!1)},X=async e=>{var t,r,n,a;e.preventDefault(),M(null);let i=I.trim();if(!i||!N.test(i)){M("Please enter a valid email address");return}L(!0);let l=(0,f.SG)(),{fbp:o,fbc:d,rdtUuid:c,rdtCid:u}=(0,f.sZ)();try{let e=await y.joinNewsletter({email:i,issuePromoCode:R===v.ct.Discount,offer:R,source:v.aM.EmailCapturePopup,attribution:null!=E?E:void 0,eventId:l,fbp:o,fbc:d,rdtUuid:c,rdtCid:u,eventSourceUrl:window.location.href,limitedDataUse:"granted"!==C});h.Xb.getInstance().trackLead({eventId:l,contentName:"email_capture"}),p.n.getInstance().setValue(s.cb,!0),S(m._s.NEWSLETTER_SIGNUP_COMPLETED,{pageOrComponent:"landing",location:"email_capture_popup",issuedPromoCode:!!e.promotionCode,offerVariant:R}),K(null!==(t=e.promotionCode)&&void 0!==t?t:null),A(null!==(r=e.expiresOn)&&void 0!==r?r:null),q(!0),P("")}catch(t){let e=null!==(a=null==t?void 0:null===(n=t.response)||void 0===n?void 0:n.status)&&void 0!==a?a:null==t?void 0:t.status;409===e?M("This email is already subscribed."):429===e?M("Too many requests right now. Please try again in a little while."):400===e?M("Please enter a valid email address."):M("Something went wrong. Please try again."),S(m._s.NEWSLETTER_SIGNUP_ERROR,{pageOrComponent:"landing",location:"email_capture_popup",error:String(null!=e?e:"unknown"),offerVariant:R}),x.k.error("Email capture promo request failed:",t)}finally{L(!1)}};return(0,n.jsx)(i.Vq,{open:T,onOpenChange:e=>{if(!e){H();return}D(!0)},modal:!1,children:(0,n.jsxs)(i.cZ,{className:"sm:max-w-md",hideOverlay:!0,dimBackdrop:!0,onInteractOutside:e=>e.preventDefault(),children:[(0,n.jsx)(i.fK,{children:R===v.ct.Discount?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.$N,{children:"Take 5% off, whenever you're ready"}),(0,n.jsx)(i.Be,{children:"Drop your email and we'll send you a one-time discount code. Use it today or in a month, it keeps."})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.$N,{children:"Grab the free Interview Prep Kit"}),(0,n.jsx)(i.Be,{children:"A 21-page workbook for your whole loop: behavioral stories, system design reps, coding triggers, and the questions worth asking. Drop your email and we'll send it over."})]})}),Z?R===v.ct.Discount?(0,n.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,n.jsx)("p",{className:"font-medium text-success",children:F?"Here's your code — we've also emailed it to you.":"Thanks! We'll email your code shortly."}),F?(0,n.jsx)("p",{className:"rounded-md border bg-muted px-3 py-2 text-center font-mono text-base tracking-wide text-foreground",children:F}):null,U?(0,n.jsxs)("p",{className:"text-muted-foreground",children:["Expires ",U,". One-time use."]}):null]}):(0,n.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,n.jsx)("p",{className:"font-medium text-success",children:"The kit is on its way to your inbox."}),(0,n.jsxs)("p",{className:"text-muted-foreground",children:["Want it right now?"," ",(0,n.jsx)("a",{href:"/prep-kit.pdf",target:"_blank",rel:"noopener",className:"font-medium text-foreground underline",children:"Download the PDF"})]})]}):(0,n.jsxs)("form",{onSubmit:X,className:"flex flex-col gap-4",children:[(0,n.jsx)(l.I,{type:"email",placeholder:"[email protected]",value:I,onChange:e=>P(e.target.value),disabled:O,autoComplete:"email",required:!0}),G?(0,n.jsx)("p",{className:"text-sm text-destructive",children:G}):null,(0,n.jsx)(i.cN,{className:"sm:justify-stretch",children:(0,n.jsx)(a.z,{type:"submit",disabled:O,className:"w-full",children:O?"Sending...":R===v.ct.Discount?"Send my code":"Send me the kit"})}),(0,n.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:["We'll email you the ",R===v.ct.Discount?"code":"kit"," and occasional interview prep tips, and 
1you can unsubscribe any time. The full details of how we handle your email are in our"," ",(0,n.jsx)(b(),{href:"/legal/privacy",className:"underline hover:text-foreground",children:"Privacy Policy"}),"."]})]})]})})}},51398:function(e,t,r){r.d(t,{D:function(){return m}});var n=r(24246),a=r(81042),i=r(72889),l=r(22106),s=r(4596),o=r(11003),d=r(8138),c=r(79894),u=r.n(c);function m(){let{trackEvent:e}=(0,o.Fe)(),{referralCode:t}=(0,l.d)();return(0,n.jsx)("section",{className:"relative overflow-hidden bg-background pb-16 lg:pb-24",children:(0,n.jsx)("div",{className:"mx-auto w-full max-w-7xl px-8 sm:px-6 lg:px-8",children:(0,n.jsxs)(a.Z,{className:"flex flex-col items-center gap-5 py-8 text-center md:flex-row md:justify-between md:gap-8 md:rounded-2xl md:border md:border-border/60 md:bg-muted/40 md:px-8 md:text-left md:dark:bg-white/[0.03]",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-primary",children:"Affiliate Program"}),(0,n.jsx)("h2",{className:"mt-2 text-lg font-semibold leading-snug text-foreground sm:text-xl",children:"Earn money helping people land their dream roles"})]}),(0,n.jsx)(i.z,{asChild:!0,variant:"outline",className:"group h-11 shrink-0 gap-2 px-6",children:(0,n.jsxs)(u(),{href:"/promoter",onClick:()=>{e(s.C1.AFFILIATE_CTA_CLICKED,{pageOrComponent:"landing",isMobile:!window.matchMedia("(min-width: 1024px)").matches,referral:t})},children:["Learn more",(0,n.jsx)(d.Z,{className:"h-4 w-4 transition-transform duration-200 group-hover:translate-x-1"})]})})]})})})}},2156:function(e,t,r){r.d(t,{S:function(){return p}});var n=r(24246),a=r(81042),i=r(72889),l=r(22106),s=r(7497),o=r(4596),d=r(11003),c=r(21958),u=r(46186),m=r(40624);function p(){let{signUp:e}=(0,s.a)(),{trackEvent:t}=(0,d.Fe)(),{referralCode:r}=(0,l.d)();return(0,n.jsx)("section",{className:"relative overflow-hidden bg-background pb-8 lg:pb-20",children:(0,n.jsx)("div",{className:"mx-auto w-full max-w-7xl px-8 text-center sm:px-6 lg:px-8",children:(0,n.jsxs)(a.Z,{className:(0,m.Z)("relative flex flex-col items-center gap-8 overflow-hidden rounded-2xl px-8 py-16 lg:py-20","border border-primary/15 bg-gradient-to-br from-primary/10 via-background to-accent/10","dark:border-white/[0.12] dark:from-white/[0.10] dark:via-white/[0.05] dark:to-white/[0.02]"),children:[(0,n.jsxs)("h2",{className:"text-5xl font-extrabold leading-none tracking-tight text-foreground sm:text-5xl lg:text-5xl",children:[(0,n.jsx)("div",{children:"Cut the grind."}),(0,n.jsx)("div",{className:"mt-2 text-primary",children:"Get the job."})]}),(0,n.jsx)(i.z,{onClick:()=>{t(o.C1.CTA_CLICKED,{pageOrComponent:"landing",location:"final",isMobile:!window.matchMedia("(min-width: 1024px)").matches,plan:u.fU.Core,referral:r}),(0,c.B)(u.fU.Core),e()},className:(0,m.Z)("h-12 w-fit shrink-0 rounded-lg px-6 text-base shadow-lg shadow-primary/25","bg-gradient-primary text-primary-foreground transition-all hover:opacity-90"),children:"Try Preppable Now"})]})})})}}}]);

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.