PageSourceSearch

https://egghead.io/_next/static/chunks/pages/gifts/claim/[guid]-999e4ac2687dad8c.js

js egghead.io collected 2026-09-24 15:19:42 UTC 2,501 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7234],{44102:(e,i,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/gifts/claim/[guid]",function(){return n(81602)}])},81602:(e,i,n)=>{"use strict";n.r(i),n.d(i,{__N_SSP:()=>u,default:()=>p});var l=n(8051);n(41627);var s=n(41024),t=n.n(s),r=n(77421),a=n.n(r),m=n(31257),o=n(1849),c=n(48358),d=n(87774);let h=e=>{let{url:i,className:n,label:s,onClick:r=d.A}=e;return(0,l.jsx)(t(),{href:i,onClick:r,className:"".concat(n," inline-flex justify-center items-center px-4 py-2 rounded-md bg-blue-600 text-white font-medium transition-all hover:bg-blue-800 dark:hover:bg-blue-500 ease-in-out duration-200"),children:s})};var u=!0;let p=e=>{let{error:i,gift:n}=e;(0,o.useRouter)();let{viewer:s,refreshUser:r}=(0,c.ur)(),d=async()=>{if(!n)return;let{claim_url:e}=n;await m.A.post(e),await r()};return(0,l.jsx)("div",{className:"container flex justify-center",children:(0,l.jsx)("div",{className:"pb-10 mt-8 prose-sm prose text-center dark:prose-dark md:mt-20",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{children:i.message}),"login"===i.type?(0,l.jsxs)("p",{children:[(0,l.jsx)(t(),{href:"/login",children:"Click here"})," to sign in. Once you are signed in you will need to click your gift claim link again."]}):null]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mx-auto w-28 md:w-40",children:(0,l.jsx)(a(),{src:"/images/eggo-membership.png",width:480,height:560})}),(0,l.jsx)("h1",{className:"mt-6 md:mt-12",children:"Claim your membership."}),(null==s?void 0:s.is_pro)?(0,l.jsxs)("p",{children:["A gift membership can only be claimed one time. As an existing egghead member this gift membership will be applied"," ",(0,l.jsx)("em",{children:(0,l.jsx)("b",{children:"on top of your existing membership"})}),". When the gift expires, your existing membership will resume. You will not lose any membership time/money."]}):(0,l.jsxs)("p",{children:["A gift membership can only be claimed one time. Once you've claimed this gift nobody else will be able to you. It can't be undone! Make sure that"," ",(0,l.jsx)("em",{children:(0,l.jsx)("b",{children:null==s?void 0:s.email})})," ","is the account you want the gift applied to."]}),(0,l.jsx)(h,{url:{pathname:"/learn/",query:{message:"You have claimed the membership coupon.",type:"claimed"}},label:"Claim Your Membership for ".concat(null==s?void 0:s.email),onClick:d,className:"mt-6 no-underline"})]})})})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=44102)),_N_E=e.O()}]);

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.